soapUI:org.apache.http.client.ClientProtocolException

When I downloaded the soapUI Pro official build (4.5.1), the first thing I tried to do was test some of our services on the test environment.  All of our WCF services are protected by NTLM authentication.  Unfortunately I immediately hit a wall.  Every attempt to call a services threw the following un-handled exception:

Error getting response; org.apache.http.client.ClientProtocolException

The only useful hint I found in the error log was this line:

Caused by: org.apache.http.ProtocolException: Content-Length header already present

I spent quite a bit of time fiddling with the services configuration, attempting to call the service on other environments, and generally troubleshooting the issue inside of soapUI.  The good part of this was it helped me learn the UI a little better, the bad part was I made no progress on solving the issue.

After searching on this error I found a post where someone else had encountered the same problem.  The recommendation for fixing it was to download the latest nightly build.

Apparently it was a bug that was fixed after the current release, because downloading the latest build completely resolved the issue and soapUI worked against our services the first time.

I’m not sure if the issue is related to NTLM, WCF, or a combination.  Hopefully this post saves someone a little troubleshooting time… but not before they get a chance to learn the UI a little better by trying to fix the issue!  :-)

About these ads

8 comments

  1. Thank you David. It solves my problem.

  2. Marius Bjelland · · Reply

    Thank you so much – what would we do without people like you taking the hazzle to give us the solution!

    Marius

  3. or you can change the Authentication Type to Preemptive.

  4. Sanket · · Reply

    When I try to work with Soapui4.5.1 pro it gives me above error(Error getting response; org.apache.http.client.ClientProtocolException). But when I uninstall it and install older version soapui4.0.1 It working properly. Any reason Why? I am working on WCF servie in windows 8 O.S

  5. meetmunna · · Reply

    Thanks a lot suly and David. Both soltns worked for me!! saved my lot of time.

  6. Zubair · · Reply

    Much appriciated …. saved my day :)

  7. sampath · · Reply

    Thanking you so much….)

  8. You save my day!!! yay!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 150 other followers

%d bloggers like this: