Advertisement

04.29.2008 at 04:46AM PDT, ID: 23361673 | Points: 500
[x]
Attachment Details

Calling a web service from an asp page.

Asked by Kinger247 in Programming for ASP.NET, Active Server Pages (ASP), Microsoft Visual Basic.Net

Tags: asp

Hi all,

Im trying to run some code inside an asp page to talk to a web service.
The web service is on a machine that can be seen from the outside world (it has an external ip routed via a firewall).
It doesnt return any values just indicates that a certain page was called by a certain user.

This works fine when I:
1.      Run the asp page internally to the internal server name.
2.      Run an application outside our network connecting to the external web service.

But when I try and run the asp externally the script dont work, and it doesnt error either.

The web server is IIS6 and the asp page is not asp.net.

Heres the code for the webserivce:

postUrl = "http://XXXX/service.asmx/InfoUpdate"
Set xmlhttp = server.Createobject("MSXML2.XMLHTTP")
xmlhttp.Open "POST",postUrl,false
xmlhttp.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
DataToSend="Source= & UserID
xmlhttp.send DataToSend


Theres nothing wrong with the web service. To test this I created a default helloworld version and this didnt work either externally from the asp page. Although you can run the servce.asmx file ok from a browser and connected externally via an application.

Is there something Im missing regarding asp pages and the way they can utilize web services?

Thanks in advance
K.
Start Free Trial
[+][-]05.18.2008 at 06:00PM PDT, ID: 21594700

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.18.2008 at 06:10PM PDT, ID: 21594718

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628