I meet problem when I use .net to access my webservice

david.sun's picture
Hi,I meet a problem when I use .net(c#)to invoke my webservice based on java. What I want is that I have a xslt file on synapse server to transform response soap message from axis2 server. This problem is so strange.Because I can use java client to access my webservice and use xslt file to transform response soap message.But when I use .net to access my webservice, the axis2 server responses READ TIME OUT message to synapse. Could you please give me some useful suggestions? =======The following is my xslt file content============= <?xml version="1.0" encoding="ISO-8859-1"?> I was transformed ==============The following is error message================= 2009-06-15 14:00:44,343 [172.16.7.145-D750F4D41CD54A5] [http-Sender I/O dispatch er-1] WARN ClientHandler Remote server aborted request being sent and replied : [/192.168.124.1:8090] 2009-06-15 14:01:05,078 [172.16.7.145-D750F4D41CD54A5] [HttpClientWorker-1] ERRO R XSLTMediator Unable to perform XSLT transformation using : transform/transform .xslt against source XPath : s11:Body/child::*[position()=1] | s12:Body/child::* [position()=1] org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: U nexpected character 's' (code 115) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav a:249) at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMD ocumentImpl.java:132) at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StA XOMBuilder.java:411) at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTM ediator.java:369) at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMedia tor.java:178) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractLis tMediator.java:59) at org.apache.synapse.mediators.filters.OutMediator.mediate(OutMediator. java:60) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractLis tMediator.java:59) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMe diator.java:125) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(A xis2SynapseEnvironment.java:163) at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(S ynapseCallbackReceiver.java:333) at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(Synapse CallbackReceiver.java:132) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java :209) at org.apache.synapse.transport.base.threads.NativeWorkerPool$1.run(Nati veWorkerPool.java:58) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:675) at java.lang.Thread.run(Thread.java:595) Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 's ' (code 115) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java: 623) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.ja va:2047) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuild er.java:506) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav a:161) ... 17 more 2009-06-15 14:01:05,203 [172.16.7.145-D750F4D41CD54A5] [HttpClientWorker-1] INF O LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: http ://www.w3.org/2005/08/addressing/soap/fault, SOAPAction: http://www.w3.org/2005/ 08/addressing/soap/fault, MessageID: urn:uuid:5768D3BBD2F5B3EC8B17776457166763-1 026143237, Direction: response, MESSAGE = Executing default 'fault' sequence, ER ROR_CODE = 0, ERROR_MESSAGE = Unable to perform XSLT transformation using : tran sform/transform.xslt against source XPath : s11:Body/child::*[position()=1] | s1 2:Body/child::*[position()=1], Envelope: <?xml version='1.0' encoding='utf-8'?>< soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">http://www .w3.org/2005/08/addressing/soap/faultsoapenv:ReceiverRead timed out
indika's picture

What is the ESB version . An

What is the ESB version . An issue in [1](related with .Net) has been fixed only on upcoming release(2.1). you can check with 2.1-alpha which is in [2]. In the meantime , I haven't .Net environment , I have to ask from someone to check your issue. BTW, please test with 2.1-alpha which a known issue has been fixed. You can increase socket time out by putting following property as needed in the 'nhttp.properties'. There is no 'nhttp.properties' in default ESB ...you can create a file with name 'nhttp.properties' and add to class path ... http.socket.timeout= {int value} [1]http://wso2.org/forum/thread/5371 [2]http://wso2.org/downloads/esb
david.sun's picture

Hello,I'm from

Hello,I'm from China. msn:sundawei526@hotmail.com I am so sorry.That problem was leaded by kaspersky. Kaspersky intercepted and destroyed the response soap message, so esb could not get a intact response message.When it executed tranformation, esb would throw error mesage. After I shutdown my kaspersky,the esb worked fine.
indika's picture

Oops .... Thanks for let us

Oops .... Thanks for let us know about the situation Indika
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)