Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Host parameter null and convert SOAP to HTTPUrl

843802Aug 5 2008 — edited Aug 5 2008
Hi,
We are trying to fire a SOAP request and print the response but its throwing this error


Exception in thread "main" java.lang.IllegalArgumentException: host parameter is null

The piece of code is:

HttpClient hc = new HttpClient();
System.out.println("Came here");
int iResultCode = hc.executeMethod(post);

executeMethod(post) is failing but when I print the value of post, its �org.apache.commons.httpclient.methods.PostMethod@fd54d6�

Can anybody throw some light on this error and how to solve it??


Also, there�s another issue.

We are upgrading from Weblogic 7.2 to 9.1
Earlier we were able to pass the request and get the response in HTTPUrl form but now after upgrading, its getting passed in SOAP format. Is there any way to bypass the SOAP and get it in HTTPUrl format or what are the configurations to be made to adapt to the SOAP format?

connection =(HttpURLConnection) url.openConnection();
This line was returning HTTPUrl format, now its coming in SOAP format
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 2 2008
Added on Aug 5 2008
1 comment
275 views