xml-soap-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhishek Dubey <abhishek_du...@spincircuit.com>
Subject RE: Help someone new to SOAP
Date Thu, 12 Apr 2001 23:02:33 GMT
Looking at the msg I think it might be because these sample classes are not
in the Servers classpath.

I have been trying to do to this for quiet some time, but in my case it
bombs at the first step.
What version of Soap are u using and what servlet runner????

Good Luck

Abhishek


-----Original Message-----
From: David Heil [mailto:dheil@STELLCOM.com]
Sent: Thursday, April 12, 2001 3:53 PM
To: 'soap-user@xml.apache.org'
Subject: RE: Help someone new to SOAP


I've proceeded further.  I can get the sample activated now, but I get a
SOAP fault when I try to use it.  Below is my modified testit.bat file and
the output when I run it.  Any ideas?

Thanks,

Dave

____________________________________________________________________________
_

set JAVA_HOME=d:\java
set
JAVA_CLASSPATH=d:\xerces-1.3.0\xerces.jar;d:\soap-2.1\lib\soap.jar;d:\soap-2
.1\;d:\javamail-1.2\mail.jar;d:\jaf-1.0.1\activation.jar;

@echo off
echo This test assumes a server URL of
http://localhost:7001/soap/server/rpcrouter
echo Deploying the addressbook service...
%JAVA_HOME%\bin\java -classpath %JAVA_CLASSPATH%
org.apache.soap.server.ServiceManagerClient
http://localhost:7001/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
echo .
echo Verify that its there
%JAVA_HOME%\bin\java -classpath %JAVA_CLASSPATH%
org.apache.soap.server.ServiceManagerClient
http://localhost:7001/soap/servlet/rpcrouter list
echo .
echo Getting info for "Mr Good"
%JAVA_HOME%\bin\java -classpath %JAVA_CLASSPATH%
samples.addressbook.GetAddress http://localhost:7001/soap/servlet/rpcrouter
"John B. Good"
echo .
echo Adding "John Doe"
%JAVA_HOME%\bin\java -classpath %JAVA_CLASSPATH%
samples.addressbook.PutAddress http://localhost:7001/soap/servlet/rpcrouter
"John Doe" 123 "Main Street" AnyTown SS 12345 800 555 1212
echo .
echo Query "Mr Doe" to make sure it was added
%JAVA_HOME%\bin\java -classpath %JAVA_CLASSPATH%
samples.addressbook.GetAddress http://localhost:7001/soap/servlet/rpcrouter
"John Doe"
echo .
echo Adding an XML file of listings
%JAVA_HOME%\bin\java -classpath %JAVA_CLASSPATH%
samples.addressbook.PutListings http://localhost:7001/soap/servlet/rpcrouter
sample_listings.xml
echo .
echo Get everyone!
%JAVA_HOME%\bin\java -classpath %JAVA_CLASSPATH%
samples.addressbook.GetAllListings
http://localhost:7001/soap/servlet/rpcrouter
echo .
echo Undeploy it now
%JAVA_HOME%\bin\java -classpath %JAVA_CLASSPATH%
org.apache.soap.server.ServiceManagerClient
http://localhost:7001/soap/servlet/rpcrouter undeploy urn:AddressFetcher
echo .
echo Verify that its gone
%JAVA_HOME%\bin\java -classpath %JAVA_CLASSPATH%
org.apache.soap.server.ServiceManagerClient
http://localhost:7001/soap/servlet/rpcrouter list
____________________________________________________________________________

D:\soap-2.1\samples\addressbook>testit

D:\soap-2.1\samples\addressbook>set JAVA_HOME=d:\java

D:\soap-2.1\samples\addressbook>set
JAVA_CLASSPATH=d:\xerces-1.3.0\xerces.jar;d:\soap-2.1\lib\soap.j
ar;d:\soap-2.1\;d:\javamail-1.2\mail.jar;d:\jaf-1.0.1\activation.jar;
This test assumes a server URL of
http://localhost:7001/soap/server/rpcrouter
Deploying the addressbook service...
.
Verify that its there
Deployed Services:
        urn:AddressFetcher
.
Getting info for "Mr Good"
Generated fault:
  Fault Code   = SOAP-ENV:Client
  Fault String = deployment error in SOAP service 'urn:AddressFetcher':
class name 'samples.addressb
ook.Address' could not be resolved: samples.addressbook.Address
.
Adding "John Doe"
Generated fault:
  Fault Code   = SOAP-ENV:Client
  Fault String = deployment error in SOAP service 'urn:AddressFetcher':
class name 'samples.addressb
ook.Address' could not be resolved: samples.addressbook.Address
.
Query "Mr Doe" to make sure it was added
Generated fault:
  Fault Code   = SOAP-ENV:Client
  Fault String = deployment error in SOAP service 'urn:AddressFetcher':
class name 'samples.addressb
ook.Address' could not be resolved: samples.addressbook.Address
.
Adding an XML file of listings
Generated fault:
  Fault Code   = SOAP-ENV:Client
  Fault String = deployment error in SOAP service 'urn:AddressFetcher':
class name 'samples.addressb
ook.Address' could not be resolved: samples.addressbook.Address
.
Get everyone!
Generated fault:
  Fault Code   = SOAP-ENV:Client
  Fault String = deployment error in SOAP service 'urn:AddressFetcher':
class name 'samples.addressb
ook.Address' could not be resolved: samples.addressbook.Address
.
Undeploy it now
.
Verify that its gone
Deployed Services:

D:\soap-2.1\samples\addressbook>
____________________________________________________________________________
_

-----Original Message-----
From: Abhishek Dubey [mailto:abhishek_dubey@spincircuit.com]
Sent: Thursday, April 12, 2001 3:06 PM
To: 'soap-user@xml.apache.org'
Subject: RE: Help someone new to SOAP


You need to have the Soap.jar in the classpath where you are running your
client from.
Its required on both the client and the server side.

Do let me know if you can get that example working.

Thanks
Abhishek


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Mime
View raw message