axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Necker" <andreas...@googlemail.com>
Subject Interop WCF Service/Axis2 Client and Stream
Date Thu, 13 Mar 2008 15:37:40 GMT
Hi,

I'm trying to call an .Net WCF Service from an Axis2 java client on Windows.
Simple calls to the service are working, but I have problems with
a stream returned by one of the methods (see "Exception" below).
The client stub was created with Axis' wsdl2java tool.

Is it possible to handle a stream returned from a WCF service at all?

TIA
Andreas

Exception:
====================
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)
    ...
====================

Service interface:
====================
    [ServiceContract( Namespace = "http://www.dummy.de/DmsService" )]
    public interface IFileTransfer
    {
        [OperationContract]
        [FaultContract( typeof( ServiceOperationFailedException ) )]
        Stream CheckOutDocument( string id );
    }
====================

Service configuration:
====================
<binding name="BasicHttpStreaming"
         maxBufferSize="1000000"
         maxReceivedMessageSize="500000000"
         messageEncoding="Mtom"
         transferMode="StreamedResponse" >
  <readerQuotas maxArrayLength="500000000" />
</binding>

<service name="DmsBatchFileTransfer.FileTransfer"
         behaviorConfiguration="DmsDocumentServiceBehavior">
  <endpoint
    address=""
    binding="basicHttpBinding"
    bindingConfiguration="BasicHttpStreaming"
    contract="dummy.Profile.DmsService.IFileTransfer"
    name="BasicHttpFileTransfer" >
  </endpoint>
  <host>
    <baseAddresses>
      <add baseAddress="http://ntfe:8013/DmsBatch/FileTransfer/" />
    </baseAddresses>
  </host>
</service>
====================

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


Mime
View raw message