Call .aspx file from .asp

G

Gerald

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
 
G

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
 
V

Vinod

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top