Dmitri Colebatch schrieb:

> what is the TargetObjectURI you use?  "Catalog", thats fine - check your
> deployment descriptor... sounds like its not finding anything deployed -
> check http://localhost:8080/soap/ for the list of deployed services and
> that the uri lines up.
>
> cheers
> dim



My TargetObjectURI is the ID from the service "urn:Cat001".
I don't use Catalog (my class) as my TargetObjectURI.

When I enter:

C:\>java org.apache.soap.server.ServiceManagerClient
http://localhost/soap/servlet/rpcrouter  query  urn:Cat001

I get:

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:Cat001" checkMustUnderstands="false">
  <isd:provider type="java" scope="Application" methods="getElements">
    <isd:java class="Catalog" static="false"/>
  </isd:provider>
</isd:service>


This is the same as my Deploymentdescriptor, with which I tried to deploy my
"Catalog.class" too.

The screenshots of TCPTunnelGUI are as follows:


HTTP REQUEST

POST /soap/servlet/rpcrouter HTTP/1.0
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: 477
SOAPAction: ""

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
       xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
   <ns1:getElements   xmlns:ns1="urn:Cat001"

SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

        <from xsi:type="xsd:int">3</from>

        <until xsi:type="xsd:int">9</until>

    </ns1:getElements>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



HTTP RESPONSE

HTTP/1.0 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Content-Length: 493
Set-Cookie2: JSESSIONID=80l9dkjai1;Version=1;Discard;Path="/soap"
Set-Cookie: JSESSIONID=80l9dkjai1;Path=/soap
Servlet-Engine: Tomcat Web Server/3.2.3 (bla, bla..)

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
       xmlns:xsd="http://www.w3.org/1999/XMLSchema">
  <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
      <faultcode>SOAP-ENV:Server.BadTargetObjectURI</faultcode>
      <faultstring>Unable to resolve target object: Catalog</faultstring>
      <faultactor>/soap/servlet/rpcrouter</faultactor>
    </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Should I move my "Catalog.class" from "D:\SOAP_Samp0\" to another special
folder?

I'm sending you my both .java classes Catalog.java and CatalogClient.java.
I'd be glad, if you'd have a look at them.

Bye,

Uemit




Catalog_sample.zip

Reply via email to