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 Rajal Shah <ra...@meshsoftware.com> on 2000/11/08 21:46:24 UTC

SOAP samples don't work well.

First time user of SOAP.. While running the samples, I get the following error attached at the end)..

I am using Java JDK1.3, Xerces1.2.1 and Soap2.0 (IPlanet Web Server).

same error appears when running the AddressBook and Calculator samples. I was able to succesfully deploy them using the web interface. but the commandline utility fails. The webserver uses the same Java JDK1.3 too.

Looking for some good feedback to get me started with SOAP.

--
Rajal


java org.apache.soap.server.ServiceManagerClient http://settminar/soap/servlet
rpcrouter deploy DeploymentDescriptor.xml
xception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=Root e
ement of a SOAP message must be: 'http://schemas.xmlsoap.org/soap/envelope/:Env
lope'.; targetException=java.lang.IllegalArgumentException: Root element of a S
AP message must be: 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.]
       at org.apache.soap.rpc.Call.invoke(Call.java:181)
       at org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
rClient.java:110)
       at org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
t.java:123)
       at org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
java:188)
    

Re: SOAP samples don't work well.

Posted by "Scott C. Young" <sc...@nj.paradyne.com>.
deployment only has to be done once so if it's deployed 
using the web, the demo can be run from the command-line 
as per the readme: java samples.addressbook ... etc.
just make sure the same machine:port/path is used.

if deployment is simply being "tested" via both
the web and command lines:
- check the machine:port against the web interface
- check the path to rpcrouter against the web interface
- check the classpath against tomcat/iplanet for both
the correct list of directories, jars, and their versions.

creating a very simple "rundemo" shell-script that contains
all needed  environment variables and java arguments helps.
scott

> Rajal Shah wrote:
> 
> First time user of SOAP.. While running the samples, I get the
> following error attached at the end)..
> 
> I am using Java JDK1.3, Xerces1.2.1 and Soap2.0 (IPlanet Web Server).
> 
> same error appears when running the AddressBook and Calculator
> samples. I was able to succesfully deploy them using the web
> interface. but the commandline utility fails. The webserver uses the
> same Java JDK1.3 too.
> 
> Looking for some good feedback to get me started with SOAP.
> 
> --
> Rajal
> 
> 
> java org.apache.soap.server.ServiceManagerClient
> http://settminar/soap/servlet
> rpcrouter deploy DeploymentDescriptor.xml
> xception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> msg=Root element of a SOAP message must be:
> 'http://schemas.xmlsoap.org/soap/envelope/:Env
> lope'.; targetException=java.lang.IllegalArgumentException: Root
> element of a S
> AP message must be:
> 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.]
>        at org.apache.soap.rpc.Call.invoke(Call.java:181)
>        at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
> rClient.java:110)
>        at
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
> t.java:123)
>        at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
> java:188)
>

Re: SOAP samples don't work well.

Posted by "Scott C. Young" <sc...@nj.paradyne.com>.
deployment only has to be done once so if it's deployed 
using the web, the demo can be run from the command-line 
as per the readme: java samples.addressbook ... etc.
just make sure the same machine:port/path is used.

if deployment is simply being "tested" via both
the web and command lines:
- check the machine:port against the web interface
- check the path to rpcrouter against the web interface
- check the classpath against tomcat/iplanet for both
the correct list of directories, jars, and their versions.

creating a very simple "rundemo" shell-script that contains
all needed  environment variables and java arguments helps.
scott

> Rajal Shah wrote:
> 
> First time user of SOAP.. While running the samples, I get the
> following error attached at the end)..
> 
> I am using Java JDK1.3, Xerces1.2.1 and Soap2.0 (IPlanet Web Server).
> 
> same error appears when running the AddressBook and Calculator
> samples. I was able to succesfully deploy them using the web
> interface. but the commandline utility fails. The webserver uses the
> same Java JDK1.3 too.
> 
> Looking for some good feedback to get me started with SOAP.
> 
> --
> Rajal
> 
> 
> java org.apache.soap.server.ServiceManagerClient
> http://settminar/soap/servlet
> rpcrouter deploy DeploymentDescriptor.xml
> xception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
> msg=Root element of a SOAP message must be:
> 'http://schemas.xmlsoap.org/soap/envelope/:Env
> lope'.; targetException=java.lang.IllegalArgumentException: Root
> element of a S
> AP message must be:
> 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.]
>        at org.apache.soap.rpc.Call.invoke(Call.java:181)
>        at
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
> rClient.java:110)
>        at
> org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
> t.java:123)
>        at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
> java:188)
>