...

View Full Version : xml from affiliatefuture.com



pingvin
10-15-2008, 09:02 AM
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/hotels/v2_4/hotels.asmx/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.

oesxyl
10-15-2008, 09:22 AM
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/hotels/v2_4/hotels.asmx/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:


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

pingvin
10-15-2008, 05:17 PM
When you go to page http://ws-affiliate.afnt.co.uk/hotels/v2_4/hotels.asmx?op=hotel_search there is a form and when you press send button you go to page http://ws-affiliate.afnt.co.uk/hotels/v2_4/hotels.asmx/hotel_search where should be xml feed. So from that link (http://ws-affiliate.afnt.co.uk/hotels/v2_4/hotels.asmx/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

oesxyl
10-15-2008, 11:28 PM
When you go to page http://ws-affiliate.afnt.co.uk/hotels/v2_4/hotels.asmx?op=hotel_search there is a form and when you press send button you go to page http://ws-affiliate.afnt.co.uk/hotels/v2_4/hotels.asmx/hotel_search where should be xml feed. So from that link (http://ws-affiliate.afnt.co.uk/hotels/v2_4/hotels.asmx/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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum