Results 1 to 3 of 3
  1. #1
    ABW Ambassador
    Join Date
    November 1st, 2005
    Posts
    2,064
    Exclamation Link locator Direct ASP/XML Issue
    hello,

    I have asked Linkshare for help with this but they don't have any knowledge of ASP so I have no idea where to get help so I'm just hoping somone browsing here might know...

    What I'm trying to do is:

    Develop a page to show a merchants coupons using the Link locator Direct XML feed.

    When I run this I get this error:

    Didn't Work
    status=500
    Internal Server Error
    plus a lot of server type readout include here...
    Here is my current code, if you have any idea on how to get this working it would be really appreciated ( i have put private details in brackets {}):

    Code:
    <%Response.Buffer=true%>
    <%
    const SoapServer = "https://{myusername}:{mypassword}@apps.linksynergy.com/ws/services/TextPromotion?wsdl"
    
    set xmldom = server.CreateObject("Microsoft.XMLDOM")
    set xmlhttp = server.CreateObject("Microsoft.XMLHTTP")
    
    xmlhttp.open "POST", SoapServer, false
    xmlhttp.setRequestHeader "Man", POST & " " & SoapServer & " HTTP/1.1"
    xmlhttp.setRequestHeader "MessageType", "CALL"
    xmlhttp.setRequestHeader "ContentType", "text/xml"
    
    xmlhttp.send(SoapTest)
    
    if xmlhttp.Status = 200 then '405 means error, 200 means ok. You know why.
       
    Set xmldom = xmlhttp.responseXML
    Response.write(xmldom.xml)
    
    Else
    Response.Write("Didn't Work<BR>")
        Response.Write("status="&xmlhttp.status)
        Response.write("<BR>"&xmlhttp.statusText)
        Response.Write("<BR>"&Request.ServerVariables("ALL_HTTP"))
    End if
    set xmlhttp = nothing
    set xmldom = nothing
    function SoapTest()
        SoapTest = SoapTest & "<SOAP:Envelope xmlns:SOAP=""urn:schemas-xmlsoap-org:soap.v1"">"
        SoapTest = SoapTest & "<SOAP:Body>"
        SoapTest = SoapTest & "<TestRequest>"
    	SoapTest = SoapTest & "<sid>{mysid}</sid>"
        SoapTest = SoapTest & "<mid>{merchant mid}</mid>"
        SoapTest = SoapTest & "<displayText></displayText>"
        SoapTest = SoapTest & "</TestRequest>"
        SoapTest = SoapTest & "</SOAP:Body>"
        SoapTest = SoapTest & "</SOAP:Envelope>"   
    end function   
    
    %>
    Hosting Discounts from Professional Rates Hosts - Deals and Coupons on Domain Names from GoDadday, Namecheap, Domain.com and more top registers.

  2. #2
    Moderator MichaelColey's Avatar
    Join Date
    January 18th, 2005
    Location
    Mansfield, TX
    Posts
    16,232
    I've moved this from the LinkShare forum to the Programming Coding forum, in case someone here might be able to help Glinted.
    Michael Coley
    Amazing-Bargains.com
     Affiliate Tips | Merchant Best Practices | Affiliate Friendly? | Couponing | CPA Networks? | ABW Tips | Activating Affiliates
    "Education is the most powerful weapon which you can use to change the world." Nelson Mandela

  3. #3
    ABW Ambassador
    Join Date
    November 1st, 2005
    Posts
    2,064
    Thanks Michael.

    Updates include:

    I would also add this in there...

    SoapTest=SoapTest & "<sid>xxxxx</sid>

    someone from Linkshare also wrote to me with this:
    Doing some research, I believe that to be able to use SOAP with ASP, you need to use the SOAP Tool kit. Please refer to http://www.perfectxml.com/soapmstoolkit.asp for more details.
    Hosting Discounts from Professional Rates Hosts - Deals and Coupons on Domain Names from GoDadday, Namecheap, Domain.com and more top registers.

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Linkshare link locator Direct service
    By arianman in forum Rakuten LinkShare - LS
    Replies: 8
    Last Post: September 12th, 2013, 12:13 PM
  2. Link Locator Direct web service
    By offerfind in forum Rakuten LinkShare - LS
    Replies: 5
    Last Post: May 30th, 2008, 05:33 PM
  3. Linshare Link Locator Direct
    By pirate3x3 in forum Rakuten LinkShare - LS
    Replies: 1
    Last Post: May 28th, 2008, 09:03 PM
  4. PHP for Link Locator Direct? anyone, anyone Gardner?
    By bouffoc in forum Rakuten LinkShare - LS
    Replies: 4
    Last Post: January 16th, 2008, 09:46 AM
  5. Having Problems with the New Link Locator Direct 2?
    By flipone in forum Rakuten LinkShare - LS
    Replies: 5
    Last Post: December 12th, 2007, 06:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •