How can you use WSDL to create client stubs? I have went and put the definition
ID: 3543616 • Letter: H
Question
How can you use WSDL to create client stubs?
I have went and put the definition for both WSDL and client stubs. Can anyone help me from there?
In client application code, an RPC looks like a local procedure call, because it is actually a call to a local proxy known as a client stub (a surrogate code that supports RPCs). The client stub mimics the interface of the remote object and methods. It essentially behave like a local procedure to the client, but instead of executing the call, it marshalls the procedure identifier and the arguments into a request message, which it sends via its communication module to the server.
WSDL is an XML based specification language for describing the public interfaces of a web service (or the contract that a service exposes to the client)
Also an added note the web service interface definition:
The service interface describes the general web service interface structure in a language and platform independent manner. This helps define a set of services that several diverse web sites can implement. The abstract service description section contains all the operations supported by the service, the operation parameters and abstract data types, which are all part of the abstract definition of the web service interface.So now how does all of this correlate?
Explanation / Answer
Hi,
The remote methods are described via WSDL . So when you create your client stub, the code is interpreted from the WSDL parameters and classes are created at the client side.
Now you can call these classes and use them like local classes, doing all the functionality with those classes , for example accessing variables and calling methods.
So if you are asking about what to do next, you need to add your application logic and call the reemote methods using that object.
Part 1: Creating a client stub. (Eclipse has documentation on this topic .. they have a very nice PDF.)
http://www.eclipse.org/webtools/community/education/web/t320/Generating_a_client_from_WSDL.pdf
Part 2 : Calling code using client stub.
Hope it Helps :)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.