Well I used

                                    message.send( url , webserviceName , envelope );

 

                                    SOAPTransport st = message.getSOAPTransport ();

 

then used st.receive() to get a BuffereReader e.g.

 
public java.io.BufferedReader receive()

 

And read from that.

 

But in general I think the API is very badly commented and often gives no clues.

 

JimL

 


From: sara vaji [mailto:[EMAIL PROTECTED]
Sent: 16 January 2006 15:00
To: [email protected]
Subject: Extracting Soap body

 

Hi all

I am Sara and I am new to Apache SOAP and I am using soap-2_3_1 package.
I have a simple question regarding extracting SOAP body.
I have a simple soap message like this: 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<rdf:RDF xmlns:j.0="http://www.cplusplus.com/arti#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#">
</rdf:RDF>
</s:Body>
</s:Envelope> 

All I want is to extract SOAP Body, I mean this part of message:
<rdf:RDF xmlns:j.0="http://www.cplusplus.com/arti#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#">
</rdf:RDF>

I played with APIs, but I am not able to find the siutable API for extracting everything that is located inside SOAP Body  Can anyone please help me? 

Thanks,
 
Sara

Yahoo! PhotosNEW, now offering a quality print service from just 8p a photo.

Reply via email to