I ran into this problem as well and want to just document more fully the
problem so no one else has to figure it out.
Below is the way the result of the of deployement appears in
server-config.wsdd:
Notice the typeMapping is 'outside' of the service description.
The client will fail with the error message that follows further down.
To correct the problem, move the typemapping for the JAF within the
<service> element itself.
This of course is in the server-config.wsdd file.
Rerun the lcient and the problem is corrected.
I ran this witht he 4/22 build.

 <service name="urn:EchoAttachmentsService" provider="java:RPC">
  <requestFlow type="checks"/>
  <parameter name="allowedMethods" value="echo echoDir"/>
  <parameter name="className"
value="samples.attachments.EchoAttachmentsService"/>
 </service>

 <typeMapping
deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory
" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
qname="ns3:DataHandler"
serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"
type="java:javax.activation.DataHandler"
xmlns:ns3="urn:EchoAttachmentsService"/>

Failure is:
G:\00TestEcho>java samples.attachments.EchoAttachment -d
g:\00testecho\david.gif

java.lang.IllegalArgumentException: argument type mismatch
java.lang.IllegalArgumentException: argument type mismatch
        at org.apache.axis.message.SOAPFaultBuilder.endElement(Unknown
Source)
        at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Unknow
n Source)
        at
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
        at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLVa
lidator.java:1550)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1204)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:393)
        at org.apache.axis.encoding.DeserializationContextImpl.parse(Unknown
Sou
rce)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at org.apache.axis.client.Call.invoke(Unknown Source)
        at samples.attachments.EchoAttachment.echo(Unknown Source)
        at samples.attachments.EchoAttachment.main(Unknown Source)

thanks

-----Original Message-----
From: Stefan Taubenberger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 1:50 AM
To: [EMAIL PROTECTED]
Subject: RE: Attachment / Errors


Hello,

Got it !!!
The typemapping from the attachdeploy.wsdd was not correctly deployed at
my axis server.


Greetings

Reply via email to