Since I didn't get any response I thought I should try again.

I have a webservice that accepts as input some string parameters and also an
attachment. The attachment is a ascii file.
The webservice then returns back another attachment as a response.

The service works fine , I am able to send back documents from the client to
the service and back. When I deploy this service to Tomcat and I open up the
the following url "http://localhost:8080/axis/servlet/AxisServlet"; using a
browser I can see the service, I deployed. The only problem I have is that
when I click on the wsdl link of this webservice, I get the following
exception 

Fault - ; nested exception is: WSDLException: faultCode=OTHER_ERROR:
Can't find prefix for 'urn:ClaimStatus'. Namespace prefixes
must be set on the Definition object using the addNamespace(...) method.: 
AxisFault faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode: faultString: WSDLException: faultCode=OTHER_ERROR: Can't
find prefix for 'urn:ClaimStatus'. Namespace prefixes must be set
on the Definition object using the addNamespace(...) method.: faultActor:
faultNode: faultDetail: 

I am thinking this could be a problem with the way I have defined the
attachment in the deploy.wsdd. Attached herewith is the wsdd. 

any help would be appreciated.

 <<deploy.wsdd>> 
-thanks,
   kumar


> -----Original Message-----
> From: Nair Kumar 
> Sent: Tuesday, February 17, 2004 10:19 AM
> To:   '[EMAIL PROTECTED]'
> Subject:      Help with deploy.wsdd
> 
> I have a webservice that takes as input some string fields and an
> attachment and it returns back another attachment. 
> 
> I get the following error when I try to browse the wsdl from the
> AxisServlet
> 
> Fault - ; nested exception is: WSDLException: faultCode=OTHER_ERROR:
> Can&apos;t find prefix for &apos;urn:ClaimStatus&apos;. Namespace prefixes
> must be set on the Definition object using the addNamespace(...) method.: 
> AxisFault faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> faultSubcode: faultString: WSDLException: faultCode=OTHER_ERROR:
> Can&apos;t find prefix for &apos;urn:ClaimStatus&apos;. Namespace prefixes
> must be set on the Definition object using the addNamespace(...) method.:
> faultActor: faultNode: faultDetail: 
> 
> I am guessing this  is a problem with the way that I have the deploy.wsdd
> coded. The deploy.wsdd looks like 
> 
> <deployment
>     xmlns="http://xml.apache.org/axis/wsdd/";
>     xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";
>     xmlns:tns="http://www.w3.org/2001/XMLSchema";
>     xmlns:myns="urn:myWS">
> 
>   <service name="myWS" provider="java:RPC">
>       <parameter name="className" value="myWebService"/>
>       <parameter name="allowedMethods" value="sendRequest"/>
> 
>      <operation name="sendRequest" returnQName="DataHandler"
> returnType="myns:DataHandler" >
>         <parameter name="str1" type="tns:string"/>
>         <parameter name="str2" type="tns:string"/>
>         <parameter name="str3" type="tns:string"/>
>         <parameter name="str4" type="tns:string"/>
>         <parameter name="str5" type="tns:string"/>
>           <parameter name="dh" type="myns:DataHandler"/>
>       </operation>
> 
>     <typeMapping
>  
> deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFacto
> ry"
>       languageSpecificType="java:javax.activation.DataHandler"
>       qname="myns:DataHandler"
>  
> serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"
>       encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
>   </service>
> </deployment>
> 
> any help would be appreciated.
> 
> -thanks,
>   kn

This electronic message transmission, including any attachments, contains
information from PacifiCare Health Systems Inc. which may be confidential or
privileged. The information is intended to be for the use of the individual or
entity named above. If you are not the intended recipient, be aware that any
disclosure, copying, distribution or use of the contents of this information
is prohibited.  
If you have received this electronic transmission in error, please notify the
sender immediately by a "reply to sender only" message and destroy all
electronic and hard copies of the communication, including attachments.

Attachment: deploy.wsdd
Description: Binary data

Reply via email to