Using SOAP with Tomcat
Subject:   SOAP-ENV:Server.BadTargetObjectURI
Date:   2002-08-01 11:06:25
From:   majidbakhsh
Response to: SOAP

I too have this reoccurring problem – Have any of the individuals who have experienced this problem found a solution yet?

I have carefully followed through O'Reilly's “Hello SOAP!” example step by step.

I deploy the Client Code without any problems as my service shows up on the list of deployed services:

Typing “java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter list” into the command-line yields:

Deployed Services:

However, when I try to test the client I get the following error:

Hello SOAP Client
Fault Occurred (details follow):
Fault Code: SOAP-ENV:Server.BadTargetObjectURI
Fault String: Unable to resolve target object:
Fault Occurred. No greeting for you!

After this I modify the client code to use port 8070 so that I may use the TCPTunnelGui tool to view my actual SOAP conversation.

To invoke this TCPTunnelGui Tool I type the following into the command line:

“java 8070 localhost 8080”

I then try to test my client again and get the following SOAP messages within the TCPTunnelGui tool

From localhost:8070 :

POST /soap/servlet/rpcrouter HTTP/1.0


Content-Type: text/xml; charset=utf-8

Content-Length: 464

SOAPAction: ""

<?xml version='1.0' encoding='UTF-8'?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsi="" xmlns:xsd="">


<ns1:sayHello xmlns:ns1="urn:examples:HelloService" SOAP-ENV:encodingStyle="">

<firstName xsi:type="xsd:string">maj</firstName>




& From localhost:8080 :

HTTP/1.0 500 Internal Server Error

Content-Type: text/xml; charset=utf-8

Content-Length: 486

Set-Cookie: JSESSIONID=trk0yz6te1;Path=/soap

Date: Thu, 01 Aug 2002 17:23:16 GMT

Server: Tomcat Web Server/3.3.1 Final ( JSP 1.1; Servlet 2.2 )

<?xml version='1.0' encoding='UTF-8'?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsi="" xmlns:xsd="">




<faultstring>Unable to resolve target object: </faultstring>





Any insights into this problem would be greatly appreciated!


1 to 1 of 1
  1. SOAP-ENV:Server.BadTargetObjectURI
    2003-03-30 01:37:25  anonymous2 [View]

1 to 1 of 1