Call .aspx file from .asp

  • Thread starter Thread starter Vinod
  • Start date Start date
It depends what you mean by "call"

If it is just a link to it, yes, href it to the aspx page.

Otherwise it would be easier to call a web service.

Gerald
 
Hi Vinod,

Following your email, find a way to do that.
Never tried with webservices, but you should be able to use this function
with a webservice.

Look for it at msdn.:

Sub grabPageContent(sPageToFlattenUrl, sFlattenedPageUrl)
Dim oXml
Set oXml = Server.CreateObject("Microsoft.XMLHTTP")
if instr(1,sPageToFlattenUrl,"http://") = 0 then
sPageToFlattenUrl = "http://" & Request.ServerVariables("HTTP_HOST") &
sPageToFlattenUrl
end if
oXml.Open "GET", sPageToFlattenUrl, False
oXml.Send
Dim sContent = oXml.responseText
Set oXml = Nothing
End Sub

Gerald
 
Hi Gerald,

I just tryed the mentioned Link. But it won't work in my case.


My Code Given Below:


Dim oXml
dim url
Dim sContent

url = "http://..../..../Infows.asmx/"
url = url & "DoBudgetSearch?intVillaOnly=1"

Set oXml = Server.CreateObject("Microsoft.XMLHTTP")
oXml.Send

sContent = oXml.responseText

Response.Write sContent

Set oXml = Nothing


The above works OK. But in my case, I have only ".wsdl" file in my url.
e.g. url = "http://..../..../Infows.wsdl/"

Please suggest whether any method is there to directly pass values to a
"wsdl" file & get the out put, other than using "SOAP object".

Thanks in Advance

-Vinod
 
Back
Top