You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Florian Wachs <fe...@online.de> on 2007/04/16 12:53:56 UTC

[Axis2] Problems with .NET Service and Axis2 Client

Hello all,

I`m trying to use a simple .NET Service with Axis2. It´s a simple 
HelloWorld Service. After generating the stub with wsdl2java, I tried to 
invoke the service, but I´m getting the following errors. I also 
implemented the same service with Axis2 and created a Axis2 service and 
it worked. I´m quite confused, because weeks ago it worked with the same 
Axis / NET versions without any problem.
Maybe someone of you has a clue.

Thanks
Florian

org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad 
Request'; nested exception is:
org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad 
Request'; nested exception is:
org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad 
Request'; nested exception is:
org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad Request'
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
at 
de.fhrosenheim.webservices.QuizServiceStub.holeFrage(QuizServiceStub.java:152)
at de.fhrosenheim.ws.quizclient.Client.main(Client.java:33)
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '400' - 
'Bad Request'; nested exception is:
org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad Request'
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
... 5 more
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '400' - 
'Bad Request'
at 
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:144)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335)
... 6 more


org.apache.axis2.AxisFault: Software caused connection abort: recv 
failed; nested exception is:
java.net.SocketException: Software caused connection abort: recv failed; 
nested exception is:
org.apache.axis2.AxisFault: Software caused connection abort: recv 
failed; nested exception is:
java.net.SocketException: Software caused connection abort: recv failed
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
at 
de.fhrosenheim.webservices.QuizServiceStub.holeFrage(QuizServiceStub.java:152)
at de.fhrosenheim.ws.quizclient.Client.main(Client.java:33)
Caused by: org.apache.axis2.AxisFault: Software caused connection abort: 
recv failed; nested exception is:
java.net.SocketException: Software caused connection abort: recv failed
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
... 5 more
Caused by: java.net.SocketException: Software caused connection abort: 
recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
at 
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
at 
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
at 
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
at 
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at 
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:541)
at 
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:119)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335)
... 6 more



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


Re: [Axis2] Problems with .NET Service and Axis2 Client

Posted by EDGE <sw...@yahoo.com>.
Hello Mr. Wachs,

I have encountered exactly the same error - HTTP Transport error : '400' -
'Bad Request - when trying to run a VB.NET Webservice with Axis2. I have
also used the Axis Tooling (WSDL2JAVA) to generate the stubs, but  so far
failed to fix the problem. I have tried the following already with no
result:

Using updated/different versions of the commons-httpclient-3.01.jar release
date 13Nov2006

We had tried several build options with the WSDL tooling - like not to
generate the server side code.

Have you been able to resolve this matter yet ? is it Axis2's Fault ??

M ike

Florian Wachs-2 wrote:
> 
> Hello all,
> 
> I`m trying to use a simple .NET Service with Axis2. It´s a simple 
> HelloWorld Service. After generating the stub with wsdl2java, I tried to 
> invoke the service, but I´m getting the following errors. I also 
> implemented the same service with Axis2 and created a Axis2 service and 
> it worked. I´m quite confused, because weeks ago it worked with the same 
> Axis / NET versions without any problem.
> Maybe someone of you has a clue.
> 
> Thanks
> Florian
> 
> org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad 
> Request'; nested exception is:
> org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad 
> Request'; nested exception is:
> org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad 
> Request'; nested exception is:
> org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad Request'
> at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
> at 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
> at 
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> at 
> de.fhrosenheim.webservices.QuizServiceStub.holeFrage(QuizServiceStub.java:152)
> at de.fhrosenheim.ws.quizclient.Client.main(Client.java:33)
> Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '400' - 
> 'Bad Request'; nested exception is:
> org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad Request'
> at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
> at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
> ... 5 more
> Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '400' - 
> 'Bad Request'
> at 
> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:144)
> at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335)
> ... 6 more
> 
> 
> org.apache.axis2.AxisFault: Software caused connection abort: recv 
> failed; nested exception is:
> java.net.SocketException: Software caused connection abort: recv failed; 
> nested exception is:
> org.apache.axis2.AxisFault: Software caused connection abort: recv 
> failed; nested exception is:
> java.net.SocketException: Software caused connection abort: recv failed
> at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
> at 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
> at 
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> at 
> de.fhrosenheim.webservices.QuizServiceStub.holeFrage(QuizServiceStub.java:152)
> at de.fhrosenheim.ws.quizclient.Client.main(Client.java:33)
> Caused by: org.apache.axis2.AxisFault: Software caused connection abort: 
> recv failed; nested exception is:
> java.net.SocketException: Software caused connection abort: recv failed
> at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
> at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
> ... 5 more
> Caused by: java.net.SocketException: Software caused connection abort: 
> recv failed
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(Unknown Source)
> at java.io.BufferedInputStream.fill(Unknown Source)
> at java.io.BufferedInputStream.read(Unknown Source)
> at
> org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
> at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
> at 
> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
> at 
> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
> at 
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
> at 
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
> at 
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
> at 
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
> at 
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
> at 
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
> at 
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:541)
> at 
> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:119)
> at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335)
> ... 6 more
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-Axis2--Problems-with-.NET-Service-and-Axis2-Client-tf3583725.html#a10078332
Sent from the Axis - User mailing list archive at Nabble.com.


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


Re: [Axis2] Problems with .NET Service and Axis2 Client

Posted by Paul Fremantle <pz...@gmail.com>.
Florian

The best way to debug this is to trace it with TCPMON. You need to set
your Proxy up and start TCPMON in proxy mode on say port 8001.

		ProxyProperties pp = new ProxyProperties();
		pp.setProxyName("localhost");
		pp.setProxyPort(8001);
		stub._getServiceClient().getOptions().setProperty(HTTPConstants.PROXY,
				pp);

Paul

On 4/16/07, Florian Wachs <fe...@online.de> wrote:
> Hello all,
>
> I`m trying to use a simple .NET Service with Axis2. It´s a simple
> HelloWorld Service. After generating the stub with wsdl2java, I tried to
> invoke the service, but I´m getting the following errors. I also
> implemented the same service with Axis2 and created a Axis2 service and
> it worked. I´m quite confused, because weeks ago it worked with the same
> Axis / NET versions without any problem.
> Maybe someone of you has a clue.
>
> Thanks
> Florian
>
> org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad
> Request'; nested exception is:
> org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad
> Request'; nested exception is:
> org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad
> Request'; nested exception is:
> org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad Request'
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> at
> de.fhrosenheim.webservices.QuizServiceStub.holeFrage(QuizServiceStub.java:152)
> at de.fhrosenheim.ws.quizclient.Client.main(Client.java:33)
> Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '400' -
> 'Bad Request'; nested exception is:
> org.apache.axis2.AxisFault: HTTP Transport error : '400' - 'Bad Request'
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
> ... 5 more
> Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '400' -
> 'Bad Request'
> at
> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:144)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335)
> ... 6 more
>
>
> org.apache.axis2.AxisFault: Software caused connection abort: recv
> failed; nested exception is:
> java.net.SocketException: Software caused connection abort: recv failed;
> nested exception is:
> org.apache.axis2.AxisFault: Software caused connection abort: recv
> failed; nested exception is:
> java.net.SocketException: Software caused connection abort: recv failed
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> at
> de.fhrosenheim.webservices.QuizServiceStub.holeFrage(QuizServiceStub.java:152)
> at de.fhrosenheim.ws.quizclient.Client.main(Client.java:33)
> Caused by: org.apache.axis2.AxisFault: Software caused connection abort:
> recv failed; nested exception is:
> java.net.SocketException: Software caused connection abort: recv failed
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
> ... 5 more
> Caused by: java.net.SocketException: Software caused connection abort:
> recv failed
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(Unknown Source)
> at java.io.BufferedInputStream.fill(Unknown Source)
> at java.io.BufferedInputStream.read(Unknown Source)
> at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
> at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
> at
> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
> at
> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
> at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
> at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
> at
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:541)
> at
> org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:119)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:335)
> ... 6 more
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

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