Advertisement

08.22.2007 at 08:11AM PDT, ID: 22779654
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Consuming Web Services Over SSL

Asked by MichaelOS in WebApplications, Apache Web Server, Web Servers

Tags: , , ,

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.AxisFault: 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:Body><ns1:sayHello xmlns:ns1="http://ws.apache.org/axis2/xsd"><ns1:sName>Michael</ns1:sName></ns1:sayHello></soapenv:Body></soapenv:Envelope>

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
[+][-]08.24.2007 at 01:24AM PDT, ID: 19760488

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.24.2007 at 01:58AM PDT, ID: 19760602

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.28.2008 at 07:23AM PDT, ID: 21660643

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: WebApplications, Apache Web Server, Web Servers
Tags: ssl, axis2, java, web
Sign Up Now!
Solution Provided By: MichaelOS
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628