Skip to Content
author's profile photo Former Member
Former Member

VB client to consume Sap Web Service

Hallo,

I need a big help...

I develop on SAP version ERP Central Component 5.0.

I generated a Web Service from a BAPI (BAPI_PROJECT_MAINTAIN but it's better to work on a simpler BAPI custom to understand...) using the Sap Wizard in SE37. Now, with the WSDL generated and XMLSpy software, I consume my Web Service with no problem from my PC.

One of our customer is trying now to develop a visual basic client to consume this WS but with no good results...

I made a simple bapi with an input string and an output string parameters, and this simple case run with no problems with this code:

Module TestSap

Private S_SAPE_Client As MSSOAPLib30.SoapClient30

Private sReply As String

Private sValore As String

Public Sub Main()

S_SAPE_Client = Nothing

S_SAPE_Client = CreateObject("MSSOAP.SoapClient30")

'--> test

S_SAPE_Client.MSSoapInit("http://sap_test:8000/sap/bc/srt/rfc/sap/ZWS_PROJECT?sap-client=010&wsdl=1.1&style = rpc")

'--> test

sValore = "TEST"

sReply = S_SAPE_Client.ZzbapiTestWsConnection(sValore)

MsgBox(sReply)

S_SAPE_Client = Nothing

End Sub

End Module

We don't know how to implement it for a bapi with complex types for parameters...

Have you any example to illuminate us??

Thanks in advance....

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 10:31 AM

    OPS... I'm sorry...

    I put this topic in the wrong forum...

    This for I work often with XI!;-)

    I don't know how to move my request..

    Hope someone could help me the same...

    Add comment
    10|10000 characters needed characters exceeded