new to webservices .How to retrieve data

Hi ,

I have received one webservice link from my client like

http://10.1.1.6:8080/wsa/wsa1/wsdl?targetURI=urn:smsgroup:tb:company

(It is internal link)

This web service can be used for displaying details of different client.

As I am calling this URL through browser it gives me Schema of XML. But I need data which is mapped with this schema like

<?xml version="1.0" encoding="UTF-8" ?>

- <wsdl:definitions name="Company_ws" targetNamespace="urn:smsgroup:tb:company" xmlns:tns="urn:smsgroup:tb:company" xmlns:S2="urn:smsgroup:tb:company:Company_ws" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:S1="urn:soap-fault:details" xmlns="http://schemas.xmlsoap.org/wsdl/">

<wsdl:documentation>Author=Freddy Boisseau, EncodingType=RPC_ENCODED, WSA_Product=10.1B - N/A</wsdl:documentation>

- <wsdl:types>

- <schema elementFormDefault="unqualified" targetNamespace="urn:soap-fault:details" xmlns="http://www.w3.org/2001/XMLSchema">

- <complexType name="FaultDetail">

- <sequence>

<element name="errorMessage" type="xsd:string" />

<element name="requestID" type="xsd:string" />

</sequence>

</complexType>

</schema>

- <schema elementFormDefault="unqualified" targetNamespace="urn:smsgroup:tb:company:Company_ws" xmlns="http://www.w3.org/2001/XMLSchema">

<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />

- <complexType name="com_list_ttCompanyRow">

- <sequence>

<element name="iCompanyNo" nillable="true" type="xsd:int" />

<element name="cCompanyName" nillable="true" type="xsd:string" />

</sequence>

</complexType>

- <complexType name="ArrayOfcom_list_ttCompanyRow">

- <complexContent>

- <restriction base="soapenc:Array">

<attribute ref="soapenc:arrayType" wsdl:arrayType="S2:com_list_ttCompanyRow[]" />

</restriction>

</complexContent>

</complexType>

</schema>

</wsdl:types>

- <wsdl:message name="Company_ws_com_listResponse">

<wsdl:part name="ttCompany" type="S2:ArrayOfcom_list_ttCompanyRow" />

</wsdl:message>

<wsdl:message name="Company_ws_com_list" />

- <wsdl:message name="FaultDetailMessage">

<wsdl:part name="FaultDetail" type="S1:FaultDetail" />

</wsdl:message>

- <wsdl:portType name="Company_wsObj">

- <wsdl:operation name="com_list" parameterOrder="ttCompany">

<wsdl:input message="tns:Company_ws_com_list" />

<wsdl:output message="tns:Company_ws_com_listResponse" />

<wsdl:fault name="Company_wsFault" message="tns:FaultDetailMessage" />

</wsdl:operation>

</wsdl:portType>

- <wsdl:binding name="Company_wsObj" type="tns:Company_wsObj">

<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />

- <wsdl:operation name="com_list">

<soap:operation soapAction="" style="rpc" />

- <wsdl:input>

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:smsgroup:tb:company:Company_ws" />

</wsdl:input>

- <wsdl:output>

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:smsgroup:tb:company:Company_ws" />

</wsdl:output>

- <wsdl:fault name="Company_wsFault">

<soap:fault name="Company_wsFault" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://10.1.1.6:8080/wsa/wsa1" />

</wsdl:fault>

</wsdl:operation>

</wsdl:binding>

- <wsdl:service name="Company_wsService">

- <wsdl:port name="Company_wsObj" binding="tns:Company_wsObj">

<wsdl:documentation />

<soap:address location="http://10.1.1.6:8080/wsa/wsa1" />

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

As I am new for webservices ,So I need to help from you guys so that I can retrieve actual data in XML format of this web services. I think this is mapping . Could you please do for me or guide me for this situation. I need javacode so that i can find xml data using JSP.I am using tomcat server.

Thanks and Regards

Sunil Jha

[4800 byte] By [sunilkrjhaa] at [2007-11-27 0:04:34]
# 1
Sunil, Ask the wsdl file from your client. From that you can get the stubsRefer http://forum.java.sun.com/thread.jspa?threadID=5154051&messageID=9593664#9593664Regards,Mukunt
mkunasek123a at 2007-7-11 15:59:43 > top of Java-index,Java Essentials,New To Java...