Sorry for the partial message sent before this... hand twitched and sent the 
email.

I'm trying to use AXIS2 to call a simple web service.  I got the WSDL from a 
developer working on a System I server using i/OS.  I used WSDL2Java to 
generate the stub and wrote a simple service client.  I used tcpmon to watch 
the traffic.  When I first tried, the server side (black box) was returning an 
'HTTP/1.1 400 Bad Request'.  Even with that error code, the response in tcpmon 
looked OK.  AFter much digging, the only thing I could find was a possible 
issue with: 

'Tansfer-Encoding: chunked' 

so I used:
 
HelloServiceStub stub = new HelloServiceStub();
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED,
 Boolean.FALSE); 
 
...to stop chunking (on the request at least).  That got rid of the HTTP error, 
but AXIS still thinks there is something wrong with the response.  The 
error AXIS2 has now says: 
 
org.apache.axis2.AxisFault: Only SOAP 1.1 or SOAP 1.2 messages are supported in 
the system
 at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
 at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:123)

 
I have attached the request/response in a text file... any ideas what's wrong 
with the response?
 
Thanks.
 
Mike
Request
=========================================
POST /DEVGLC/hello HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://www.example.org/hello/HelloOperation";
User-Agent: Axis2
Host: 10.10.0.75:81
Content-Length: 286

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><ns1:HelloOperation
 
xmlns:ns1="http://www.example.org/hello/";><Greeting>YE33</Greeting><Name>DEE</Name></ns1:HelloOperation></soapenv:Body></soapenv:Envelope>



Response
==========================================
HTTP/1.1 200 OK
Date: Tue, 29 Jun 2010 18:47:52 GMT
Server: Apache
Transfer-Encoding: chunked
Content-Type: text/xml; charset=ISO-8859-1

117
<soapenv:Envelope xmlns:soapenv="xmlns:soapenv" xmlns:hel="xmlns:hel">
  <soapenv:Header>soapenv:Header</soapenv:Header>
  <soapenv:Body>
    <hel:HelloOperationResponse1>
      <RtnGreeting></RtnGreeting>
    </hel:HelloOperationResponse1>
  </soapenv:Body>
</soapenv:Envelope>

0


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to