Hello,
I used to be able to access a third party webservice using the post method
in an ASP page.
Original Post Method
<%
Dim sGetAccountUrl
sGetAccountUrl =
"http://www.sample.com/webservices/webservices.asmx/GetAccou nt" &_
"?a=" & la &_
"&d=" & ld &_
"&p=" & lp
%>
<form name="form1" onsubmit="if(doSubmit) { return true; } else { return
false; }" ACTION="getaccount.asp" METHOD="POST">
<input type="hidden" id="hiddeninput" value=""></input>
<input type="hidden" name=a value="<%=Request("a")%>" />
<%
If Request.Form("acctname") = "" Then
Call oXmlsrc.load(sGetAccountUrl)
'Response.Write "<!-- " & oXmlSrc.xml & " -->" 'debugging code
newXML=oXmlsrc.xml
Set re=new regexp
re.pattern=" xmlns.+?>"
newXML=re.replace(newXML,">")
Call oXmlsrc.loadxml(newXML)
else
....
%>
------------------------------------------------------------ -------------------------------------------------------
Now they say I can only use SOAP.
This is the example they gave me.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetSiteDetail xmlns="http://tempuri.org/">
<obj>
<id>string</id>
<key_code>string</key_code>
<company_id>string</company_id>
<site_no>int</site_no>
</obj>
</GetSiteDetail>
</soap:Body>
</soap:Envelope>
1) How do I assign the values of la, ld and lp into the SOAP statements? la
= site_no, ld = company_id, lp = key_code
*** Note: I will need to add a column for id.
2) Do I substitute the EndPoint URL they gave me for the URL
http://tempuri.org?
3) How do I assign the SOAP statements to sGetAccountURL?
Thank you in advance.
Chuck
