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 German Sakaryan <gs...@informatik.uni-rostock.de> on 2005/09/15 08:46:16 UTC

Using Axis Web Services with attachments by third party software

Hallo,
have a problem by using WSDL descriptions (automatically generated) of 
the AXIS web services (with attachments).

DataHandler type is not fully defined.
In both cases (see below), description of DataHandler is not enought to 
use it within third party software (I am using WebSphere Studio to 
create BPEL processes).

In the first case, DataHandler is defined by means of 
xmlns:tns1="urn:EchoAttachmentsService". It seems confusing
since I did not define any "urn:EchoAttachmentsService".

In the second case,  DataHandler is defined by means of 
xmlns:apachesoap="http://xml.apache.org/xml-soap".

Where can I take this schema?


1. Deployment by descriptors.
WSDL looks like:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions 
targetNamespace="http://www.bbb.sak/webapps/axis/services/TestFileWS" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="http://www.bbb.sak/webapps/axis/services/TestFileWS" 
xmlns:intf="http://www.bbb.sak/webapps/axis/services/TestFileWS" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:tns1="urn:EchoAttachmentsService" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2.1
Built on Jun 14, 2005 (09:15:57 EDT)-->

<wsdl:message name="writeDataToFileRequest">

       <wsdl:part name="in0" type="tns1:DataHandler"/>

  </wsdl:message>
.....

2. .jws deployment

WSDL is:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions 
targetNamespace="http://www.bbb.sak/webapps/axis/TestFileWS.jws" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="http://www.bbb.sak/webapps/axis/TestFileWS.jws" 
xmlns:intf="http://www.bbb.sak/webapps/axis/TestFileWS.jws" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2.1
Built on Jun 14, 2005 (09:15:57 EDT)-->

    <wsdl:message name="writeDataToFileRequest">

       <wsdl:part name="dh" type="apachesoap:DataHandler"/>

    </wsdl:message>

......

Thank you for any help.


German Sakaryan