You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Shane Dempsey <sd...@tssg.wit.ie> on 2001/05/02 16:09:58 UTC

faultCode problem

Hi Guys,
I'm having some trouble with my Apache Soap installation.
I've set up Apache Soap 2.1 with Tomcat 3.2. I can start the 'SOAP admin
gui' OK but when I try to run any of the demos I get the following error.

----------------------------------------------------------------------------
------------------------------------------
D:\javadev\ApacheSoap\soap-2_1\samples\stockquote>java
org.apache.soap.server.Se
rviceManagerClient http://high:8080/soap/servlet/rpcrouter deploy
DeploymentDesc
riptor.xml
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=A
'htt
p://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode
' element.; targetException=java.lang.IllegalArgumentException: A
'http://schema
s.xmlsoap.org/soap/envelope/:Fault' element must contain a: 'faultcode'
element.
]
        at org.apache.soap.rpc.Call.invoke(Call.java:244)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
erClient.java:127)
        at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
nt.java:140)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
.java, Compiled Code)

----------------------------------------------------------------------------
------------------------------------------
( my machine name is high, just in case anyone is wondering >:-) )

I followed all the instructions and my classpath seems to be OK , with the
xerces.jar places towards the front of the path..
I'm not sure why I'm getting this error. I originally thought that it was
the classpath but
after many changes, I just gave up on that. It almost seems like the SOAP
messages being produced by the client aren't  correct.

If anyone has any idea what the problem might be then I'd be delighted.

regards ,

    ...shane

//====================================
// Shane Dempsey       sdempsey@tssg.wit.ie
// TSSG Researcher    http://www-tssg.wit.ie
//
// ( 0x2b | ~0x2b ) ? printf("that is the question");
// ====================================



Re: faultCode problem

Posted by Shane Dempsey <sd...@tssg.wit.ie>.
Thanks Scott,
I didn't realise that the message had been sent correctly .
I just started using xerces 1.2.3 instead.
Thanks for the advice. I'm going to be doing a lot
of SOAP work over the next few months ( mostly with the MS SOAP toolkit
as I'm a COM+ programmer ) so it's good to get started.

Thanks again,

    ...shane

----- Original Message -----
From: "Scott Nichol" <sn...@computer.org>
To: <so...@xml.apache.org>
Sent: Wednesday, May 02, 2001 6:12 PM
Subject: Re: faultCode problem


> If you use the 2.1 release of Apache SOAP, you must use Xerces 1.3.0 or
earlier.  With the nightly build of Apache SOAP, you can use Xerces 1.3.1.
>
> Scott
>
> ----- Original Message -----
> From: "Shane Dempsey" <sd...@tssg.wit.ie>
> To: <so...@xml.apache.org>
> Sent: Wednesday, May 02, 2001 10:09 AM
> Subject: faultCode problem
>
>
> > Hi Guys,
> > I'm having some trouble with my Apache Soap installation.
> > I've set up Apache Soap 2.1 with Tomcat 3.2. I can start the 'SOAP admin
> > gui' OK but when I try to run any of the demos I get the following
error.
> >
>
> --------------------------------------------------------------------------
--
> > ------------------------------------------
> > D:\javadev\ApacheSoap\soap-2_1\samples\stockquote>java
> > org.apache.soap.server.Se
> > rviceManagerClient http://high:8080/soap/servlet/rpcrouter deploy
> > DeploymentDesc
> > riptor.xml
> > Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=A
> > 'htt
> > p://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> > 'faultcode
> > ' element.; targetException=java.lang.IllegalArgumentException: A
> > 'http://schema
> > s.xmlsoap.org/soap/envelope/:Fault' element must contain a: 'faultcode'
> > element.
> > ]
> >         at org.apache.soap.rpc.Call.invoke(Call.java:244)
> >         at
> > org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
> > erClient.java:127)
> >         at
> > org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
> > nt.java:140)
> >         at
> > org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
> > .java, Compiled Code)
> >
>
> --------------------------------------------------------------------------
--
> > ------------------------------------------
> > ( my machine name is high, just in case anyone is wondering >:-) )
> >
> > I followed all the instructions and my classpath seems to be OK , with
the
> > xerces.jar places towards the front of the path..
> > I'm not sure why I'm getting this error. I originally thought that it
was
> > the classpath but
> > after many changes, I just gave up on that. It almost seems like the
SOAP
> > messages being produced by the client aren't  correct.
> >
> > If anyone has any idea what the problem might be then I'd be delighted.
> >
> > regards ,
> >
> >     ...shane
> >
> > //====================================
> > // Shane Dempsey       sdempsey@tssg.wit.ie
> > // TSSG Researcher    http://www-tssg.wit.ie
> > //
> > // ( 0x2b | ~0x2b ) ? printf("that is the question");
> > // ====================================
> >
> >
>


Re: faultCode problem

Posted by Scott Nichol <sn...@computer.org>.
If you use the 2.1 release of Apache SOAP, you must use Xerces 1.3.0 or earlier.  With the nightly build of Apache SOAP, you can use Xerces 1.3.1.

Scott

----- Original Message ----- 
From: "Shane Dempsey" <sd...@tssg.wit.ie>
To: <so...@xml.apache.org>
Sent: Wednesday, May 02, 2001 10:09 AM
Subject: faultCode problem


> Hi Guys,
> I'm having some trouble with my Apache Soap installation.
> I've set up Apache Soap 2.1 with Tomcat 3.2. I can start the 'SOAP admin
> gui' OK but when I try to run any of the demos I get the following error.
> 
> ----------------------------------------------------------------------------
> ------------------------------------------
> D:\javadev\ApacheSoap\soap-2_1\samples\stockquote>java
> org.apache.soap.server.Se
> rviceManagerClient http://high:8080/soap/servlet/rpcrouter deploy
> DeploymentDesc
> riptor.xml
> Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=A
> 'htt
> p://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
> 'faultcode
> ' element.; targetException=java.lang.IllegalArgumentException: A
> 'http://schema
> s.xmlsoap.org/soap/envelope/:Fault' element must contain a: 'faultcode'
> element.
> ]
>         at org.apache.soap.rpc.Call.invoke(Call.java:244)
>         at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
> erClient.java:127)
>         at
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
> nt.java:140)
>         at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
> .java, Compiled Code)
> 
> ----------------------------------------------------------------------------
> ------------------------------------------
> ( my machine name is high, just in case anyone is wondering >:-) )
> 
> I followed all the instructions and my classpath seems to be OK , with the
> xerces.jar places towards the front of the path..
> I'm not sure why I'm getting this error. I originally thought that it was
> the classpath but
> after many changes, I just gave up on that. It almost seems like the SOAP
> messages being produced by the client aren't  correct.
> 
> If anyone has any idea what the problem might be then I'd be delighted.
> 
> regards ,
> 
>     ...shane
> 
> //====================================
> // Shane Dempsey       sdempsey@tssg.wit.ie
> // TSSG Researcher    http://www-tssg.wit.ie
> //
> // ( 0x2b | ~0x2b ) ? printf("that is the question");
> // ====================================
> 
>