We are using wM6.5 with SAP Adapter 6.5. In an automated scenario, webMethods SAP Adapter Users Guide recommends to invoke an RFC adapter service using RFC-XML with HTTP Post method. This works fine and the function module gets invoked (as can be verified from the SAP system). However, the example does not suggest how to obtain the response from the call. When using the pub.client.http service to simulate an http post, I get an RFC-XML response without any content as below:
Here are more details of the situation, hoping this will help someone to suggest a resolution
webMethods SAP Adapter User’s Guide, Chapter 5 has a section “Posting an RFC-XML Document from an HTTP Client” [page 77]. In this section, it explains how to invoke a SAP adapter service “in a fully automated scenario”. There is a tip to simulate a raw post, you can use the service pub.client:http. We are trying to follow this example. We are able to invoke the service alright, (I can verify this from SAP) but don’t understand how to get the response from the call. The tables are not optional.
We used pub.string:bytesToString to convert the byte array from the response to a string. We are getting just the following:
We want to get similar response from WM Developer invocation, for example, using “pub.client:http”. Currently, we get the empty response as described above.