You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Thaer Hani Al-Ibaisi <th...@integrant.com.jo> on 2001/04/19 14:58:17 UTC

Fault = BadTargetObjectURI ?

Hi all,
I am working on JRUN server to develop a Java projects, and now Iam learning
a SOAP wire Protocol to use it in Java applications, I read all the
instructions about how to deploy  and use a Apache-SOAP 2.1  and Xcerces 1.2
with JRun 3.0, and I use the samples that come with the SOAP 2.1 and folowed
all the instructions but a fault always occuered with me when I run the
client Java program, and the fault is "Fault=
SOAP-ENV:Server.BadTargetObjectURI, Unable to resolve target object:
Exchange".

Also I have been told that to put some code that identify the service in a
file called DeploymentDescriptor.xml, but it didnot work, so please any body
could help me with this problem.

FYI: I will attach the three xml files that I use them for run my program
that use SOAP within the JRUN, so your help will be appreciated.
 <<DeploymentDescriptor.xml>>  <<soap.xml>>  <<web.xml>> 

WARNING: Any unauthorised use or interception of this e-mail and its
attachements is illegal. If this e-mail is not intended for you, you may not
copy, distribute or disclose the contents to anyone. Integrant Inc. does not
accept any responsibility for the opinions expressed in this e-mail.

Re: Fault = BadTargetObjectURI ?

Posted by Scott Nichol <sn...@computer.org>.
Your DeploymentDescriptor.xml defines the URI for the service as urn:exchange.  Your
client code must include the following line

    call.setTargetObjectURI("urn:exchange");

>From the error message, I would guess you are currently specifying the parameter as
"Exchange".

Scott

----- Original Message -----
From: "Thaer Hani Al-Ibaisi" <th...@integrant.com.jo>
To: <so...@xml.apache.org>; <so...@xml.apache.org>
Sent: Thursday, April 19, 2001 8:58 AM
Subject: Fault = BadTargetObjectURI ?


> Hi all,
> I am working on JRUN server to develop a Java projects, and now Iam learning
> a SOAP wire Protocol to use it in Java applications, I read all the
> instructions about how to deploy  and use a Apache-SOAP 2.1  and Xcerces 1.2
> with JRun 3.0, and I use the samples that come with the SOAP 2.1 and folowed
> all the instructions but a fault always occuered with me when I run the
> client Java program, and the fault is "Fault=
> SOAP-ENV:Server.BadTargetObjectURI, Unable to resolve target object:
> Exchange".
>
> Also I have been told that to put some code that identify the service in a
> file called DeploymentDescriptor.xml, but it didnot work, so please any body
> could help me with this problem.
>
> FYI: I will attach the three xml files that I use them for run my program
> that use SOAP within the JRUN, so your help will be appreciated.
>  <<DeploymentDescriptor.xml>>  <<soap.xml>>  <<web.xml>>
>
> WARNING: Any unauthorised use or interception of this e-mail and its
> attachements is illegal. If this e-mail is not intended for you, you may not
> copy, distribute or disclose the contents to anyone. Integrant Inc. does not
> accept any responsibility for the opinions expressed in this e-mail.
>