REST API Flow and Email Templates - rest

Business Model:
This business makes handmade specialty items from a large inventory of photo examples on the web site. The owner does not want to bill until the item is ready to ship.
I'm sure the business model itself can keep us debating for days, but please do not question his approach as that is not really the point here. It is simply how he wants to run his business.
Design:
I have developed a system for him which manages his transactions (no financial information) until he is ready, whereupon he selects the transactions by checking the ones he wants from a query-select-list of unprocessed orders. I can then convert each ordered item to an HTML stream, REST objects, or whatever. The customer should receive the invoice email and click on a button to take him to PayPal for payment.
I want to use the REST API object model to send all the required information to PayPal, describe the invoice and then send the email/invoice to the customer via the API. It is not uncommon to have multiple items ordered at once.
Q1 - The API looks like it supports this usage but can anyone experienced with its use tell me if there is a show stopper I have not discovered yet?
Q2 - I have already developed an HTML template for this purpose. Perhaps prematurely. Does REST API allow for the use of templates? I do not see how yet but hoping there is a way.
Many thanks.
2K

After some more research and a half hour with Integration Support:
A1: There are no show stoppers in the scenario described above. The REST API (and PayPal) supports the usage I have in mind. If anyone desires I will post back results in a few days after code complete and a bit of testing.
A2: I was informed that my own HTML templates are supported but I still do not see how. With the spirit of "Trust, but verify" I will continue with my efforts and ask for Integration Support at that point if I need it.
My cup and my Stack both overflow. I am fortunate.
2kTech

Related

Stress testing of flow (Rest) with JMeter

I have a rest service which receives a customer's ID and an input, acording to this the services response something different, it's basically a menu, but the reponse could be different (depends on the customers input), so I need to stress this service to see how many request the server can handle and try to determine the max TPS, but since is a flow I don't know how I can simulate this, any idea or page that can be useful?
Thanks in advance for your help
What you mostly need is an understanding of how to handle dynamic parameters. Imagine you are simulating a user which goes on a blog, views a random blog article and then posts a comment about it.
It's all about designing a user which has a dynamic behavior, which changes depending on variables or server output. JMeter supports this kind of simulation very well by providing dozen of useful components like:
CSV Datasets,
Regexp Variable extractors,
and more.
We have written an article which explains how to simulate users with a dynamic behavior. It's very similar to what you would do in JMeter since OctoPerf is based on JMeter, with a Web UI built on top.

Is it possible to select a Tax Agency when creating an invoice?

Is there anyway to get at my clients Tax Agencies when creating an invoice?
I'm using the C# IPP DevKit against QBO.
I don't see it mentioned in the documentation, however I can't imagine I'll be required to hard code all my clients tax tables into my app as that is silly.
What you're looking for (the list of tax rates) is not really what you're asking for (tax agencies).
In any case, this thread answers your question:
https://idnforums.intuit.com/messageview.aspx?catid=87&threadid=18930&enterthread=y
Unfortunately, the answer is:
In the current SDK or Services V2, this is a limitation that the tax code Id is not retained due to tax model changes. This limitation will be addressed in QBO Service V3.
Thus, what you're trying to do can't be done right now.
I am not sure if you are using QuickBooks Online or for Windows.
Either way, the Tax Agency would most likely be a Vendor in the customer's QuickBooks file.
So use the vendor query in the devkit to pull the list of vendor's and you can later use the CDCasOf filter to get the new or modified vendors to keep things up to date.
The supported objects and operations are listed here for future reference.
QBO:link
QBD:link
regards,
Jarred

Orchard CMS right for this? And how to proceed?

Elo!
The goal is to build a Webshop where all the product categories and products (aswell as user authentication, order placement, order history, etc etc) comes from a REST webservice..
So basically very little data will be stored in the CMS DB..
I've managed to extend the login-part (looking at "Windows Authentication Module"), but im not sure how to proceed with the other parts?
Is the answer here a way to go? However the answer seems to claim that we would need records for each product?
How to change Orchard record repository
First of all, this is something you might want to consider. Do you really want to flood the rest service with requests. From the way you put this question (very little data will be stored) it seems like every time someone browses a page, you create a REST request. This usually is not a good idea, so be sure to include some caching.
Then, I doubt it's windows authentication you want for a webshop. Make sure to check out forms authentication.
Then, I guess orchard is something you could consider for this project. Regular webshops usually have so much overhead that it is better to create a webshop (with this specific requiremetn) in a regular CMS, and orchard is very extendable.
One mayor thing is, payment. Make sure you have a good payment processor that works (or that you can make it work) for orchard.

Webform to MVC Migration

I have a customer who runs an event ticket sales site. The site uses several APIs that interface with ticket sales companies. Users view ticket/seat availability for a specific event in the form of a Google Map that plots seat availaiblity on the venue image for the event.
The site was written using ASP.NET 3.5 and deployed to the customer's server without source code. Some changes were made by a previous developer by de-compiliing the existing DLL and making subsequent changes. Thus, the original source code is not usable and not available.
My customer is interested in URL routing as an enhancment and use of "friendly" URLs instead of the long query string for each event.
What are some good benefits of using ASP.NET MVC2 for the redevelopment of the site? Besides URL Routing, what other improvements can we site in a non-technical way?
Thanks much for your help!!
http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx
Key Point In My Opinion:
It will enable you to easily maintain separation of concerns in your applications, as well as facilitate clean testing and TDD.
Hi you can read all in this article http://weblogs.asp.net/shijuvarghese/archive/2008/07/09/asp-net-mvc-vs-asp-net-web-form.aspx

Extracting and Parsing data with soapUI

So I am in need to learn how to use soapUI pretty quick. I'm finding it pretty tedious to start so I was hoping I might be able to get some help here. Here's what I need to do.
Lets say we have Company A and Company B which is a subset of Company B. Now Company A offers a webservice accessible by Company B such that Company B can gather daily aggregated data from Company A's database. Now Company B wants to take this data and publish it on their website.
What I'd like is a very basic overview of what I need to do to extract and parse the data onto a website. Just the outline of the process so I can get started.
What languages should I be using at what stages and what not.
Any help would be highly appreciated.
This isn't a SoapUI question, rather, you need to get started with SOA/SOAP. That's fine, and SoapUI is a good way to figure it out.
The SOAP webservice published by company A will have "methods" that allow access to data, or let you add/update data. Suppose they're a used car registry. They may have methods such as GetCarList, GetCarData, SubmitBid, etc.. You call those via SOAP, and get a response. Both the request and response are XML.
CompanyA will publish a "wsdl" that describes the interface. Plug that into SoapUI, and you should be able to make sample requests. There will probably be empty fields, with ? in them, which are placeholders for data (carID, VIN, MaxRecords, etc..). See if you can modify the request enough to satisfy the server, press the GO button, and see what you get back. If you're lucky, you'll get data back, and you're on your way.
When you get down to building your app, you can pretty much use the language of your choice. .Net, PHP, Java, native C, even Delphi... The SOAP is designed to be platform/language agnostic. If you can talk via HTTP/HTTPS, you should be in business.