Skip to Content
avatar image
Former Member

Tables in the RFC web serice from .net

I am trying to call the RFC webservice in SAPWS 6.2, calling from .NET using the Web Reference functionality not the .NET adaptor. I get the the simple function module calls with imports and export working just fine, however when I try to call a service that returns a table, like

SD_RFC_CUSTOMER_GET, the web reference creates a public sub instead of a public function, and I cannot get the data returned. I trace the call on the ICM in SAP and actually see the data coming in in a different, I actually think the issue is in the way I am calling the

web service from .NET.

Does anyone have sample code of a call to a RFC web service receiving and returning a table?


Stephen Taylor

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 13, 2006 at 03:53 PM

    This should definitely work. I assume that something is wrongly configured. The fact that .NET is not creating a return paramters sounds like the WSDL doesn't contain a response message (or an empty one). Can you please check the WSDL?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Reiner Hille-Doering


      Your suggestion worked. I used

      Dim result(0) As

      and thanks for the credentials line as well, I had authorizations on the node in the WebAS, and was wondering how to send the authority as part of the SOAP request.

      This is nice functionality.

      Thanks again for your help