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 Gurkan Erdogdu <gu...@yahoo.com> on 2011/08/02 10:10:51 UTC

Axis-2 : Transport error: 502 Error: Bad Gateway

Hello all


We are using Axis-2 (latest 1.6 version) to send MTOM enabled message over HTTPS sender. Our message looks like

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns1:documentRequest xmlns:ns1="http://gib.gov.tr/vedop3/eFatura">
            <fileName>475BA9C1-87B0-42A5-AECA-1536F7A7B38F.zip</fileName>
            <binaryData xmlns:ns2="http://www.w3.org/2005/05/xmlmime"
                ns2:contentType="475BA9C1-87B0-42A5-AECA-1536F7A7B38F">CONTENT_OF_THE_BINARY_DATA
            </binaryData>
            <hash>482127b4178dad381e1031e23d175325</hash>
        </ns1:documentRequest>
    </soapenv:Body>
</soapenv:Envelope>

But when we sent this data to the server, we get the following exception,

Caused by: org.apache.axis2.AxisFault:
Transport error: 502 Error: Bad Gateway
      at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308)
      at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
      at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
      at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
      at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
      at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
      at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
      at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)

I suspected the server that provides Web Service. But when I try to send this SOAP message with other SOAP-UI Clients, it has been sent successfully.

What can be the problem?

Best Regards;

--Gurkan Erdogdu