Reputation: 4111
Completely new bee in web services.
I am having the url as:
http://abc.xyz.com/straw/api/?wsdl
and method:
$result= $client->call($session, "catalog_product.list");
This is what I have tried:
Created a new JAVA project from Eclipse wizard.
r click on the project navigate to web service-> web service client.
Give the service definition http://abc.xyz.com/straw/api/?wsdl
in configuration:
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
Are these source files are created by client?
I am not able to find method name...
$result= $client->call($session, "catalog_product.list");
...in any of the above JAVA files.
What I have to do to create a web service client???
What is expected from me as a deliverable (are these JAVA files in source folder).
Or do I have to write a JAVA project to access the web service's method
$result= $client->call($session, "catalog_product.list");
Like this tutorial:
What is my deliverable for "create a web service client to access method mentioned of below wsdl."
Sorry for my stupidity as I don't know even what to be output/ deliverable.
Any guidance? Thanks!
Upvotes: 0
Views: 7422
Reputation: 15229
Yes, what you've done in fact is told Eclipse that you'd want to create all the necessary classes such that you'll be able to make client calls to the web-service from Java. Now, I tried doing the same thing you did, to see what Eclipse generates, but unfortunatelly (at least for me) the wsdl address you gave doesn't work. I tried it however with a different wsdl, and I got some similar files generated by Eclipse.
Basically what Eclipse does there is:
Now there's a lot of web-service and SOAP jargon here, not to mention a pretty involved framework for dealing with web-services in Java, namely Axis. My recommandations really is to read (at least the first 2 chapters from) the following book:
it's excellent for sarting you up with the basic concepts of soap and rest web services, it has great examples from basic to involved of how to implement those notions in java using CXF and Axis2, and how to do this using Eclipse, it's just a great beginner book for what you're doing here.
Upvotes: 1