Create a web service client in JAVA to access the method from WSDL (w.Eclipse)

A completely new bee in web services.

I have a url like:

http://abc.xyz.com/straw/api/?wsdl  

and method:

$result= $client->call($session, "catalog_product.list");   

Here is what I tried:

  • Created a new JAVA project from the Eclipse wizard.

  • r click on the project, go to web service-> web service client.

  • Define the service http://abc.xyz.com/straw/api/?wsdl

  • in configuration:

    • (a) server time: tomcat v7.0 server
    • (b) Webservice runtime: apache axis
  • Select a test client from the slider ( I also tried to develop the client a bit confusing, since I need to create a very confusing client )

  • Click on the finish line.

As a result, I found the web service of the test client browser using the method, input and result. In addition, I received several JAVA files in the resources folder:

Mage_Api_Model_Server_HandlerBindingStub  
Mage_Api_Model_Server_HandlerPortType  
Mage_Api_Model_Server_HandlerPortTypeProxy  
MagentoService  
MagentoServiceLocator

?

...

$result= $client->call($session, "catalog_product.list");

... JAVA .

-???

( JAVA ).

JAVA -

$result= $client->call($session, "catalog_product.list");

:

" - , wsdl."

, , /.

? !

0
1

, Eclipse, , - Java. , , , Eclipse, , , ( ) wsdl, , . , , wsdl, , Eclipse.

, Eclipse:

  • , (XML) , - . , , Java beans ( - , "_HanddlerXXX" "Service" ( , , , JDK , String, Integer ..).
  • Java, -, WSDL: "MagentoService", , web-serviec ( ,
  • - "Mage_Api_Model_Server_HandlerPortType" - , . , -

- SOAP-, - Java, Axis. , ( , 2 ) :

http://www.amazon.fr/Developing-Web-Services-Apache-Axis2/dp/0557254329/ref=sr_1_1?ie=UTF8& qid = 1319032081 & sr = 8-1

- soap rest, , java, CXF Axis2, Eclipse, it , .

+1

All Articles