T
Thomas Weiler
Hello,
Iam trying to connect to a ASP.NET Webservice on another Server via
Outlook 2003 VBA. I´ve linked the "Microsoft Soap Type Library".
When I now go through the following code via debugger, it goes without
any error message. But on the Webserver nothing happens (Ived activate
the debugger on the ASP.NET Application and nothing happens).
What do I make wrong or what is missing in the code to establish a
correct connection?
-------------------------- snip ----------------------------------
Dim msxml As New MSXML2.XMLHTTP
strEnvelope = _
"<soap:envelope
xmlns:soap=""urn:schemas-xmlsoap-org:soap.v1"">" & _
"<soap:header></soap:header>" & _
"<soap:body>" & _
"<myFunction xmlns='http://tempuri.org/'>" & _
"<var1>TextTextText</var1>" & _
"<var2>string</var2>" & _
"</myFunction>" & _
"</soap:body>" & _
"</soap:envelope>"
strServ = "http://myserver/myservice.asmx"
msxml.Open "post", strServ, False
msxml.setRequestHeader "Content-Type", "text/xml"
msxml.Send strEnvelope
-------------------------- snap ----------------------------------
Thanks for all answers.
Iam trying to connect to a ASP.NET Webservice on another Server via
Outlook 2003 VBA. I´ve linked the "Microsoft Soap Type Library".
When I now go through the following code via debugger, it goes without
any error message. But on the Webserver nothing happens (Ived activate
the debugger on the ASP.NET Application and nothing happens).
What do I make wrong or what is missing in the code to establish a
correct connection?
-------------------------- snip ----------------------------------
Dim msxml As New MSXML2.XMLHTTP
strEnvelope = _
"<soap:envelope
xmlns:soap=""urn:schemas-xmlsoap-org:soap.v1"">" & _
"<soap:header></soap:header>" & _
"<soap:body>" & _
"<myFunction xmlns='http://tempuri.org/'>" & _
"<var1>TextTextText</var1>" & _
"<var2>string</var2>" & _
"</myFunction>" & _
"</soap:body>" & _
"</soap:envelope>"
strServ = "http://myserver/myservice.asmx"
msxml.Open "post", strServ, False
msxml.setRequestHeader "Content-Type", "text/xml"
msxml.Send strEnvelope
-------------------------- snap ----------------------------------
Thanks for all answers.