You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Ryan Lambert <rl...@zantaz.com> on 2002/07/24 22:57:26 UTC

SOAP Environment Issues ?

Help !
 
I am trying to get some SOAP sample code to work.
 
I have SOAP 2_3_1running on Apache.
 
I can list & deploy the service and query the service and get the results
listed below...
 
List :
 
Deployed Services:
        urn:hello_world

Query :
 
<isd:service xmlns:isd=" http://xml.apache.org/xml-soap/deployment
<http://xml.apache.org/xml-soap/deployment> " id="urn:hello_world"
checkMustUnderstands="false">
  <isd:provider type="java" scope="Application" methods="sayHelloTo">
    <isd:java class="HelloServer" static="false"/>
  </isd:provider>
 
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>
</isd:service>
 
But when I run the client to call the server I get the following ( The
Client simply calls the sayHelloTo method in the HelloServer )
 
 
java -classpath
/home/rlambert/soap/test/:/opt/jaf/activation.jar:/opt/javamail/mail.jar:/op
t/soap-2_3_1/lib/soap.jar:/opt/xerces/xerces.jar Client Ryan
 
Generated fault:
 Fault Code = SOAP-ENV:Server.BadTargetObjectURI
 Fault String = Unable to resolve target object: HelloServer

I did get SOAP working about 6 months ago - then took a break and am now
back to it but things have changed and I can not get the environment
correctly setup.
 
HELP PLEASE HELP !
 
 
+	 Ryan Lambert	
(	 Senior Software Engineer	
8	 Zantaz.com Inc	
O	 5671 Gibraltar Drive Pleasanton, CA 94588	
 
 


This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm)
service.  For more information, visit us at www.zantaz.com. 
IMPORTANT: This electronic mail message is intended only for the use of the
individual or entity to which it is addressed and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law.  If the reader of this message is not the intended recipient, or the
employee or agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If you have received
this communication in error, please notify the sender immediately by
telephone or directly reply to the original message(s) sent.  Thank you.

Re: SOAP Environment Issues ?

Posted by Scott Nichol <sn...@scottnichol.com>.
Ryan,

Your service class (HelloServer) needs to be accessible to be loadable in
the context of Apache SOAP.  What servlet container are you using, e.g.
Tomcat 4.0?

Scott Nichol

----- Original Message -----
From: "Ryan Lambert" <rl...@zantaz.com>
To: <so...@xml.apache.org>
Sent: Wednesday, July 24, 2002 4:57 PM
Subject: SOAP Environment Issues ?


> Help !
>
> I am trying to get some SOAP sample code to work.
>
> I have SOAP 2_3_1running on Apache.
>
> I can list & deploy the service and query the service and get the results
> listed below...
>
> List :
>
> Deployed Services:
>         urn:hello_world
>
> Query :
>
> <isd:service xmlns:isd=" http://xml.apache.org/xml-soap/deployment
> <http://xml.apache.org/xml-soap/deployment> " id="urn:hello_world"
> checkMustUnderstands="false">
>   <isd:provider type="java" scope="Application" methods="sayHelloTo">
>     <isd:java class="HelloServer" static="false"/>
>   </isd:provider>
>
>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
> r>
> </isd:service>
>
> But when I run the client to call the server I get the following ( The
> Client simply calls the sayHelloTo method in the HelloServer )
>
>
> java -classpath
>
/home/rlambert/soap/test/:/opt/jaf/activation.jar:/opt/javamail/mail.jar:/op
> t/soap-2_3_1/lib/soap.jar:/opt/xerces/xerces.jar Client Ryan
>
> Generated fault:
>  Fault Code = SOAP-ENV:Server.BadTargetObjectURI
>  Fault String = Unable to resolve target object: HelloServer
>
> I did get SOAP working about 6 months ago - then took a break and am now
> back to it but things have changed and I can not get the environment
> correctly setup.
>
> HELP PLEASE HELP !
>
>
> + Ryan Lambert
> ( Senior Software Engineer
> 8 Zantaz.com Inc
> O 5671 Gibraltar Drive Pleasanton, CA 94588
>
>
>
>
> This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm)
> service.  For more information, visit us at www.zantaz.com.
> IMPORTANT: This electronic mail message is intended only for the use of
the
> individual or entity to which it is addressed and may contain information
> that is privileged, confidential or exempt from disclosure under
applicable
> law.  If the reader of this message is not the intended recipient, or the
> employee or agent responsible for delivering this message to the intended
> recipient, you are hereby notified that any dissemination, distribution or
> copying of this communication is strictly prohibited.  If you have
received
> this communication in error, please notify the sender immediately by
> telephone or directly reply to the original message(s) sent.  Thank you.
>


--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>


Re: SOAP Environment Issues ?

Posted by Scott Nichol <sn...@scottnichol.com>.
Ryan,

Your service class (HelloServer) needs to be accessible to be loadable in
the context of Apache SOAP.  What servlet container are you using, e.g.
Tomcat 4.0?

Scott Nichol

----- Original Message -----
From: "Ryan Lambert" <rl...@zantaz.com>
To: <so...@xml.apache.org>
Sent: Wednesday, July 24, 2002 4:57 PM
Subject: SOAP Environment Issues ?


> Help !
>
> I am trying to get some SOAP sample code to work.
>
> I have SOAP 2_3_1running on Apache.
>
> I can list & deploy the service and query the service and get the results
> listed below...
>
> List :
>
> Deployed Services:
>         urn:hello_world
>
> Query :
>
> <isd:service xmlns:isd=" http://xml.apache.org/xml-soap/deployment
> <http://xml.apache.org/xml-soap/deployment> " id="urn:hello_world"
> checkMustUnderstands="false">
>   <isd:provider type="java" scope="Application" methods="sayHelloTo">
>     <isd:java class="HelloServer" static="false"/>
>   </isd:provider>
>
>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
> r>
> </isd:service>
>
> But when I run the client to call the server I get the following ( The
> Client simply calls the sayHelloTo method in the HelloServer )
>
>
> java -classpath
>
/home/rlambert/soap/test/:/opt/jaf/activation.jar:/opt/javamail/mail.jar:/op
> t/soap-2_3_1/lib/soap.jar:/opt/xerces/xerces.jar Client Ryan
>
> Generated fault:
>  Fault Code = SOAP-ENV:Server.BadTargetObjectURI
>  Fault String = Unable to resolve target object: HelloServer
>
> I did get SOAP working about 6 months ago - then took a break and am now
> back to it but things have changed and I can not get the environment
> correctly setup.
>
> HELP PLEASE HELP !
>
>
> + Ryan Lambert
> ( Senior Software Engineer
> 8 Zantaz.com Inc
> O 5671 Gibraltar Drive Pleasanton, CA 94588
>
>
>
>
> This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm)
> service.  For more information, visit us at www.zantaz.com.
> IMPORTANT: This electronic mail message is intended only for the use of
the
> individual or entity to which it is addressed and may contain information
> that is privileged, confidential or exempt from disclosure under
applicable
> law.  If the reader of this message is not the intended recipient, or the
> employee or agent responsible for delivering this message to the intended
> recipient, you are hereby notified that any dissemination, distribution or
> copying of this communication is strictly prohibited.  If you have
received
> this communication in error, please notify the sender immediately by
> telephone or directly reply to the original message(s) sent.  Thank you.
>