WEBAdress = "Тут адрес сервера"
WEBUser = "ЛОГИН"
WEBPass = "ПАРОЛЬ"
Set WEBObject = CreateObject("MSOSOAP.SoapClient30")
WEBObject.ClientProperty("ServerHTTPRequest") = True
'Указываем местонахождение файла с wsdl схемой сервиса на локальном ресурсе
WEBObject.MSSOAPInit "OFIS_OS_SOAP_CRM_MD.wsdl", "", "", ""
WEBObject.ConnectorProperty("EndPointURL") = WEBAdress
WEBObject.ConnectorProperty("AuthUser") = WEBUser
WEBObject.ConnectorProperty("AuthPassword") = WEBPass
WEBObject.ConnectorProperty("Timeout") = 90000
Set oXML = CreateObject("Microsoft.XMLDOM")
WEBRequest = "<IN_KODBP xmlns="""">999999</IN_KODBP><IN_KODSPR xmlns="""">2</
IN_KODSPR><IN_ZPARTNIN xmlns=""""/>"
Set Responce = WEBObject.OS_SOAP_CRM_MD( WEBRequest )
sReport = "c:\_WEBReport.txt"
Set oFSO = WScript.CreateObject("Scripting.FileSystemObject")
Set oRep = oFSO.CreateTextFile(sReport, True)
oRep.WriteLine "Справочники"
oRep.WriteLine Responce.Item(0).XML
oRep.WriteLine "Код обработки"
oRep.WriteLine Responce.Item(1).XML
oRep.Close
WEBObject.ConnectorProperty("Timeout") = 900
Set oRep = Nothing
Set oFSO = Nothing
Set Responce = Nothing
Set oXML = Nothing
Set WEBObject = Nothing