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