invokeAsyncWithVerb

invokeAsyncWithVerb(inputMessage: String;
                    verbIn:       String): JadeMethodContext updating;

The invokeAsyncWithVerb method of the JadeWebServiceConsumer class sends the SOAP-formatted message specified in the inputMessage parameter, using the verb specified in the verbIn parameter, to the Web service and returns an instance of the JadeMethodContext class that handles the asynchronous execution of the Web service request and waits for the response from the Web service provider (a SOAP message).

This method does the same as the JadeWebServiceConsumer class invokeAsync method, except that the verb specified in the verbIn parameter is used (for example, "GET" or "PUT") instead of "POST". Calling the invokeAsync method is the same as calling the invokeAsyncWithVerb method with "POST" specified in the verbIn parameter.

The workerApp property must be set to the name of an asynchronous worker application, which must execute the asyncInitialize and asyncFinalize methods of the Application class in the initialize and finalize methods of the application, respectively.

The JadeMethodContext instance can be used as input to the waitForMethods method on the Process class, to enable your code to wait for the completion of the asynchronous execution of the Web service and obtain the results.

Reimplement the invokeAsyncWithVerb method in the following situations when you also need to specify the verb that is used.

You can use the invokeAsyncWithVerb method, for example, to allow users to access a REST service using the HTTP GET verb.

2016.0.01 and higher