You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Rudi Verago [vlain]" <vl...@libero.it> on 2003/11/12 13:12:55 UTC

Axis #2: server side

Sorry but I have found error on client side.
Web Services works but I don't see wsdl but this message:

-> Fault - ; nested exception is: 
-> 	WSDLException: faultCode=OTHER_ERROR: Can't find prefix for \
-> 'urn:EchoAttachmentsService'. 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:EchoAttachmentsService'. Namespace prefixes must be set on the Definition
-> object \
-> using the addNamespace(...) method.:   faultActor: 
->  faultNode: 
->  faultDetail: 

my deploy.wsdd is:

<deployment xmlns="http://xml.apache.org/axis/wsdd/" 
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" 
            xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" 
            xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
            xmlns:ns1="captureFile">

   <service name="captureFile" provider="java:RPC" >
      <parameter name="className" value="captureFile"/>
      <parameter name="allowedMethods" value="captureData"/>

   <typeMapping 
      qname="ns1:DataHandler"
      languageSpecificType="java:javax.activation.DataHandler" 
      serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory" 
      deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    />

  </service>

</deployment>

~~~~~~~~~~~~~~~
Rudi Verago [vLAiN]
vlain@libero.it
~~~~~~~~~~~~~~~