+ Start a Discussion
Michael SMichael S 

Error from MSSoapInit for either enterprise or partner wsdl.

The following vbscript code fails at the MSSoapInit line with the following error.  any suggestions for using the MSSoap 3.0 library with the 2.5 API?

WSDLOperation: -2147352567
WSDLOperation:The operation login had an invalid parts attribute HRESULT=0x80004005: Unspecified error
 - WSDLOperation:Initializing of the input message failed for operation login HRESULT=0x80004005: Unspecified error
 - WSDLPort:An operation for port Soap could not be initialized HRESULT=0x80004005: Unspecified error
 - WSDLPort:Analyzing the binding information for port Soap failed HRESULT=0x80004005: Unspecified error
 - WSDLService:Initialization of the port for service SforceService failed HRESULT=0x80004005: Unspecified error
 - WSDLReader:Analyzing the WSDL file failed HRESULT=0x80004005: Unspecified error
 - Clientne of the parameters supplied is invalid. HRESULT=0x80070057: The parameter is incorrect.


Sub Main
 Dim client As New MSSOAPLib30.SoapClient30

 Dim wsdl As String

 wsdl = MacroDir & "\enterprise.wsdl"

 On Error GoTo HandleError

 client.MSSoapInit(wsdl, "SforceService", "Soap")


end Sub

I am having also having trouble getting the WSDL to initialize with MsSoap 3.0
Has anyone found a solution to this problem?
The MS SOAP Toolkit is dead, i suggest you find an alternative approach (try our Office Toolkit for starters)