Home Products Consulting About Us White Papers Careers Contact Us Tutorials
 

 Download Delve® SOA Fast-Prototyping Toolkit (Beta 1.0)

Tutorials - How To Get Service Response Message Parts without XPath
Page 1 of 1

Some Web services use very simple formats to construct response messages. In such cases messages may carry all of their content in a single sequence of elements—elements without any attributes or child elements of their own. In this lesson, we’ll take a look at simplified invocation syntax that can be used to obtain values from such a response.

To pull values from a simple response, place the names of the variables that will contain element content into a parenthesized list. This list is placed after the “response” keyword in an invocation statement.

 

 

In this example, a response containing elements representing an individual’s first, middle, and last name is provided by service. The invocation statement places these values in the variables name “l,” “m,” and “f,” respectively.

While this particular code sample shows a Web service being defined and invoked in the same code block, the syntax of the invocation is same regardless of whether the service is local or remote. If the service had been hosted using a different product, on a different server, in a different geographical location, exactly the same statement could have been used.


 Download Delve® SOA Fast-Prototyping Toolkit (Beta 1.0)

View Entire Code Sample

Read a Detailed Product Description

Read about Delve and SOAP Web services in detail

Browse Product White Papers

 
Home Products Consulting About Us White Papers Careers Contact Us Tutorials