In your first message, you copied the WSDL that WCF was generating, but it imported a second wsdl. I suspect that the problem might be more in that. From what I've seen of WCF generated stuff, that might in turn include a couple of xsds. (what I've seen generated one wsdl and 2 xsds, so this is already a bit different.
I'd suspect that the types WCF declares for the stream returned might use some microsoft specific namespaces that 'magically' work in the WCF-WCF case, but aren't interoperable. ----- Original Message ----- From: "Andreas Necker" <[EMAIL PROTECTED]> To: axis-user@ws.apache.org Sent: Thursday, March 13, 2008 10:37:40 AM (GMT-0600) America/Chicago Subject: Interop WCF Service/Axis2 Client and Stream 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]