You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andreas Necker (JIRA)" <ji...@apache.org> on 2008/03/31 16:08:25 UTC

[jira] Created: (AXIS2-3684) Interop. WCF Service/Axis2 Client: Stream-Resonse not working

Interop. WCF Service/Axis2 Client: Stream-Resonse not working
-------------------------------------------------------------

                 Key: AXIS2-3684
                 URL: https://issues.apache.org/jira/browse/AXIS2-3684
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: databinding
    Affects Versions: 1.3
         Environment: Service: .net WCF
Client: Axis2 Java client (Windows)
            Reporter: Andreas Necker


Axis2 Service Stub throws exception when it tries to get the response value of the service call -> Stream.
====================
org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException:
ParseError at [row,col]:[1,288]
Message: elementGetText() function expects text only elment but
START_ELEMENT was encountered.
       at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
       at org.tempuri.FileTransferStub.fromOM(FileTransferStub.java:1377)
       at org.tempuri.FileTransferStub.CheckOutDocument(FileTransferStub.java:874)
       at DmsClient.DmsClient.buttonDownloadMouseClicked(DmsClient.java:525)
   ...
====================

Message traces:

Client Request:
====================
- HTTP: Request, POST /DmsBatch/FileTransfer/
 - Request:
    Command: POST
  + URI: /DmsBatch/FileTransfer/
    ProtocolVersion: HTTP/1.1
    ContentType:  text/xml; charset=UTF-8
    SOAPAction:
"http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocument"
    UserAgent:  Axis2
    Host:  ntfe:8013
    ContentLength:  427
    HeaderEnd: CRLF
 - payload: HttpContentType =  text/xml; charset=UTF-8
  - XmlPayload:
     <?xml version="1.0" encoding="UTF-8"?>
   - <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    - <soapenv:Header>
     - <axis2ns2:DmsUserID xmlns:axis2ns2="Dummy.Profile.DmsService">
        aeacd9ad-52c6-42fe-b546-1a7959da606b
        </axis2ns2:DmsUserID>
       </soapenv:Header>
    - <soapenv:Body>
     - <ns2:CheckOutDocument xmlns:ns2="http://www.dummy.de/DmsService">
      - <ns2:id>
         408848
         </ns2:id>
        </ns2:CheckOutDocument>
       </soapenv:Body>
      </soapenv:Envelope>
====================

Service Response 1:
====================
- HTTP: Response, HTTP/1.1, Status Code = 200
 - Response:
    ProtocolVersion: HTTP/1.1
    StatusCode: 200, Ok
    Reason: OK
    TransferEncoding:  chunked
    ContentType:  multipart/related;
type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
    Server:  Microsoft-HTTPAPI/1.0
    MIME-Version:  1.0
    Date:  Fri, 28 Mar 2008 08:50:13 GMT
    HeaderEnd: CRLF
 - payload: HttpContentType =  multipart/related;
type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
  - XmlPayload:
     225

--uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
Content-ID:
   - <http://tempuri.org/0>

Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"


    - <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
     - <s:Body>
      - <CheckOutDocumentResponse xmlns="http://www.dummy.de/DmsService">
       - <CheckOutDocumentResult>
          <xop:Include
href="cid:http%3A%2F%2Ftempuri.org%2F1%2F633422946136935910"
xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
          </CheckOutDocumentResult>
         </CheckOutDocumentResponse>
        </s:Body>
       </s:Envelope>
====================

Service Response 2:
====================
- HTTP: HTTP Payload
 - payload: HttpContentType =
    Body: 4000
    Body:
    Body: --uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
    Body: Content-ID: <http://tempuri.org/1/633422946136935910>
    Body: Content-Transfer-Encoding: binary
    Body: Content-Type: application/octet-stream
...
====================

WSDLs:

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>
====================



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3684) Interop. WCF Service/Axis2 Client: Stream-Resonse not working

Posted by "Sietse de Kaper (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604978#action_12604978 ] 

Sietse de Kaper commented on AXIS2-3684:
----------------------------------------

I ran into this issue, and found a workaround:
In the XSD files, replace all occurrences of the {{StreamBody}} type (namespace {{http://schemas.microsoft.com/Message}}) with {{base64Binary}} (XML Schema namespace).

In other words:
{code:xml}
<xs:element name="GeefWerkpakketResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="WerkpakketStream" type="q4:StreamBody"
				xmlns:q4="http://schemas.microsoft.com/Message" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}
becomes:
{code:xml}
<xs:element name="GeefWerkpakketResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="WerkpakketStream" type="xs:base64Binary" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}

I'd patch ADB but I have no clue where to start looking.

> Interop. WCF Service/Axis2 Client: Stream-Resonse not working
> -------------------------------------------------------------
>
>                 Key: AXIS2-3684
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3684
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: Service: .net WCF
> Client: Axis2 Java client (Windows)
>            Reporter: Andreas Necker
>            Assignee: Amila Chinthaka Suriarachchi
>
> Axis2 Service Stub throws exception when it tries to get the response value of the service call -> Stream.
> ====================
> org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException:
> ParseError at [row,col]:[1,288]
> Message: elementGetText() function expects text only elment but
> START_ELEMENT was encountered.
>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>        at org.tempuri.FileTransferStub.fromOM(FileTransferStub.java:1377)
>        at org.tempuri.FileTransferStub.CheckOutDocument(FileTransferStub.java:874)
>        at DmsClient.DmsClient.buttonDownloadMouseClicked(DmsClient.java:525)
>    ...
> ====================
> Message traces:
> Client Request:
> ====================
> - HTTP: Request, POST /DmsBatch/FileTransfer/
>  - Request:
>     Command: POST
>   + URI: /DmsBatch/FileTransfer/
>     ProtocolVersion: HTTP/1.1
>     ContentType:  text/xml; charset=UTF-8
>     SOAPAction:
> "http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocument"
>     UserAgent:  Axis2
>     Host:  ntfe:8013
>     ContentLength:  427
>     HeaderEnd: CRLF
>  - payload: HttpContentType =  text/xml; charset=UTF-8
>   - XmlPayload:
>      <?xml version="1.0" encoding="UTF-8"?>
>    - <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>     - <soapenv:Header>
>      - <axis2ns2:DmsUserID xmlns:axis2ns2="Dummy.Profile.DmsService">
>         aeacd9ad-52c6-42fe-b546-1a7959da606b
>         </axis2ns2:DmsUserID>
>        </soapenv:Header>
>     - <soapenv:Body>
>      - <ns2:CheckOutDocument xmlns:ns2="http://www.dummy.de/DmsService">
>       - <ns2:id>
>          408848
>          </ns2:id>
>         </ns2:CheckOutDocument>
>        </soapenv:Body>
>       </soapenv:Envelope>
> ====================
> Service Response 1:
> ====================
> - HTTP: Response, HTTP/1.1, Status Code = 200
>  - Response:
>     ProtocolVersion: HTTP/1.1
>     StatusCode: 200, Ok
>     Reason: OK
>     TransferEncoding:  chunked
>     ContentType:  multipart/related;
> type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
>     Server:  Microsoft-HTTPAPI/1.0
>     MIME-Version:  1.0
>     Date:  Fri, 28 Mar 2008 08:50:13 GMT
>     HeaderEnd: CRLF
>  - payload: HttpContentType =  multipart/related;
> type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
>   - XmlPayload:
>      225
> --uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
> Content-ID:
>    - <http://tempuri.org/0>
> Content-Transfer-Encoding: 8bit
> Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
>     - <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
>      - <s:Body>
>       - <CheckOutDocumentResponse xmlns="http://www.dummy.de/DmsService">
>        - <CheckOutDocumentResult>
>           <xop:Include
> href="cid:http%3A%2F%2Ftempuri.org%2F1%2F633422946136935910"
> xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
>           </CheckOutDocumentResult>
>          </CheckOutDocumentResponse>
>         </s:Body>
>        </s:Envelope>
> ====================
> Service Response 2:
> ====================
> - HTTP: HTTP Payload
>  - payload: HttpContentType =
>     Body: 4000
>     Body:
>     Body: --uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
>     Body: Content-ID: <http://tempuri.org/1/633422946136935910>
>     Body: Content-Transfer-Encoding: binary
>     Body: Content-Type: application/octet-stream
> ...
> ====================
> WSDLs:
> 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>
> ====================

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3684) Interop. WCF Service/Axis2 Client: Stream-Resonse not working

Posted by "Thilina Gunarathne (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583910#action_12583910 ] 

Thilina Gunarathne commented on AXIS2-3684:
-------------------------------------------

I suspect this had something to do with ADB handling the Simple type restriction with base64Binary.

Up to the DataBinding experts...

> Interop. WCF Service/Axis2 Client: Stream-Resonse not working
> -------------------------------------------------------------
>
>                 Key: AXIS2-3684
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3684
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: Service: .net WCF
> Client: Axis2 Java client (Windows)
>            Reporter: Andreas Necker
>
> Axis2 Service Stub throws exception when it tries to get the response value of the service call -> Stream.
> ====================
> org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException:
> ParseError at [row,col]:[1,288]
> Message: elementGetText() function expects text only elment but
> START_ELEMENT was encountered.
>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>        at org.tempuri.FileTransferStub.fromOM(FileTransferStub.java:1377)
>        at org.tempuri.FileTransferStub.CheckOutDocument(FileTransferStub.java:874)
>        at DmsClient.DmsClient.buttonDownloadMouseClicked(DmsClient.java:525)
>    ...
> ====================
> Message traces:
> Client Request:
> ====================
> - HTTP: Request, POST /DmsBatch/FileTransfer/
>  - Request:
>     Command: POST
>   + URI: /DmsBatch/FileTransfer/
>     ProtocolVersion: HTTP/1.1
>     ContentType:  text/xml; charset=UTF-8
>     SOAPAction:
> "http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocument"
>     UserAgent:  Axis2
>     Host:  ntfe:8013
>     ContentLength:  427
>     HeaderEnd: CRLF
>  - payload: HttpContentType =  text/xml; charset=UTF-8
>   - XmlPayload:
>      <?xml version="1.0" encoding="UTF-8"?>
>    - <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>     - <soapenv:Header>
>      - <axis2ns2:DmsUserID xmlns:axis2ns2="Dummy.Profile.DmsService">
>         aeacd9ad-52c6-42fe-b546-1a7959da606b
>         </axis2ns2:DmsUserID>
>        </soapenv:Header>
>     - <soapenv:Body>
>      - <ns2:CheckOutDocument xmlns:ns2="http://www.dummy.de/DmsService">
>       - <ns2:id>
>          408848
>          </ns2:id>
>         </ns2:CheckOutDocument>
>        </soapenv:Body>
>       </soapenv:Envelope>
> ====================
> Service Response 1:
> ====================
> - HTTP: Response, HTTP/1.1, Status Code = 200
>  - Response:
>     ProtocolVersion: HTTP/1.1
>     StatusCode: 200, Ok
>     Reason: OK
>     TransferEncoding:  chunked
>     ContentType:  multipart/related;
> type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
>     Server:  Microsoft-HTTPAPI/1.0
>     MIME-Version:  1.0
>     Date:  Fri, 28 Mar 2008 08:50:13 GMT
>     HeaderEnd: CRLF
>  - payload: HttpContentType =  multipart/related;
> type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
>   - XmlPayload:
>      225
> --uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
> Content-ID:
>    - <http://tempuri.org/0>
> Content-Transfer-Encoding: 8bit
> Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
>     - <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
>      - <s:Body>
>       - <CheckOutDocumentResponse xmlns="http://www.dummy.de/DmsService">
>        - <CheckOutDocumentResult>
>           <xop:Include
> href="cid:http%3A%2F%2Ftempuri.org%2F1%2F633422946136935910"
> xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
>           </CheckOutDocumentResult>
>          </CheckOutDocumentResponse>
>         </s:Body>
>        </s:Envelope>
> ====================
> Service Response 2:
> ====================
> - HTTP: HTTP Payload
>  - payload: HttpContentType =
>     Body: 4000
>     Body:
>     Body: --uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
>     Body: Content-ID: <http://tempuri.org/1/633422946136935910>
>     Body: Content-Transfer-Encoding: binary
>     Body: Content-Type: application/octet-stream
> ...
> ====================
> WSDLs:
> 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>
> ====================

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Issue Comment Edited: (AXIS2-3684) Interop. WCF Service/Axis2 Client: Stream-Resonse not working

Posted by "Sietse de Kaper (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604978#action_12604978 ] 

sietse edited comment on AXIS2-3684 at 6/13/08 2:53 PM:
-----------------------------------------------------------------

I ran into this issue, and found a workaround:
In the XSD files, replace all occurrences of the {{StreamBody}} type (namespace {{http://schemas.microsoft.com/Message}}) with {{base64Binary}} (XML Schema namespace).

In other words:
{code}
<xs:element name="xResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="xStream" type="q4:StreamBody"
				xmlns:q4="http://schemas.microsoft.com/Message" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}
becomes:
{code}
<xs:element name="GeefWerkpakketResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="WerkpakketStream" type="xs:base64Binary" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}

I'd patch ADB but I have no clue where to start looking.

      was (Author: sietse):
    I ran into this issue, and found a workaround:
In the XSD files, replace all occurrences of the {{StreamBody}} type (namespace {{http://schemas.microsoft.com/Message}}) with {{base64Binary}} (XML Schema namespace).

In other words:
{code}
<xs:element name="GeefWerkpakketResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="WerkpakketStream" type="q4:StreamBody"
				xmlns:q4="http://schemas.microsoft.com/Message" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}
becomes:
{code}
<xs:element name="GeefWerkpakketResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="WerkpakketStream" type="xs:base64Binary" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}

I'd patch ADB but I have no clue where to start looking.
  
> Interop. WCF Service/Axis2 Client: Stream-Resonse not working
> -------------------------------------------------------------
>
>                 Key: AXIS2-3684
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3684
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: Service: .net WCF
> Client: Axis2 Java client (Windows)
>            Reporter: Andreas Necker
>            Assignee: Amila Chinthaka Suriarachchi
>
> Axis2 Service Stub throws exception when it tries to get the response value of the service call -> Stream.
> ====================
> org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException:
> ParseError at [row,col]:[1,288]
> Message: elementGetText() function expects text only elment but
> START_ELEMENT was encountered.
>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>        at org.tempuri.FileTransferStub.fromOM(FileTransferStub.java:1377)
>        at org.tempuri.FileTransferStub.CheckOutDocument(FileTransferStub.java:874)
>        at DmsClient.DmsClient.buttonDownloadMouseClicked(DmsClient.java:525)
>    ...
> ====================
> Message traces:
> Client Request:
> ====================
> - HTTP: Request, POST /DmsBatch/FileTransfer/
>  - Request:
>     Command: POST
>   + URI: /DmsBatch/FileTransfer/
>     ProtocolVersion: HTTP/1.1
>     ContentType:  text/xml; charset=UTF-8
>     SOAPAction:
> "http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocument"
>     UserAgent:  Axis2
>     Host:  ntfe:8013
>     ContentLength:  427
>     HeaderEnd: CRLF
>  - payload: HttpContentType =  text/xml; charset=UTF-8
>   - XmlPayload:
>      <?xml version="1.0" encoding="UTF-8"?>
>    - <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>     - <soapenv:Header>
>      - <axis2ns2:DmsUserID xmlns:axis2ns2="Dummy.Profile.DmsService">
>         aeacd9ad-52c6-42fe-b546-1a7959da606b
>         </axis2ns2:DmsUserID>
>        </soapenv:Header>
>     - <soapenv:Body>
>      - <ns2:CheckOutDocument xmlns:ns2="http://www.dummy.de/DmsService">
>       - <ns2:id>
>          408848
>          </ns2:id>
>         </ns2:CheckOutDocument>
>        </soapenv:Body>
>       </soapenv:Envelope>
> ====================
> Service Response 1:
> ====================
> - HTTP: Response, HTTP/1.1, Status Code = 200
>  - Response:
>     ProtocolVersion: HTTP/1.1
>     StatusCode: 200, Ok
>     Reason: OK
>     TransferEncoding:  chunked
>     ContentType:  multipart/related;
> type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
>     Server:  Microsoft-HTTPAPI/1.0
>     MIME-Version:  1.0
>     Date:  Fri, 28 Mar 2008 08:50:13 GMT
>     HeaderEnd: CRLF
>  - payload: HttpContentType =  multipart/related;
> type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
>   - XmlPayload:
>      225
> --uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
> Content-ID:
>    - <http://tempuri.org/0>
> Content-Transfer-Encoding: 8bit
> Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
>     - <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
>      - <s:Body>
>       - <CheckOutDocumentResponse xmlns="http://www.dummy.de/DmsService">
>        - <CheckOutDocumentResult>
>           <xop:Include
> href="cid:http%3A%2F%2Ftempuri.org%2F1%2F633422946136935910"
> xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
>           </CheckOutDocumentResult>
>          </CheckOutDocumentResponse>
>         </s:Body>
>        </s:Envelope>
> ====================
> Service Response 2:
> ====================
> - HTTP: HTTP Payload
>  - payload: HttpContentType =
>     Body: 4000
>     Body:
>     Body: --uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
>     Body: Content-ID: <http://tempuri.org/1/633422946136935910>
>     Body: Content-Transfer-Encoding: binary
>     Body: Content-Type: application/octet-stream
> ...
> ====================
> WSDLs:
> 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>
> ====================

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-3684) Interop. WCF Service/Axis2 Client: Stream-Resonse not working

Posted by "Thilina Gunarathne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thilina Gunarathne reassigned AXIS2-3684:
-----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> Interop. WCF Service/Axis2 Client: Stream-Resonse not working
> -------------------------------------------------------------
>
>                 Key: AXIS2-3684
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3684
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: Service: .net WCF
> Client: Axis2 Java client (Windows)
>            Reporter: Andreas Necker
>            Assignee: Amila Chinthaka Suriarachchi
>
> Axis2 Service Stub throws exception when it tries to get the response value of the service call -> Stream.
> ====================
> org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException:
> ParseError at [row,col]:[1,288]
> Message: elementGetText() function expects text only elment but
> START_ELEMENT was encountered.
>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>        at org.tempuri.FileTransferStub.fromOM(FileTransferStub.java:1377)
>        at org.tempuri.FileTransferStub.CheckOutDocument(FileTransferStub.java:874)
>        at DmsClient.DmsClient.buttonDownloadMouseClicked(DmsClient.java:525)
>    ...
> ====================
> Message traces:
> Client Request:
> ====================
> - HTTP: Request, POST /DmsBatch/FileTransfer/
>  - Request:
>     Command: POST
>   + URI: /DmsBatch/FileTransfer/
>     ProtocolVersion: HTTP/1.1
>     ContentType:  text/xml; charset=UTF-8
>     SOAPAction:
> "http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocument"
>     UserAgent:  Axis2
>     Host:  ntfe:8013
>     ContentLength:  427
>     HeaderEnd: CRLF
>  - payload: HttpContentType =  text/xml; charset=UTF-8
>   - XmlPayload:
>      <?xml version="1.0" encoding="UTF-8"?>
>    - <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>     - <soapenv:Header>
>      - <axis2ns2:DmsUserID xmlns:axis2ns2="Dummy.Profile.DmsService">
>         aeacd9ad-52c6-42fe-b546-1a7959da606b
>         </axis2ns2:DmsUserID>
>        </soapenv:Header>
>     - <soapenv:Body>
>      - <ns2:CheckOutDocument xmlns:ns2="http://www.dummy.de/DmsService">
>       - <ns2:id>
>          408848
>          </ns2:id>
>         </ns2:CheckOutDocument>
>        </soapenv:Body>
>       </soapenv:Envelope>
> ====================
> Service Response 1:
> ====================
> - HTTP: Response, HTTP/1.1, Status Code = 200
>  - Response:
>     ProtocolVersion: HTTP/1.1
>     StatusCode: 200, Ok
>     Reason: OK
>     TransferEncoding:  chunked
>     ContentType:  multipart/related;
> type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
>     Server:  Microsoft-HTTPAPI/1.0
>     MIME-Version:  1.0
>     Date:  Fri, 28 Mar 2008 08:50:13 GMT
>     HeaderEnd: CRLF
>  - payload: HttpContentType =  multipart/related;
> type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
>   - XmlPayload:
>      225
> --uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
> Content-ID:
>    - <http://tempuri.org/0>
> Content-Transfer-Encoding: 8bit
> Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
>     - <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
>      - <s:Body>
>       - <CheckOutDocumentResponse xmlns="http://www.dummy.de/DmsService">
>        - <CheckOutDocumentResult>
>           <xop:Include
> href="cid:http%3A%2F%2Ftempuri.org%2F1%2F633422946136935910"
> xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
>           </CheckOutDocumentResult>
>          </CheckOutDocumentResponse>
>         </s:Body>
>        </s:Envelope>
> ====================
> Service Response 2:
> ====================
> - HTTP: HTTP Payload
>  - payload: HttpContentType =
>     Body: 4000
>     Body:
>     Body: --uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
>     Body: Content-ID: <http://tempuri.org/1/633422946136935910>
>     Body: Content-Transfer-Encoding: binary
>     Body: Content-Type: application/octet-stream
> ...
> ====================
> WSDLs:
> 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>
> ====================

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Issue Comment Edited: (AXIS2-3684) Interop. WCF Service/Axis2 Client: Stream-Resonse not working

Posted by "Sietse de Kaper (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604978#action_12604978 ] 

sietse edited comment on AXIS2-3684 at 6/13/08 2:53 PM:
-----------------------------------------------------------------

I ran into this issue, and found a workaround:
In the XSD files, replace all occurrences of the {{StreamBody}} type (namespace {{http://schemas.microsoft.com/Message}}) with {{base64Binary}} (XML Schema namespace).

In other words:
{code}
<xs:element name="xResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="xStream" type="q4:StreamBody"
				xmlns:q4="http://schemas.microsoft.com/Message" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}
becomes:
{code}
<xs:element name="xResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="xStream" type="xs:base64Binary" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}

I'd patch ADB but I have no clue where to start looking.

      was (Author: sietse):
    I ran into this issue, and found a workaround:
In the XSD files, replace all occurrences of the {{StreamBody}} type (namespace {{http://schemas.microsoft.com/Message}}) with {{base64Binary}} (XML Schema namespace).

In other words:
{code}
<xs:element name="xResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="xStream" type="q4:StreamBody"
				xmlns:q4="http://schemas.microsoft.com/Message" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}
becomes:
{code}
<xs:element name="GeefWerkpakketResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="WerkpakketStream" type="xs:base64Binary" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}

I'd patch ADB but I have no clue where to start looking.
  
> Interop. WCF Service/Axis2 Client: Stream-Resonse not working
> -------------------------------------------------------------
>
>                 Key: AXIS2-3684
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3684
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: Service: .net WCF
> Client: Axis2 Java client (Windows)
>            Reporter: Andreas Necker
>            Assignee: Amila Chinthaka Suriarachchi
>
> Axis2 Service Stub throws exception when it tries to get the response value of the service call -> Stream.
> ====================
> org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException:
> ParseError at [row,col]:[1,288]
> Message: elementGetText() function expects text only elment but
> START_ELEMENT was encountered.
>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>        at org.tempuri.FileTransferStub.fromOM(FileTransferStub.java:1377)
>        at org.tempuri.FileTransferStub.CheckOutDocument(FileTransferStub.java:874)
>        at DmsClient.DmsClient.buttonDownloadMouseClicked(DmsClient.java:525)
>    ...
> ====================
> Message traces:
> Client Request:
> ====================
> - HTTP: Request, POST /DmsBatch/FileTransfer/
>  - Request:
>     Command: POST
>   + URI: /DmsBatch/FileTransfer/
>     ProtocolVersion: HTTP/1.1
>     ContentType:  text/xml; charset=UTF-8
>     SOAPAction:
> "http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocument"
>     UserAgent:  Axis2
>     Host:  ntfe:8013
>     ContentLength:  427
>     HeaderEnd: CRLF
>  - payload: HttpContentType =  text/xml; charset=UTF-8
>   - XmlPayload:
>      <?xml version="1.0" encoding="UTF-8"?>
>    - <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>     - <soapenv:Header>
>      - <axis2ns2:DmsUserID xmlns:axis2ns2="Dummy.Profile.DmsService">
>         aeacd9ad-52c6-42fe-b546-1a7959da606b
>         </axis2ns2:DmsUserID>
>        </soapenv:Header>
>     - <soapenv:Body>
>      - <ns2:CheckOutDocument xmlns:ns2="http://www.dummy.de/DmsService">
>       - <ns2:id>
>          408848
>          </ns2:id>
>         </ns2:CheckOutDocument>
>        </soapenv:Body>
>       </soapenv:Envelope>
> ====================
> Service Response 1:
> ====================
> - HTTP: Response, HTTP/1.1, Status Code = 200
>  - Response:
>     ProtocolVersion: HTTP/1.1
>     StatusCode: 200, Ok
>     Reason: OK
>     TransferEncoding:  chunked
>     ContentType:  multipart/related;
> type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
>     Server:  Microsoft-HTTPAPI/1.0
>     MIME-Version:  1.0
>     Date:  Fri, 28 Mar 2008 08:50:13 GMT
>     HeaderEnd: CRLF
>  - payload: HttpContentType =  multipart/related;
> type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
>   - XmlPayload:
>      225
> --uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
> Content-ID:
>    - <http://tempuri.org/0>
> Content-Transfer-Encoding: 8bit
> Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
>     - <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
>      - <s:Body>
>       - <CheckOutDocumentResponse xmlns="http://www.dummy.de/DmsService">
>        - <CheckOutDocumentResult>
>           <xop:Include
> href="cid:http%3A%2F%2Ftempuri.org%2F1%2F633422946136935910"
> xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
>           </CheckOutDocumentResult>
>          </CheckOutDocumentResponse>
>         </s:Body>
>        </s:Envelope>
> ====================
> Service Response 2:
> ====================
> - HTTP: HTTP Payload
>  - payload: HttpContentType =
>     Body: 4000
>     Body:
>     Body: --uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
>     Body: Content-ID: <http://tempuri.org/1/633422946136935910>
>     Body: Content-Transfer-Encoding: binary
>     Body: Content-Type: application/octet-stream
> ...
> ====================
> WSDLs:
> 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>
> ====================

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Issue Comment Edited: (AXIS2-3684) Interop. WCF Service/Axis2 Client: Stream-Resonse not working

Posted by "Sietse de Kaper (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604978#action_12604978 ] 

sietse edited comment on AXIS2-3684 at 6/13/08 2:34 PM:
-----------------------------------------------------------------

I ran into this issue, and found a workaround:
In the XSD files, replace all occurrences of the {{StreamBody}} type (namespace {{http://schemas.microsoft.com/Message}}) with {{base64Binary}} (XML Schema namespace).

In other words:
{code}
<xs:element name="GeefWerkpakketResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="WerkpakketStream" type="q4:StreamBody"
				xmlns:q4="http://schemas.microsoft.com/Message" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}
becomes:
{code}
<xs:element name="GeefWerkpakketResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="WerkpakketStream" type="xs:base64Binary" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}

I'd patch ADB but I have no clue where to start looking.

      was (Author: sietse):
    I ran into this issue, and found a workaround:
In the XSD files, replace all occurrences of the {{StreamBody}} type (namespace {{http://schemas.microsoft.com/Message}}) with {{base64Binary}} (XML Schema namespace).

In other words:
{code:xml}
<xs:element name="GeefWerkpakketResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="WerkpakketStream" type="q4:StreamBody"
				xmlns:q4="http://schemas.microsoft.com/Message" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}
becomes:
{code:xml}
<xs:element name="GeefWerkpakketResponse">
	<xs:complexType>
		<xs:sequence>
			<xs:element name="WerkpakketStream" type="xs:base64Binary" />
		</xs:sequence>
	</xs:complexType>
</xs:element>
{code}

I'd patch ADB but I have no clue where to start looking.
  
> Interop. WCF Service/Axis2 Client: Stream-Resonse not working
> -------------------------------------------------------------
>
>                 Key: AXIS2-3684
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3684
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.3
>         Environment: Service: .net WCF
> Client: Axis2 Java client (Windows)
>            Reporter: Andreas Necker
>            Assignee: Amila Chinthaka Suriarachchi
>
> Axis2 Service Stub throws exception when it tries to get the response value of the service call -> Stream.
> ====================
> org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException:
> ParseError at [row,col]:[1,288]
> Message: elementGetText() function expects text only elment but
> START_ELEMENT was encountered.
>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>        at org.tempuri.FileTransferStub.fromOM(FileTransferStub.java:1377)
>        at org.tempuri.FileTransferStub.CheckOutDocument(FileTransferStub.java:874)
>        at DmsClient.DmsClient.buttonDownloadMouseClicked(DmsClient.java:525)
>    ...
> ====================
> Message traces:
> Client Request:
> ====================
> - HTTP: Request, POST /DmsBatch/FileTransfer/
>  - Request:
>     Command: POST
>   + URI: /DmsBatch/FileTransfer/
>     ProtocolVersion: HTTP/1.1
>     ContentType:  text/xml; charset=UTF-8
>     SOAPAction:
> "http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocument"
>     UserAgent:  Axis2
>     Host:  ntfe:8013
>     ContentLength:  427
>     HeaderEnd: CRLF
>  - payload: HttpContentType =  text/xml; charset=UTF-8
>   - XmlPayload:
>      <?xml version="1.0" encoding="UTF-8"?>
>    - <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>     - <soapenv:Header>
>      - <axis2ns2:DmsUserID xmlns:axis2ns2="Dummy.Profile.DmsService">
>         aeacd9ad-52c6-42fe-b546-1a7959da606b
>         </axis2ns2:DmsUserID>
>        </soapenv:Header>
>     - <soapenv:Body>
>      - <ns2:CheckOutDocument xmlns:ns2="http://www.dummy.de/DmsService">
>       - <ns2:id>
>          408848
>          </ns2:id>
>         </ns2:CheckOutDocument>
>        </soapenv:Body>
>       </soapenv:Envelope>
> ====================
> Service Response 1:
> ====================
> - HTTP: Response, HTTP/1.1, Status Code = 200
>  - Response:
>     ProtocolVersion: HTTP/1.1
>     StatusCode: 200, Ok
>     Reason: OK
>     TransferEncoding:  chunked
>     ContentType:  multipart/related;
> type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
>     Server:  Microsoft-HTTPAPI/1.0
>     MIME-Version:  1.0
>     Date:  Fri, 28 Mar 2008 08:50:13 GMT
>     HeaderEnd: CRLF
>  - payload: HttpContentType =  multipart/related;
> type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9";start-info="text/xml"
>   - XmlPayload:
>      225
> --uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
> Content-ID:
>    - <http://tempuri.org/0>
> Content-Transfer-Encoding: 8bit
> Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
>     - <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
>      - <s:Body>
>       - <CheckOutDocumentResponse xmlns="http://www.dummy.de/DmsService">
>        - <CheckOutDocumentResult>
>           <xop:Include
> href="cid:http%3A%2F%2Ftempuri.org%2F1%2F633422946136935910"
> xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
>           </CheckOutDocumentResult>
>          </CheckOutDocumentResponse>
>         </s:Body>
>        </s:Envelope>
> ====================
> Service Response 2:
> ====================
> - HTTP: HTTP Payload
>  - payload: HttpContentType =
>     Body: 4000
>     Body:
>     Body: --uuid:99a8dc80-2ed9-4a0e-abf8-438bf117ca1c+id=9
>     Body: Content-ID: <http://tempuri.org/1/633422946136935910>
>     Body: Content-Transfer-Encoding: binary
>     Body: Content-Type: application/octet-stream
> ...
> ====================
> WSDLs:
> 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>
> ====================

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org