Creating the SOAP request


Reading the Request

It would be fairly easy to assemble an XML document to make a request, but when the response comes back you need to have a way to parse. An XML parser can server the document up in its various pieces; however, if that functionality is not available to you there needs to be some way to break the document up into its appropriate pieces. Otherwise your program will have the ability to send the request without the ability of reading the response.

It would be possible to break up the document using a series of substring and other string-parsing methods, but the location of the elements can vary inside the document. Thus, there is no guarantee this method would work. Figure 13.3 illustrates how reading the response is the next piece of the puzzle.

click to expand
Figure 13.3: Reading the response is the next part of designing your Web Services software.




Cross-Platform Web Services Using C# and Java
Cross-Platform Web Services Using C# & JAVA (Charles River Media Internet & Web Design)
ISBN: 1584502622
EAN: 2147483647
Year: 2005
Pages: 128

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net