Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Calling a Web-service from ASP?

Hi!

A have a big BIG Problem that i cannot solve for some hours already.
I must call a web-service from an asp-script. Having the following code
[code]

<%
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
Dim xmlhttp
Dim DataToSend



DataToSend="Val1="&Request.Form("AId")&"&Val2="&Request.Form("AUserId")&"&Val3="&Request.Form("ASecureId")
'DataToSend="AId="&"-1"&"&AUserId="&"1258"&"&ASecureId="&"bla-bla"
Dim postUrl
postUrl = "https://de-chs-dev.ww005.siemens.net/New/restricted/ProcessWebServ/ProcessWebService.asmx/IPMCreateNewCall"

Set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP.3.0")
xmlhttp.Open "POST",postUrl,false, "", ""
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.send DataToSend
Response.Write(xmlhttp.responseText)

End If
%>

Enter the Values to perform Operation


AId:

AUserId:

ASecureId:






[/code]
I get an IIS error 401.2 (authentification error)
The only solution that i found in internet is
[code]
xmlhttp.Open "POST",postUrl,false, strLogin, strPasswort
[/code]
but it doesn't work :-(

Can anyone, please, help me to solve this problem? I'm nearly in panic..
Thank you!


Sign In or Register to comment.