Forum Discussion
HKosova
Alumni
14 years agoHi Vinod,
Your web service returns a SOAP fault (an error) for a given method call. So, the method does not return anything and obj is assigned an empty value rather than a ClickAndBuy_Transaction_BDRStatus object instance.
To detect and handle SOAP faults, you need to use the On Error Resume Next statement and check the Err object as I previously explained in this thread of yours:
Your web service returns a SOAP fault (an error) for a given method call. So, the method does not return anything and obj is assigned an empty value rather than a ClickAndBuy_Transaction_BDRStatus object instance.
To detect and handle SOAP faults, you need to use the On Error Resume Next statement and check the Err object as I previously explained in this thread of yours:
On Error Resume Next
Set obj = WebServices.TMI_EU_Status.getBDRStatusByBDRID(129409981, "testtest1", 0, 449048011)
If Err = 0 Then
MsgBox obj.BDRID
Else
Log.Error "The web service returned an error (see Additional Info).", Err.Description
End If