Hi,
Looks like a data binding issue.. If possible please post a message stack
trace of the response.

Also what's the Axis2 version you are using.. Axis2 1.3 has the following
known bug, which is fixed in the head..
https://issues.apache.org/jira/browse/AXIS2-3196

Axis2 supports MTOM and it has proven interoperability with .net except for
the above mentioned bug which appeared in Axis2 1.3 as a result of a
optimization..

But I also suspect about the Data Binding capability of the simple type
restriction of Base64Binary given in the xsd4..
<xs:simpleType name="StreamBody">
   <xs:restriction base="xs:base64Binary" />
 </xs:simpleType>


thanks,
Thilina

On Mon, Mar 17, 2008 at 5:14 AM, Andreas Necker <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> 2008/3/14, Thilina Gunarathne <[EMAIL PROTECTED]>:
> > Yes.. Please post the other WSDL and specially the schema part (may be
> >  it's a separate .xsd file)..
> >
> here are the the WSDLs and XSDs.
>
> >  What exactly did you mean by streaming.. Is it MTOM??..  Are you
> >  trying to send back a binary file data to the client..
> >
> Yes, the CheckOutDocument Methods sends back a (File)Stream.
> The message encoding is MTOM (-> "Service configuration" in my first
> Mail).
> I think the interesting parts are the CheckOutDocumentResult @xsd0
> and the StreamBody definition @xsd4.
>
> Thanks
> Andreas
>
> FileTransfer.WSDL
> ====================
> <?xml version="1.0" encoding="utf-8"?>
> <wsdl:definitions name="FileTransfer"
> targetNamespace="http://tempuri.org/";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:wsu="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> "
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata";
> xmlns:tns="http://tempuri.org/";
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
> xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";
> xmlns:i0="http://www.dummy.de/DmsService";
> xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract";
> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
> xmlns:wsa10="http://www.w3.org/2005/08/addressing";
> xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex";>
>  <wsp:Policy wsu:Id="BasicHttpFileTransfer_policy">
>    <wsp:ExactlyOne>
>      <wsp:All>
>        <wsoma:OptimizedMimeSerialization
> xmlns:wsoma="
> http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization";
> />
>      </wsp:All>
>    </wsp:ExactlyOne>
>  </wsp:Policy>
>  <wsdl:import namespace="http://www.dummy.de/DmsService";
> location="http://ntfe:8013/DmsBatch/FileTransfer/?wsdl=wsdl0"; />
>  <wsdl:types />
>  <wsdl:binding name="BasicHttpFileTransfer" type="i0:IFileTransfer">
>    <wsp:PolicyReference URI="#BasicHttpFileTransfer_policy" />
>    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; />
>    <wsdl:operation name="CheckOutDocument">
>      <soap:operation
> soapAction="http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocument";
> style="document" />
>      <wsdl:input>
>        <soap:body use="literal" />
>      </wsdl:input>
>      <wsdl:output>
>        <soap:body use="literal" />
>      </wsdl:output>
>      <wsdl:fault name="ServiceOperationFailedExceptionFault">
>        <soap:fault name="ServiceOperationFailedExceptionFault"
> use="literal" />
>      </wsdl:fault>
>      <wsdl:fault name="ServiceOperationFailedRetryExceptionFault">
>        <soap:fault name="ServiceOperationFailedRetryExceptionFault"
> use="literal" />
>      </wsdl:fault>
>      <wsdl:fault name="AuthenticationExceptionFault">
>        <soap:fault name="AuthenticationExceptionFault" use="literal" />
>      </wsdl:fault>
>    </wsdl:operation>
>  </wsdl:binding>
>  <wsdl:service name="FileTransfer">
>    <wsdl:port name="BasicHttpFileTransfer"
> binding="tns:BasicHttpFileTransfer">
>      <soap:address location="http://ntfe:8013/DmsBatch/FileTransfer/"; />
>    </wsdl:port>
>  </wsdl:service>
> </wsdl:definitions>
> ====================
>
> http://ntfe:8013/DmsBatch/FileTransfer/?wsdl=wsdl0
> ====================
> <?xml version="1.0" encoding="utf-8"?>
> <wsdl:definitions targetNamespace="http://www.dummy.de/DmsService";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:wsu="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> "
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata";
> xmlns:tns="http://www.dummy.de/DmsService";
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
> xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";
> xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract";
> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
> xmlns:wsa10="http://www.w3.org/2005/08/addressing";
> xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex";>
>   <wsdl:types>
>    <xsd:schema targetNamespace="http://www.dummy.de/DmsService/Imports";>
>      <xsd:import
> schemaLocation="http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd0";
> namespace="http://www.dummy.de/DmsService"; />
>      <xsd:import
> schemaLocation="http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd2";
> namespace="
> http://schemas.datacontract.org/2004/07/dummy.Profile.DmsService";
> />
>      <xsd:import
> schemaLocation="http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd1";
> namespace="http://schemas.microsoft.com/2003/10/Serialization/"; />
>      <xsd:import
> schemaLocation="http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd3";
> namespace="http://schemas.datacontract.org/2004/07/System"; />
>      <xsd:import
> schemaLocation="http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd4";
> namespace="http://schemas.microsoft.com/Message"; />
>    </xsd:schema>
>  </wsdl:types>
>  <wsdl:message name="IFileTransfer_CheckOutDocument_InputMessage">
>    <wsdl:part name="parameters" element="tns:CheckOutDocument" />
>  </wsdl:message>
>  <wsdl:message name="IFileTransfer_CheckOutDocument_OutputMessage">
>    <wsdl:part name="parameters" element="tns:CheckOutDocumentResponse" />
>  </wsdl:message>
>  <wsdl:message
>
> name="IFileTransfer_CheckOutDocument_ServiceOperationFailedExceptionFault_FaultMessage">
>    <wsdl:part name="detail"
> element="q7:ServiceOperationFailedException"
> xmlns:q7="http://schemas.datacontract.org/2004/07/dummy.Profile.DmsService
> "
> />
>  </wsdl:message>
>  <wsdl:message
>
> name="IFileTransfer_CheckOutDocument_ServiceOperationFailedRetryExceptionFault_FaultMessage">
>    <wsdl:part name="detail"
> element="q8:ServiceOperationFailedRetryException"
> xmlns:q8="http://schemas.datacontract.org/2004/07/dummy.Profile.DmsService
> "
> />
>  </wsdl:message>
>  <wsdl:message
>
> name="IFileTransfer_CheckOutDocument_AuthenticationExceptionFault_FaultMessage">
>    <wsdl:part name="detail" element="q9:AuthenticationException"
> xmlns:q9="http://schemas.datacontract.org/2004/07/dummy.Profile.DmsService
> "
> />
>  </wsdl:message>
>  <wsdl:portType name="IFileTransfer">
>    <wsdl:operation name="CheckOutDocument">
>      <wsdl:input
> wsaw:Action="http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocument
> "
> message="tns:IFileTransfer_CheckOutDocument_InputMessage" />
>      <wsdl:output
> wsaw:Action="
> http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocumentResponse";
> message="tns:IFileTransfer_CheckOutDocument_OutputMessage" />
>      <wsdl:fault
> wsaw:Action="
> http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocumentServiceOperationFailedExceptionFault
> "
> name="ServiceOperationFailedExceptionFault"
>
> message="tns:IFileTransfer_CheckOutDocument_ServiceOperationFailedExceptionFault_FaultMessage"
> />
>      <wsdl:fault
> wsaw:Action="
> http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocumentServiceOperationFailedRetryExceptionFault
> "
> name="ServiceOperationFailedRetryExceptionFault"
>
> message="tns:IFileTransfer_CheckOutDocument_ServiceOperationFailedRetryExceptionFault_FaultMessage"
> />
>      <wsdl:fault
> wsaw:Action="
> http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocumentAuthenticationExceptionFault
> "
> name="AuthenticationExceptionFault"
>
> message="tns:IFileTransfer_CheckOutDocument_AuthenticationExceptionFault_FaultMessage"
> />
>    </wsdl:operation>
>  </wsdl:portType>
> </wsdl:definitions>
> ====================
>
> http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd0
> ====================
> <?xml version="1.0" encoding="utf-8"?>
> <xs:schema elementFormDefault="qualified"
> targetNamespace="http://www.dummy.de/DmsService";
> xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:tns="http://www.dummy.de/DmsService";>
>  <xs:import schemaLocation="
> http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd4";
> namespace="http://schemas.microsoft.com/Message"; />
>  <xs:element name="CheckOutDocument">
>    <xs:complexType>
>      <xs:sequence>
>        <xs:element minOccurs="0" name="id" nillable="true"
> type="xs:string" />
>      </xs:sequence>
>    </xs:complexType>
>  </xs:element>
>  <xs:element name="CheckOutDocumentResponse">
>    <xs:complexType>
>      <xs:sequence>
>        <xs:element name="CheckOutDocumentResult" type="q1:StreamBody"
> xmlns:q1="http://schemas.microsoft.com/Message"; />
>      </xs:sequence>
>    </xs:complexType>
>  </xs:element>
> </xs:schema>
> ====================
>
> http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd1
> ====================
> <?xml version="1.0" encoding="utf-8"?>
> <xs:schema attributeFormDefault="qualified"
> elementFormDefault="qualified"
> targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/";
> xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/";>
>  <xs:element name="anyType" nillable="true" type="xs:anyType" />
>  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
>  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
>  <xs:element name="boolean" nillable="true" type="xs:boolean" />
>  <xs:element name="byte" nillable="true" type="xs:byte" />
>  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
>  <xs:element name="decimal" nillable="true" type="xs:decimal" />
>  <xs:element name="double" nillable="true" type="xs:double" />
>  <xs:element name="float" nillable="true" type="xs:float" />
>  <xs:element name="int" nillable="true" type="xs:int" />
>  <xs:element name="long" nillable="true" type="xs:long" />
>  <xs:element name="QName" nillable="true" type="xs:QName" />
>  <xs:element name="short" nillable="true" type="xs:short" />
>  <xs:element name="string" nillable="true" type="xs:string" />
>  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
>  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
>  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
>  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort"
> />
>  <xs:element name="char" nillable="true" type="tns:char" />
>  <xs:simpleType name="char">
>    <xs:restriction base="xs:int" />
>  </xs:simpleType>
>  <xs:element name="duration" nillable="true" type="tns:duration" />
>  <xs:simpleType name="duration">
>    <xs:restriction base="xs:duration">
>      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
>      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
>      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
>    </xs:restriction>
>  </xs:simpleType>
>  <xs:element name="guid" nillable="true" type="tns:guid" />
>  <xs:simpleType name="guid">
>    <xs:restriction base="xs:string">
>      <xs:pattern
>
> value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"
> />
>    </xs:restriction>
>  </xs:simpleType>
>  <xs:attribute name="FactoryType" type="xs:QName" />
> </xs:schema>
> ====================
>
> http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd2
> ====================
> <?xml version="1.0" encoding="utf-8"?>
> <xs:schema elementFormDefault="qualified"
> targetNamespace="
> http://schemas.datacontract.org/2004/07/dummy.Profile.DmsService";
> xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:tns="
> http://schemas.datacontract.org/2004/07/dummy.Profile.DmsService";>
>  <xs:import schemaLocation="
> http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd3";
> namespace="http://schemas.datacontract.org/2004/07/System"; />
>  <xs:complexType name="AuthenticationException">
>    <xs:complexContent mixed="false">
>      <xs:extension base="q1:ApplicationException"
> xmlns:q1="http://schemas.datacontract.org/2004/07/System"; />
>    </xs:complexContent>
>  </xs:complexType>
>  <xs:element name="AuthenticationException" nillable="true"
> type="tns:AuthenticationException" />
>  <xs:complexType name="ServiceOperationFailedException">
>    <xs:complexContent mixed="false">
>      <xs:extension base="q2:ApplicationException"
> xmlns:q2="http://schemas.datacontract.org/2004/07/System"; />
>    </xs:complexContent>
>  </xs:complexType>
>  <xs:element name="ServiceOperationFailedException" nillable="true"
> type="tns:ServiceOperationFailedException" />
> </xs:schema>
> ====================
>
> http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd3
> ====================
> <?xml version="1.0" encoding="utf-8"?>
> <xs:schema elementFormDefault="qualified"
> targetNamespace="http://schemas.datacontract.org/2004/07/System";
> xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:tns="http://schemas.datacontract.org/2004/07/System";
> xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/";>
>  <xs:import schemaLocation="
> http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd1";
> namespace="http://schemas.microsoft.com/2003/10/Serialization/"; />
>  <xs:complexType name="ApplicationException">
>    <xs:complexContent mixed="false">
>      <xs:extension base="tns:Exception" />
>    </xs:complexContent>
>  </xs:complexType>
>  <xs:element name="ApplicationException" nillable="true"
> type="tns:ApplicationException" />
>  <xs:complexType name="Exception">
>    <xs:sequence>
>      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##local"
> processContents="skip" />
>    </xs:sequence>
>    <xs:attribute ref="ser:FactoryType" />
>  </xs:complexType>
>  <xs:element name="Exception" nillable="true" type="tns:Exception" />
> </xs:schema>
> ====================
>
> http://ntfe:8013/DmsBatch/FileTransfer/?xsd=xsd4
> ====================
> <?xml version="1.0" encoding="utf-8"?>
> <xs:schema elementFormDefault="qualified"
> targetNamespace="http://schemas.microsoft.com/Message";
> xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:tns="http://schemas.microsoft.com/Message";>
>  <xs:simpleType name="StreamBody">
>    <xs:restriction base="xs:base64Binary" />
>  </xs:simpleType>
> </xs:schema>
> ====================
>
> End of mail.    :-)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thilina Gunarathne - http://thilinag.blogspot.com

Reply via email to