You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by YIXING MA <yi...@verizon.net> on 2005/05/19 00:14:59 UTC

How to get SOAP body parameter

Hi all,

I have the SOAPMessage as this
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body wsu:Id="wsse-8b3900e0-c7e4-11d9-a50e-2f72ed6c1032" 
xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">
  <ns1:service 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:ns1="http://dataaccess.service.eTranscript.interfacemgmt.net">

<xml xsi:type="xsd:string">
&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&lt;CollegeTranscript 
xsi:schemaLocation="urn:org:pesc:message:CollegeTranscript:v1.0.0 
CollegeTranscript_v1.0.0.xsd" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns="urn:org:pesc:message:CollegeTranscript:v1.0.0"&gt;
    &lt;/CollegeTranscript&gt;
</xml>

  </ns1:service>
 </soapenv:Body>
</soapenv:Envelope>


-------------------------------------------------------------------------------------------------------------------------------------------------------

I want to get the content of <xml xsi:type="xsd:string"> ... </xml>

<xml xsi:type="xsd:string">
&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&lt;CollegeTranscript 
xsi:schemaLocation="urn:org:pesc:message:CollegeTranscript:v1.0.0 
CollegeTranscript_v1.0.0.xsd" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns="urn:org:pesc:message:CollegeTranscript:v1.0.0"&gt;
    &lt;/CollegeTranscript&gt;
</xml>

How to do that in Java?

Thanks,

Yixing Ma