ws-soap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven McDowall" <>
Subject RE: Problem with using Envelope class
Date Wed, 12 Jul 2000 20:39:19 GMT


The source already is available.. just go to

To figure out the best way to extract it for yourself.. :-)

I am sure the rest of the xml-soap people would love to have someone beef up
the javadoc with more comments! ;-)

Good luck!


-----Original Message-----
From: Edwards, Jayme []
Sent: Wednesday, July 12, 2000 11:40 AM
To: ''
Subject: RE: Problem with using Envelope class

Thank you, this was the problem. I turned on the namespace processing
feature with Xerces and got it working. I noticed the javadocs for the
SOAP api are currently lacking a bit in comments for parameters and
classes. Is the source to this going to be available sometime soon or
a drop with updated docs? In particular I'm trying to disect the
org.apache.soap.rpc.* classes and their methods. Some of the parameters
to these methods are not obvious to me (e.g. Object context).


-----Original Message-----
From: Sanjiva Weerawarana []
Sent: Monday, July 10, 2000 3:55 PM
Subject: Re: Problem with using Envelope class

Are you using a namespace aware parser and did you turn on
namespace processing?


----- Original Message -----
From: "Edwards, Jayme" <>
To: <>
Sent: Monday, July 10, 2000 4:40 PM
Subject: RE: Problem with using Envelope class

> Oops, I left the backslash off the end of "callMethod" while typing it in
this message. FYI It is indeed
> present in the samples I am writing/using.
> Jayme
> >  -----Original Message-----
> > From: Edwards, Jayme
> > Sent: Monday, July 10, 2000 3:38 PM
> > To: ''
> > Subject: Problem with using Envelope class
> >
> > Hello,
> >
> > I'm using the Apache/IBM SOAP implementation to parse SOAP messages sent
from various clients, including those that do not use the org.apache.soap
client API. For instance I have one simple page in which a user can enter
SOAP action, headers, target URI, and type in manually the request body and
have it sent to an endpoint for processing. For instance, I may send a call
like this:
> >
> > <SOAP-ENV:Envelope
> >   xmlns:SOAP-ENV="">
> >   <SOAP-ENV:Body>
> >     <myns:callMethod xmlns:myns="">
> >   </SOAP-ENV:Body>
> > </SOAP-ENV:Envelope>
> >
> > On the server I have a servlet I have written that verifies the
appropriate content-type and headers needed for SOAP (yes, I know there is a
servlet/jsp that does this, I need to write my own due to certain
requirements) and then passes it to the Envelope class for unmarshaling.
> >
> > e.g:
> >
> > InputSource inputSource = getSAXInputSourceFromHTTPRequestSomewhere();
> > DOMParser parser = new DOMParser();
> > parser.parse(inputSource);
> > Document myDocument = parser.getDocument();
> > Envelope soapEnv = Envelope.unmarshall(myDocument.getDocumentElement());
> >
> > I've tried sending several SOAP calls simply to get verification that
envelope is being unmarshalled correctly, every time I get the error:
> >
> > Root element of SOAP messages must match
> >
> >
> > I've tried leaving the trailing slash off the SOAP namespace (as per the
spec), omitting the call inside the SOAP-ENV:Body and using the default
namespace (instead of mapping to SOAP-ENV). Any idea what I'm doing wrong?
> >
> > Jayme

View raw message