I know this is no help yet but we have just started attemping to do the same thing. If we have any luck I will post how we did it
John
Hi
We would like to implment API to query transactions in Affiliate Window. We have exhausted all options including AW support. We are implementing the API via ASP and for some reason the SOAP request is not resulting any responses. Any assistance with tbe below would be greatly appreciately:
<%@ LANGUAGE="VBSCRIPT" %>
<%
'Create the SOAP Envelope
strEnvelope = "<?xml version=""1.0"" encoding=""UTF-8""?>"
strEnvelope = strEnvelope & "<SOAP-ENV:Envelope"
strEnvelope = strEnvelope & "xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"""
strEnvelope = strEnvelope & "xmlns:xsd=""http://www.w3.org/2001/XMLSchema"""
strEnvelope = strEnvelope & "xmlns:ns1=""http://api.affiliatewindow.com/"">"
strEnvelope = strEnvelope & "<SOAP-ENV:Header>"
strEnvelope = strEnvelope & "<ns1:UserAuthentication"
strEnvelope = strEnvelope & "SOAP-ENV:mustUnderstand=""1"""
strEnvelope = strEnvelope & "SOAP-ENV:actor=""http://api.affiliatewindow.com"">"
strEnvelope = strEnvelope & "<ns1:iId>******</ns1:iId>"
strEnvelope = strEnvelope & "<ns1:sPassword>******</ns1:sPassword>"
strEnvelope = strEnvelope & "<ns1:sType>affiliate</ ns1:sType>"
strEnvelope = strEnvelope & "</ns1:UserAuthentication>"
strEnvelope = strEnvelope & "<ns1:getQuota SOAP-ENV:mustUnderstand=""1"" SOAPENV:"
strEnvelope = strEnvelope & "actor=""http://api.affiliatewindow.com"">true</ns1:getQuota>"
strEnvelope = strEnvelope & "</SOAP-ENV:Header>"
strEnvelope = strEnvelope & "<SOAP-ENV:Body>"
strEnvelope = strEnvelope & "<ns1:getTransactionList>"
strEnvelope = strEnvelope & "<ns1:dStartDate>2009-07-18T00:00:00</ns1:dStartDate>"
strEnvelope = strEnvelope & "<ns1:dEndDate>2009-08-18T23:59:59</ns1:dEndDate>"
strEnvelope = strEnvelope & "<ns1:sDateType>transaction</ns1:sDateType>"
strEnvelope = strEnvelope & "</ns1:getTransactionList>"
strEnvelope = strEnvelope & "</SOAP-ENV:Body>"
strEnvelope = strEnvelope & "</SOAP-ENV:Envelope>"
Set oHttp = CreateObject("Msxml2.XMLHTTP")
oHttp.open "POST", "http://api.affiliatewindow.com/v3/AffiliateService?wsdl", false
oHttp.setRequestHeader "Content-Type", "text/xml"
oHttp.send strEnvelope
strReturn = oHttp.responseText
response.write strReturn
Set oHttp = Nothing
%>
I know this is no help yet but we have just started attemping to do the same thing. If we have any luck I will post how we did it
John
Try changing the URL you are posting from:
oHttp.open "POST", "http://api.affiliatewindow.com/v3/AffiliateService?wsdl", false
to
oHttp.open "POST", "http://api.affiliatewindow.com/v3/AffiliateService", false
I'm trying to automate some of our business processes in .NET/C#
I, like you, was using the "?wsdl" in the URL (because that's what the documentation led me to believe)...that form of the URL would always result in a response that contained the WSDL definition---changing the URL to as I have described provided the expected response.
BTW -- I am now trying to correctly iterate over my response (ArrayOfTransaction) from the API method getTransactionListReturn --- I have been unable to get the appropriate syntax for this...yet!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks