Hi James Thanks for early response. The solution you said is good, when I want to send a message as a client. But I want to extract Body in SOAP listener. Actually, I have written a SOAP listener which listen to requests with RDF inside. Then I want to extract RDF. The parameters which Apache SOAP passes to my SOAP listener is
(Envelope env, SOAPContext reqCtx, SOAPContext resCtx) And I don't know, how I can access inside Body through these parameters. I can't also access SOAPTransport through these parameters, because it exists in client side, I think. Any idea? Bests, Sara --- James Learmonth <[EMAIL PROTECTED]> wrote: > 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 > _____ > > > > <http://us.rd.yahoo.com/mail/uk/taglines/default/photos/*http:/uk.photos.yah > oo.com/> Yahoo! Photos - NEW, now offering a quality > <http://us.rd.yahoo.com/mail/uk/taglines/default/photos/*http:/uk.photos.yah > oo.com/> print service from just 8p a photo. > > ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
