You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Simon Chatfield <si...@thechatfieldgroup.com> on 2002/09/15 00:56:23 UTC

Contents of the Body element

I've been tasked with building a client for a remote soap service. The 
Server documentation describes the request as such...

(name changes for nda)

<SOAP-ENV:Envelope xmlns:SOAP-ENV = 
"http://schemas.xmlsoap.org/soap/envelope">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<TheirElementName xmlns = "http://www.remoteserver.net/remotedir"
  xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation =  http://www.remoteserver.net/remotedir
  http://www.remoteserver.net/remotedir/schemas/RemoteSchema.xsd
  Timeout="3">
<TheirXMLHierarchy>
...
</TheirXMLHierarchy>
</TheirElementName>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

My question is the only way I can see to make the first child element of 
the Body tag is the name that with the setMethodName("Their Element 
Name") call, but along with different schemas, they also have the other 
attribute of Timeout="" within that element name. How can I set this?

A secondary question is that I assume (because the response is formatted 
similarly) I will have to write my own object which de-serializes their 
xml structure. I would rather be just grab the Response as a String to 
pass it to another class for processing. Any help would be appreciated. 
thanks!

-Simon