axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frederik Colardyn" <>
Subject problem sending attachments with Axis 1.2 when using non Axis clients
Date Fri, 10 Feb 2006 08:42:05 GMT
We've got a problem when using Axis 1.2 as a webservice to send attachments to non Axis clients.
Our wsdl defines the binary attachment as xsd:hexBinary, which translates to <wsdl:part
name="csv" type="apachesoap:Source"/> when deployed and asking the wsdl from the webservice.
The problem is the soap envelope it sends back to the client, it mentions xsi:type="ns1:Source"
xmlns="" xmlns:ns1=""/, which gives an error on the client:
 failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException: mapping lookup
failure for xml type ['']:Source
Axis seems to enforce a specific decoding for the attachment, which is not cross
platform. I think the webservice would work just fine if it just didn't supply any xsi:type
nor xmlns, but i don't know if Axis can be configured not to. trying to set sendXsiTypes to
false in the wsdd didn't work.
Anyone having success sending attachments from a Axis 1.2 server to a non Axis client? Upgrading
to Axis 2 is not an option.
Client: weblogic
Source WSDL: 
<wsdl:message name="retrieveLoggingResponse">
  <wsdl:part type="xsd:hexBinary" name="csv" />
Generated WSDL when asking ?WSDL from Axis servlet:
<wsdl:message name="retrieveLoggingResponse">
  <wsdl:part name="csv" type="apachesoap:Source"/>
Returned evenvelope by Axis 1.2:
<soapenv:Envelope xmlns:soapenv="" xmlns:xsd=""
  <retrieveLoggingResponse xmlns="">   
   <csv href="cid:2FBC23FC4668CB8099EC63E11378CF34" xsi:type="ns1:Source" xmlns="" xmlns:ns1=""/>
Frederik Colardyn
J2EE developer / Technical Consultant

View raw message