Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2006
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    xml from affiliatefuture.com

    Hi,

    Does anyone have experience with affiliatefuture.com and their xml feed? I need to get data from link http://ws-affiliate.afnt.co.uk/hotel...x/hotel_search and I dont know how. I know I have to use HTTP POST request but I dont know how to pull data from it. If anyone can give me some lead, Im not looking for complete script. Btw Im working in PHP.

    Thanks for your help.

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by pingvin View Post
    Hi,

    Does anyone have experience with affiliatefuture.com and their xml feed? I need to get data from link http://ws-affiliate.afnt.co.uk/hotel...x/hotel_search and I dont know how. I know I have to use HTTP POST request but I dont know how to pull data from it. If anyone can give me some lead, Im not looking for complete script. Btw Im working in PHP.

    Thanks for your help.
    this link don't wotk for me:
    Code:
    HTTP/1.1 500 Internal Server Error
    Connection: close
    Date: Wed, 15 Oct 2008 08:20:39 GMT
    Server: Microsoft-IIS/6.0
    X-Powered-By: ASP.NET
    X-AspNet-Version: 2.0.50727
    Cache-Control: private
    Content-Type: text/html; charset=utf-8
    Content-Length: 3026
    
    <html>
        <head>
            <title>Runtime Error</title>
            <style>
             body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
             p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
             b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
             H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
             H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
             pre {font-family:"Lucida Console";font-size: .9em}
             .marker {font-weight: bold; color: black;text-decoration: none;}
             .version {color: gray;}
             .error {margin-bottom: 10px;}
             .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
            </style>
        </head>
    
        <body bgcolor="white">
    
                <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
    
                <h2> <i>Runtime Error</i> </h2></span>
    
                <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
    
                <b> Description: </b>An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
                <br><br>
    
                <b>Details:</b> To enable the details of this specific error message to be viewable on remote machines, please create a &lt;customErrors&gt; tag within a &quot;web.config&quot; configuration file located in the root directory of the current web application. This &lt;customErrors&gt; tag should then have its &quot;mode&quot; attribute set to &quot;Off&quot;.<br><br>
    
                <table width=100% bgcolor="#ffffcc">
                   <tr>
                      <td>
                          <code><pre>
    
    &lt;!-- Web.Config Configuration File --&gt;
    
    &lt;configuration&gt;
        &lt;system.web&gt;
            &lt;customErrors mode=&quot;Off&quot;/&gt;
        &lt;/system.web&gt;
    &lt;/configuration&gt;</pre></code>
    
                      </td>
                   </tr>
                </table>
    
                <br>
    
                <b>Notes:</b> The current error page you are seeing can be replaced by a custom error page by modifying the &quot;defaultRedirect&quot; attribute of the application's &lt;customErrors&gt; configuration tag to point to a custom error page URL.<br><br>
    
                <table width=100% bgcolor="#ffffcc">
                   <tr>
                      <td>
                          <code><pre>
    
    &lt;!-- Web.Config Configuration File --&gt;
    
    &lt;configuration&gt;
        &lt;system.web&gt;
            &lt;customErrors mode=&quot;RemoteOnly&quot; defaultRedirect=&quot;mycustompage.htm&quot;/&gt;
        &lt;/system.web&gt;
    &lt;/configuration&gt;</pre></code>
    
                      </td>
                   </tr>
                </table>
    
                <br>
    
        </body>
    
    </html>
    best regards

  • #3
    New to the CF scene
    Join Date
    May 2006
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts
    When you go to page http://ws-affiliate.afnt.co.uk/hotel...p=hotel_search there is a form and when you press send button you go to page http://ws-affiliate.afnt.co.uk/hotel...x/hotel_search where should be xml feed. So from that link (http://ws-affiliate.afnt.co.uk/hotel...x/hotel_search) I should pull data but I dont know how to do that with HTTP POST in php and I need some directions how to do that.

    Thanks

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by pingvin View Post
    When you go to page http://ws-affiliate.afnt.co.uk/hotel...p=hotel_search there is a form and when you press send button you go to page http://ws-affiliate.afnt.co.uk/hotel...x/hotel_search where should be xml feed. So from that link (http://ws-affiliate.afnt.co.uk/hotel...x/hotel_search) I should pull data but I dont know how to do that with HTTP POST in php and I need some directions how to do that.

    Thanks
    it's a web service, look on the net about 'wdsl', 'soap', 'web service'. Under the 'hotels' you have a 'Click here for a complete list of operations.' and if you follow the link will find the service description and what function/operation offer. But in order to use that you must know what is web service, soap and how they work.

    best regards

  • Users who have thanked oesxyl for this post:

    pingvin (10-16-2008)


  •  

    Posting Permissions

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