Hi All
I have an issue when consuming a web service over SSL and hopefully someone can shed some light on this.
I have setup a Win2K test machine with Apache 2.0.55, Tomcat 5.5, Axis2 v1.2 and Java 1.5.0_01.
Apache is configured for SSL and acts as a Proxy to Tomcat. A simple web service has been created that
takes one string parameter and returns the string.
The service is deployed on Tomcat.
To test the web service I created a VB.NET and Java client on the same local machine and tried to consume the web service over HTTP and HTTPS (I'm using a self signed certificate).
The VB.NET client was successful over both HTTP and HTTPS. I confirmed HTTPS with a packet sniffer.
The Java client was successful over HTTP but was unsuccessful over HTTPS. Over HTTPS I get the exception
"org.apache.axis2.AxisFaul
t: Transport error: 400 Error: Bad Request".
I put a packet sniffer between Apache and Tomcat and I saw the following (I have replaced IP addresses with xxx.xxx.xxx.xxx):
POST /axis2/services/Hello HTTP/1.1
Host: xxx.xxx.xxx.xxx:8083
Content-Type: application/soap+xml; charset=UTF-8; action="urn:sayHello"
User-Agent: Axis2
Max-Forwards: 10
X-Forwarded-For: xxx.xxx.xxx.xxx
X-Forwarded-Host: xxx.xxx.xxx.xxx
X-Forwarded-Server: localhost
Content-Length: 262
ersion='1.0' encoding='UTF-8'?><soapenv
:Envelope xmlns:soapenv="
http://www.w3.org/2003/05/soap-envelope">
<soapenv:B
ody><ns1:s
ayHello xmlns:ns1="
http://ws.apache.org/axis2/xsd"><ns
1:sName>Mi
chael</ns1
:sName></n
s1:sayHell
o></soapen
v:Body></s
oapenv:Env
elope>
It looks like the first 7 characters of the request have been chopped. Has anyone seen this before?
When I developed the Java client I used WSDL2Java from the axis2-codegen-1.2.jar of Axis when
generating the stub classes.
Would be most grateful for any help.
Thanks,
Michael.
Start Free Trial