M
mail_garp
Hi,
I am starting with VBA and try at the moment to call a web service via
following code:
-------------------
Private Sub CommandButton1_Click()
Dim ws_call As New clsws_ZZXMLUPLOADService
Set ws_call = New clsws_ZZXMLUPLOADService
Dim output(0) As struct_ZOXDBW0121
Set output(0) = New struct_ZOXDBW0121
output(0).BIC_Z9S_MATNM = "Product 1"
output(0).QUANTITY = "1"
output(0).UNIT = "EA"
Dim ds As String
ds = "6AZZXMLUPLOAD_IS"
Dim result As MSXML2.IXMLDOMNodeList
result = ws_call.wsm_BI0_QI6AZZXMLUPLOAD_IS_RFC(output, ds)
End Sub
--------------------
The class of the web_service is created and there also a sub with that
name exists (in the above code I inserted it also with value help -->
it appeared after I types ws_call.
Sub Code
--------------
Public Sub wsm_BI0_QI6AZZXMLUPLOAD_IS_RFC(ByRef ar_DATA As Variant,
ByVal str_DATASOURCE As String)
'Error Trap
On Error GoTo wsm_BI0_QI6AZZXMLUPLOAD_IS_RFCTrap
sc_ZZXMLUPLOADService.BI0_QI6AZZXMLUPLOAD_IS_RFC ar_DATA,
str_DATASOURCE
Exit Sub
--------------
Any ideas why I do get the compile error?
Many thanks in advance for all replies.
I am starting with VBA and try at the moment to call a web service via
following code:
-------------------
Private Sub CommandButton1_Click()
Dim ws_call As New clsws_ZZXMLUPLOADService
Set ws_call = New clsws_ZZXMLUPLOADService
Dim output(0) As struct_ZOXDBW0121
Set output(0) = New struct_ZOXDBW0121
output(0).BIC_Z9S_MATNM = "Product 1"
output(0).QUANTITY = "1"
output(0).UNIT = "EA"
Dim ds As String
ds = "6AZZXMLUPLOAD_IS"
Dim result As MSXML2.IXMLDOMNodeList
result = ws_call.wsm_BI0_QI6AZZXMLUPLOAD_IS_RFC(output, ds)
End Sub
--------------------
The class of the web_service is created and there also a sub with that
name exists (in the above code I inserted it also with value help -->
it appeared after I types ws_call.
Sub Code
--------------
Public Sub wsm_BI0_QI6AZZXMLUPLOAD_IS_RFC(ByRef ar_DATA As Variant,
ByVal str_DATASOURCE As String)
'Error Trap
On Error GoTo wsm_BI0_QI6AZZXMLUPLOAD_IS_RFCTrap
sc_ZZXMLUPLOADService.BI0_QI6AZZXMLUPLOAD_IS_RFC ar_DATA,
str_DATASOURCE
Exit Sub
--------------
Any ideas why I do get the compile error?
Many thanks in advance for all replies.