Request an address A
Get the result of A
use A result request address B
return B result
use call mediator,You can then see the request result with the same sequence
enter image description here
Related
It doesn't seem very efficient to send a single productId request one at a time in a soap envelope request, and then get 1 product response.
Is there any way to allow for multiple multipart productId's with the same request envelope?
An array or some other options, to allow for more than 1 product at a time?
For example to send single request for 20 products and get 20 products back in single response?
Thanks
If you have, let's say a C# method like the following:
public Product GetProduct(int productId) {
Product p = null;
// ... retrieve product here
return p;
}
can you invoke it with 20 product ids and get back 20 products as a result?
You can't. Because that's not the definition of the method.
If you want to work with many product ids and products at the same time, there must be another method that does that for you, otherwise you are forced to use just the above method again and again.
A SOAP web service works the same way. It exposes operations that you can invoke. Those operations are just like the method above, but you can call them over the network using the SOAP protocol message instead of through code locally to your application. As such, the operations have a strong signature just like the method above.
If the SOAP web service only offers that operation from your print screen, then that's all you can call. If the SOAP web service were to provide another operation that works with lists of products, then you could invoke that one instead.
What you need to do is look in the WSDL of the web service to see what operations it offers and if there is one that you can use better. If you don't have other operations, then look carefully at the operation you have and see how many times the <shar:productId> is expected to appear in the message request. If it says maxOccurs="unbounded" then you might be able to send more ids. If it's maxOccurs="1" then you can only send one at a time.
I am new to the Amazon S3 API and I am attempting to build a client using Go. I was confused about how I would go about writing a Get function to get an object from an S3 bucket. The documentation for the API calls are a little confusing to me, I am wondering what is the difference between using the GetObject call vs the GetObjectRequest call? And when is it appropriate to use one over the other?
Per the documentation:
Calling the request form of a service operation, which follows the naming pattern OperationName Request, provides a simple way to control when a request is built, signed, and sent. Calling the request form immediately returns a request object. The request object output is a struct pointer that is not valid until the request is sent and returned successfully.
So, use GetObject if you want to immediately send the request and wait for the response. Use GetObjectRequest if you prefer to construct the request but not send it till later.
For most scenarios, you'd probably just use GetObject.
How to send asset from node address to any other address in multichain ?
I want to know is there any direct API call to do that ?
#cjcoders yes there is a direct api method to do that and that is sendassetfrom.
It's clearly mentioned in their Docs.
I've written an API to query a database for stock information. Each client of my program will have about 2000 or so objects, each with an ID. The ID is then used to filter against the API to grab additional information from the database by ID. So, each client is submitting a request with a filter that looks like this:
id__in=ID12341234,ID123490987,ID12345678,ID098861234...
This works fine with a smallish number of IDs. However, when a client has several thousand of these, the request length is over 40,000 bytes as each id is about 15 characters. Putting these as params in a GET request gets me a 414 Error from both Nginx & Gunicorn (I'm running NGINX as reverse proxy for Gunicorn). I've already increased the header buffer size and the max request line length of NGINX & Gunicorn respectively, but both of those settings have sensible maximum values which even at their maximum, my requests are way over the limit. So, I'm wondering what can be done to get this type of request accomplished. Basically, I need to a query to a database and filter by a very large number of parameters. I'm using the requests library to query the Tastypie API. I've tried several combinations of using GET with "params" argument, or GET with "data" argument, or POST with "params" vs "data" and nothing seems to work. Using GET with params results in a 400 Error, using GET with data, results in:
ChunkedEncodingError: ('Connection broken: IncompleteRead(1781 bytes read)', IncompleteRead(1781 bytes read))
Using POST with params results in 400 Error, using POST with data results in:
The format indicated 'application/x-www-form-urlencoded' had no available deserialization method. Please check your ``formats`` and ``content_types`` on your Serializer.
I appreciate any insight anyone has about getting this done besides splitting the parameters into multiple, separate requests.
Thanks!
I created a service consumer through the wizard, based on a WSDL. Proxy object is generated, all structures and methods are found. Then, I add a logical port through SOAMANAGER - all fine, it pings and the connection works.
I populate the input structure, call my method and get an error: Error during proxy processing (PART UNKNOWN (NULL)). This is a very useless error message to me.
So, I activate all manners of tracing, so I can see what's going on calling and retrieving data. I can see that
My proxy is called correctly
The payload sent TO the service looks correct
The payload received FROM the service is correct. I know this because it's identical to the XML I get back calling the service through other means.
The transformation is empty
Here a screen of (the start of) the returned XML. getRecordsResult set is what I need:
This is the second response, after "conversion":
Nothing about this service has been customized: it's generated straight up through the wizard. I have already deleted and recreated it but no results.
Anyone got any advice on what to do next?