Consuming a Webservice – eSourcing
When we look at any customers landscape you will finds systems and applications that are built and supported by different vendors and programming languages.
These systems cannot leave in silos and require integration; web services is one of the open standard available to integrate with disparate systems.
In this blog I would like to provide step-by-step guide on how to consume a web service from e-sourcing application.
To consumer a web service you will need following from a provider system (Web service Provider).
- WSDL
2. Endpoint
http://en.wikipedia.org/wiki/Endpoint_interface
3. Client Library, generated from WSDL
WSDL2Java tools.
Axis provides one such tool , but you can go for any WSDL2Java tool.
http://axis.apache.org/axis2/java/core/tools/
Once client jar file is generated, you need add all custom jar file required (client jar file and axis jar files) to consume the web service using process described in
http://scn.sap.com/community/sourcing/blog/2013/08/10/adding-custom-jar-files-to-e-sourcing
You can find sample code how to consume a webservice using Axis API in below link
http://axis.apache.org/axis2/java/core/docs/quickstartguide.html