Host parameter null and convert SOAP to HTTPUrl
843802Aug 5 2008 — edited Aug 5 2008Hi,
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