2 Replies Latest reply on Oct 13, 2011 3:23 PM by robert_01

    Invalid HTTP server response [400] - Bad Request

      Hi

      I have a web application running on JBoss 4.2.2 on a Windows Xp machine. It has a Web Service client that was built using JBossWS Native 3.0.4. This client is sending a SOAP packet to a .NET WebService. I get a very high failure rate with the following error.

      From the exception, it looks like there is something wrong with the Request that is being created. How can find out what exactly is wrong with it? Is there a way to influence the way the request is generated? Any documentation, any pointer would help.

      Thanks.

      2009-12-02 10:38:03,234 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] --------------------------
      ---------
      2009-12-02 10:38:03,234 DEBUG [org.jboss.remoting.transport.http.HTTPClientInvoker] Error invoking h
      ttp client invoker.
      org.jboss.ws.WSException: Invalid HTTP server response [400] - Bad Request ( The HTTP request includ
      es a non-supported header. Contact your ISA Server administrator. )
       at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:75)
       at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:473)
       at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:
      305)
       at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135)
       at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
       at org.jboss.remoting.Client.invoke(Client.java:1634)
       at org.jboss.remoting.Client.invoke(Client.java:548)
       at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:242)
       at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:71)
       at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:340)
       at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:291)
       at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)
       at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
       at $Proxy80.sendNotification(Unknown Source)
       at gov.pacts.vccaNotification.queue.QueueProcessor.run(QueueProcessor.java:211)
       at java.lang.Thread.run(Thread.java:619)


        • 1. Re: Invalid HTTP server response [400] - Bad Request
          robert_01

          Hi,

          Did you find any solution for this? I run into a similar issue...

          Thanks in advance!

          • 2. Re: Invalid HTTP server response [400] - Bad Request
            robert_01

            Fixed by adding the standard-jaxws-client-config.xml with the following content:

             

             

            <?xml version="1.0" encoding="UTF-8"?>

             

            <!-- $Id: standard-jaxws-client-config.xml 3797 2007-07-04 11:33:22Z thomas.diesler@jboss.com

            $ -->

             

            <jaxws-config xmlns="urn:jboss:jaxws-config:2.0"

            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:javaee="http://java.sun.com/xml/ns/javaee"

            xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">

             

            <client-config>

            <config-name>Standard Client</config-name>

            <feature>http://org.jboss.ws/dispatch/validate</feature>

            <property>

            <property-name>http://org.jboss.ws/http#chunksize</property-name>

            <property-value>0</property-value>

            </property>

            </client-config>

             

            <client-config>

            <config-name>HTTP 1.0 Client</config-name>

            <feature>http://org.jboss.ws/dispatch/validate</feature>

            </client-config>

             

            <client-config>

            <config-name>Standard WSAddressing Client</config-name>

            <post-handler-chains>

            <javaee:handler-chain>

            <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>

            <javaee:handler>

            <javaee:handler-name>WSAddressing Handler</javaee:handler-name>

            <javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler

            </javaee:handler-class>

            </javaee:handler>

            </javaee:handler-chain>

            </post-handler-chains>

            </client-config>

             

            <client-config>

            <config-name>Standard WSSecurity Client</config-name>

            <post-handler-chains>

            <javaee:handler-chain>

            <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>

            <javaee:handler>

            <javaee:handler-name>WSSecurityHandlerOutbound

            </javaee:handler-name>

            <javaee:handler-class>org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient

            </javaee:handler-class>

            </javaee:handler>

            </javaee:handler-chain>

            </post-handler-chains>

            </client-config>

             

            </jaxws-config>