Pavan K K

Greenhorn
+ Follow
since Jul 25, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pavan K K

I have a httpURLconnection class, if i try to call the method conn.getInputStream() it returns
"Server returned HTTP response code: 405 for URL"
Please let me know the solution,
code is given below.
Pavan

String url="http://www.flash-b.com/services/ws/siteInspect.wsdl";
URL target=new URL(url);
conn = (HttpURLConnection)target.openConnection();
conn.setRequestProperty("Proxy-Authorization", auth);
conn.setAllowUserInteraction(true);
conn.setRequestProperty("content-type","text/xml");
conn.setDoInput(true);
conn.setDoOutput(true);
conn.setUseCaches (false);
conn.setDefaultUseCaches (false);
conn.setRequestMethod("GET");
PrintWriter out = new PrintWriter(conn.getOutputStream());
StringBuffer sc = new StringBuffer();
String line = null;
conn.getInputStream();
I am getting the following exception when i try to execute a SOAP client example along with
apache soap toolkit
soap-2_3_1\samples\xmethods\GetTemp.java

Caught SOAPException (SOAP-ENV rotocol): Unsupported response content type "text/html; charset=ISO-8859-1", must be: "text/xml". Response was:
<HTML><HEAD><TITLE>www.xmethods.net</TITLE><SCRIPT
Can any one of you let me know the casuse of the problem.
Thanks
Pavan k
21 years ago
Web services tool kit :: Sun - Java web servises developers pack
1. Through Registry broswer available as part of the tool kit I would search for the specific webservices available on the net (by specifing the registriy (by giving URL) )
I get the service bindings, access URI . ( attachment contains a screens shot which depicts this scenario)
Now I need to write a SOAP client which can call the method present in the webservice selected above using the URI , execute the method & send the response back.
Issues here
1) Can I accomplish the above by writing a SOAP client using JXAM API.
If i can thats well and good. Now the second question is
2) I would like to know if there is any way of writing a generic soap client. I mean a general piece of code which can serve as a client to any webservice residing on the net.
my whole idea goes like this i will search the registry for some service, as soon as i find it i would like to call the service by invoking a generic client which can serve to any web service say by reading the service name , buisness name of the service, URI & in/out parameters from an xml file populated after the above search.
Any pointers in this regard would be highly appriciated.
21 years ago