Yes NiruMagic,
I got exactly you talk about, but I dont know how to use this wsdl file in my java code. I tested the webservice and it gave the desire result in xml format.
How can I get that xml tree in my java code?
Kindly guide int this regard.
Thanks
--
Tahir
Actually I don't know the right method to invoke a web service. As I posted here they also give SOAP request / response envelop.
SOAP request / response envelop
POST /uszip.asmx HTTP/1.1
Host: www.webservicex.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.webserviceX.NET/GetInfoByZIP"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetInfoByZIP xmlns="http://www.webserviceX.NET">
<USZip>string</USZip>
</GetInfoByZIP>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetInfoByZIPResponse xmlns="http://www.webserviceX.NET">
<GetInfoByZIPResult>xml</GetInfoByZIPResult>
</GetInfoByZIPResponse>
</soap:Body>
</soap:Envelope>
I just need to make a client to call this WS to get xml doc tree. I don't know static and dynamic invocation, which is the easiest method to go...
Do I need to study AXIS or any other API to call it, kindly recommend. I just need a client. Do I need to go with these SOAP envelops or I need WSDL to call WS methods?
Your guidance is valuable for me.
Very Thanks
--
Tahir