How to invoke a Web service from SAP using a JCo server

How to invoke a Web service from SAP using a JCo server

How do I invoke a Web service from SAP using a JCo server?

    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

You would first create a JCo server and configure your ABAP program to access it (search on "jco server" at SearchSAP.com for tips on how to create and configure a JCo server). The JCo server itself will need to incorporate wrapper code, as the JCo API does not provide a native mechanism to invoke a Web service. For this you will need some additional APIs (XML parser, etc.). Check out the Apache group for some great tools on Web services development. Using tools such as Apache Axis can greatly facilitate Web services development and allow you to effectively convert an outbound RFC call into an XML message that invokes a Web service.

This was first published in July 2006