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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.