Completely new bee in web services.
I am having the wsdl from some url abc.xyz.com/api/?wsdl(suppose) as:
<message name="call">
<part name="sessionId" type="xsd:string"/>
<part name="resourcePath" type="xsd:string"/>
<part name="args" type="xsd:anyType"/>
</message>
<message name="callResponse">
<part name="callReturn" type="xsd:anyType"/>
</message>
<portType name="Mage_Api_Model_Server_HandlerPortType">
<operation name="call">
<documentation>Call api functionality</documentation>
<input message="typens:call"/>
<output message="typens:callResponse"/>
</operation>
</portType >
<binding name="Mage_Api_Model_Server_HandlerBinding" type="typens:Mage_Api_Model_Server_HandlerPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="call">
<soap:operation soapAction="urn:Mage_Api_Model_Server_HandlerAction"/>
<input>
<soap:body namespace="urn:Magento" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body namespace="urn:Magento" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
This is what I have tried:
Created a new JAVA project from Eclipse wizard.
right click on the project navigate to web service-> web service client.
Give the service definition
http://abc.xyz.com/api/?wsdl(suppose)
in configuration:
(a) server runtime:tomcat v7.0 server
(b) webservice runtime:apache axis
Choose test client from slider (I have also tried develop client a bit confuse,as I have to create client much confused)
Click on finish.
As a result I found web service test client browser with some method, input and result. Also I got some JAVA file in my resources folder:
Mage_Api_Model_Server_HandlerBindingStub
Mage_Api_Model_Server_HandlerPortType
Mage_Api_Model_Server_HandlerPortTypeProxy
MagentoService
MagentoServiceLocator
now how to write my client code in java some thing like this just a try
:
thanks