One quick question:
I just starting using SOAP. I wrote a simple java class to be published for
a Service. All it does is return a the name sent in the request. I was able
to deploy the service using the admin tool. I wrote a client to call the
service using the Call class and passing the requested parameters. When I
run the Client I get the following message:
Fault message: Unable to resolve target object: test.TestWebServices
Fault generated: [Attributes={}]
[faultCode=SOAP-ENV:Server.BadTargetObjectURI]
[faultString=Unable to resolve target object: test.TestWebServices]
[faultActorU
RI=/soap/servlet/rpcrouter] [DetailEntries=] [FaultEntries=]
Where and how do I tell the SOAP where my class is???
Any information would be more than welcomed.
AJ.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 17, 2003 10:22 AM
To: [EMAIL PROTECTED]
Subject: RE: HELP ME!
This is my classpath:
C:\jakarta-tomcat-4.1.18\common\endorsed\xmlParserAPIs.jar;C:
\jakarta-tomcat-4.1.18\common\endorsed\xercesImpl.jar;C:
\soap-2_3\lib\soap.jar;C:\soap-2_3;C:
\jakarta-tomcat-4.1.18\common\lib\mail.jar;C:
\jakarta-tomcat-4.1.18\common\lib\activation.jar
Bin
"schyzad"
<[EMAIL PROTECTED] To:
<[EMAIL PROTECTED]>
.uk> cc:
Subject: RE: HELP ME!
03/14/2003 06:54
PM
Please respond to
soap-user
I tried this but it is still giving me the same result. What about the
classpath?
Shehzad
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 11:40 PM
To: [EMAIL PROTECTED]
Subject: Re: HELP ME!
You may try these steps:
1. mkdir c:\tomcat\webapps\soap
2. cd c:\tomcat\webapps\soap
3. jar -xvf ..\soap.war
4. restart your tomcat web server
5. try the addressbook testit again
Hope this helps. Good luck
Bin
Shehzad Nagi
<[EMAIL PROTECTED] To:
[EMAIL PROTECTED]
.uk> cc:
Subject: HELP ME!
03/14/2003 04:09
AM
Please respond to
soap-user
Hello People ,
I have a big problem at my hand and i can't see my way through
it..... I downloaded the Apache soap package from there site and it
had few sample examples in it like address book and more like that.
Now i place the soap.war file in my tomcat folder(c:
\tomcat\webapps\soap.war) Now i have the admin running perfectly
fine. Now when i come to the examples like the address book
examples(the very first one). i I set all the CLASSPATHs and it is
deploying the addressbook service perfectly fine ...that mean i
think the deployment decriptor file is running just fine. Now when
it come to client java file and runs the java file it give the
following error.
******************************************************
C:\soap-2_3_1\samples\addressbook>testit
This test assumes a server URL of
http://localhost:8080/soap/servlet/rpcrouter
Deploying the addressbook service...
.
Verify that it's there
Deployed Services:
urn:AddressFetcher
.
Getting info for "Mr Good"
Start Process
Extracting URL
http://localhost:8080/soap/servlet/rpcrouter
MAPPING:[EMAIL PROTECTED]
BEAN:[EMAIL PROTECTED]
QNAME: urn:xml-soap-address-demo:address
Generated fault: [Attributes={}] [faultCode=SOAP-ENV:Client]
[faultString=Deploy
ment error in SOAP service 'urn:AddressFetcher': class name
'samples.addressbook
.Address' could not be resolved: samples.addressbook.Address]
[faultActorURI=/so
ap/servlet/rpcrouter] [DetailEntries=] [FaultEntries=]
.
Adding "John Doe"
Generated fault: [Attributes={}] [faultCode=SOAP-ENV:Client]
[faultString=Deploy
ment error in SOAP service 'urn:AddressFetcher': class name
'samples.addressbook
.Address' could not be resolved: samples.addressbook.Address]
[faultActorURI=/so
ap/servlet/rpcrouter] [DetailEntries=] [FaultEntries=]
.
Query "Mr Doe" to make sure it was added
Start Process
Extracting URL
http://localhost:8080/soap/servlet/rpcrouter
MAPPING:[EMAIL PROTECTED]
BEAN:[EMAIL PROTECTED]
QNAME: urn:xml-soap-address-demo:address
Generated fault: [Attributes={}] [faultCode=SOAP-ENV:Client]
[faultString=Deploy
ment error in SOAP service 'urn:AddressFetcher': class name
'samples.addressbook
.Address' could not be resolved: samples.addressbook.Address]
[faultActorURI=/so
ap/servlet/rpcrouter] [DetailEntries=] [FaultEntries=]
.
Adding an XML file of listings
Generated fault: [Attributes={}] [faultCode=SOAP-ENV:Client]
[faultString=Deploy
ment error in SOAP service 'urn:AddressFetcher': class name
'samples.addressbook
.Address' could not be resolved: samples.addressbook.Address]
[faultActorURI=/so
ap/servlet/rpcrouter] [DetailEntries=] [FaultEntries=]
.
Get everyone!
Generated fault: [Attributes={}] [faultCode=SOAP-ENV:Client]
[faultString=Deploy
ment error in SOAP service 'urn:AddressFetcher': class name
'samples.addressbook
.Address' could not be resolved: samples.addressbook.Address]
[faultActorURI=/so
ap/servlet/rpcrouter] [DetailEntries=] [FaultEntries=]
.
Undeploy it now
.
Verify that it's gone
Deployed Services:
C:\soap-2_3_1\samples\addressbook>
********************************************************************
i can figure out one thng (i could be wrong) that the soap server is
not geeting the class files for the server soap files but i did one
thing ... i set the class path.......please tell me what sould i do
i and also attaching a simple example... if anyone finds what wrong
with it please tell me so....... I need your people help.
takecare
shehzad
When words aren't enough - Vodafone live! A new world of colour, sounds,
picture messages and information on your mobile. Click here to find out
more
(See attached file: SimpleSoap.zip)