You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by li...@materna.de on 2001/02/05 15:50:15 UTC
Soap Exception
Does anyone know what this error message means?
[SOAPException: faultCode=SOAP-ENV:Client; msg=Root element of a SOAP
message must be: 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.;
targetException=java.lang.IllegalArgumentException: Root element of a SOAP
message must be: 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.]
at org.apache.soap.rpc.Call.invoke(Call.java:181)
Thanks in advance....
Liam Byrne.
Re: Soap Exception
Posted by William Brogden <wb...@bga.com>.
liam.byrne@materna.de wrote:
>
> Does anyone know what this error message means?
>
> [SOAPException: faultCode=SOAP-ENV:Client; msg=Root element of a SOAP
> message must be: 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.;
> targetException=java.lang.IllegalArgumentException: Root element of a SOAP
> message must be: 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.]
> at org.apache.soap.rpc.Call.invoke(Call.java:181)
>
> Thanks in advance....
>
> Liam Byrne.
It means exactly what it says, the SOAP specification says the
root element must be an Envelope in the namespace
http://schemas.xmlsoap.org/soap/envelope
which is why the start of the envelope tag should look something
like this:
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope"
--
WBB - wbrogden@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2
Re: Soap Exception
Posted by William Brogden <wb...@bga.com>.
liam.byrne@materna.de wrote:
>
> Does anyone know what this error message means?
>
> [SOAPException: faultCode=SOAP-ENV:Client; msg=Root element of a SOAP
> message must be: 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.;
> targetException=java.lang.IllegalArgumentException: Root element of a SOAP
> message must be: 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.]
> at org.apache.soap.rpc.Call.invoke(Call.java:181)
>
> Thanks in advance....
>
> Liam Byrne.
It means exactly what it says, the SOAP specification says the
root element must be an Envelope in the namespace
http://schemas.xmlsoap.org/soap/envelope
which is why the start of the envelope tag should look something
like this:
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope"
--
WBB - wbrogden@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2