As it happens, I was just looking at the request that is created by
the ServiceManagerClient when deploying the addressbook service. This
request is a LOT more complicated than the descriptor file.

The ns2 namespace is defined in the descriptor tag:

<descriptor xmlns:ns2="http://xml.apache.org/xml-soap";
xsi:type="ns2:DeploymentDescriptor">

It gets uses in tags like these:
<mappings xmlns:ns5="http://schemas.xmlsoap.org/soap/encoding/";
xsi:type="ns5:Array" ns5:arrayType="ns2:TypeMapping[2]">
<item xsi:type="ns2:TypeMapping">
<encodingStyle
xsi:type="xsd:string">http://schemas.xmlsoap.org/soap/encoding/</encodingStyle>
<elementType-ns
xsi:type="xsd:string">urn:xml-soap-address-demo</elementType-ns>
<elementType-lp xsi:type="xsd:string">address</elementType-lp>
<javaType xsi:type="xsd:string">samples.addressbook.Address</javaType>
<xml2JavaClassName
xsi:type="xsd:string">org.apache.soap.encoding.soapenc.BeanSerializer</xml2JavaClassName>
<java2XMLClassName
xsi:type="xsd:string">org.apache.soap.encoding.soapenc.BeanSerializer</java2XMLClassName>
</item>

Unfortunately I have no idea why you get that error, but now you know
where ns2 is used.

fanyun wrote:
> 
> Hi:
> 
> First thanks for the help. Second, I tried, but still got the same error.
> 
> Any one can explain why it mentioned      ns2     and   SOAP-ENV:Client  which not 
>mentioned in my DeploymentDescriptor.xml
> 
> Regards
> 
> fanyun
> 
> -----Original Message-----
> From: Jonathan Chawke [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 04, 2001 11:17 PM
> To: [EMAIL PROTECTED]
> Subject: Fwd: deploy problem
> 
> Have a look here:
> http://xml.apache.org/soap/faq/faq_chawke.html#Q1_2
> Hope this helps,
> Jonathan.
> 
> >From: "fanyun" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: "Soap-User" <[EMAIL PROTECTED]>
> >Subject: deploy problem
> >Date: Wed, 4 Jul 2001 20:38:42 +0800
> >
> >Hi:
> >
> >I am new to soap. I am using apache soap 2.2 with Resin.  I have sucess
> >test installation by visit the admin page and call rpcrouter from command
> >line.
> >
> >When I try to deploy      urn:AddressFetcher   from the sample:
> >
> >I input the command:
> >
> >       java -cp
> 
>>c:\resin-2.0.0\webapps\soap\WEB-INF\classes;c:\lib\activation.jar;c:\lib\mail.jar;c:\lib\xerces.jar
> >org.apache.soap.server.ServiceManagerClient
> >               http://ehub:8080/soap/servlet/rpcrouter deploy 
>DeploymentDescriptor.xml
> >
> >(the deploymentDescriptor.xml is come with the sample)
> >
> >
> >I get the result:
> >
> >       Ouch, the call failed:
> >         Fault Code   = SOAP-ENV:Client
> >         Fault String = Unable to resolve namespace URI for 'ns2'.
> >
> >
> >I really do not understand what is the problem. I do not have ns2 in the
> >file nor the SOAP-ENV:Client
> >
> >
> >What should I do to fix the problem?
> >
> >
> >Regards&Thanks
> >
> >fanyun
> >
> 
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

Reply via email to