You are here:  » XML feed works with DEMO, but getting Authentication failure when using in PHP file


XML feed works with DEMO, but getting Authentication failure when using in PHP file

Submitted by jord on Mon, 2009-12-28 08:35 in

Hello,

First of all, thnx for the nice parser.
i am not a programmer, so can you please help me with the following.

I am trying to parse an xml feed to csv file. The xml feed looks like this:

http://www.nedis.nl/RequestDataOnLine.php?PAR1=VID-TRANS515KN&PAR2=NL&PAR3=USERNAME&PAR4=PASSWORD

When i submit this url in your DEMO, it works fine. But when i want to use it in de php code generated by your demo i get an

Array ( [DATA] => [STATUS] => Authentication failure. )

This is how the result should look like:

<DATA>
 <STATUS>Successful authentication</STATUS>
 <ARTLCODE>VID-TRANS515KN</ARTLCODE>
 <SHORTDESC>5.8GHZ SCART PLUG REC+TRA</SHORTDESC>
 <LONGDESC>Draadloos TV systeem met inklapbare behuizing en Scart lock connector. Kijk TV of DVD?s op een TV in een andere kamer. Je kunt de TV tuner of DVD speler zelfs met de originele afstandsbediening bedienen door middel van de bijgeleverde infrarood verlenger. Dit systeem maakt gebruik van de 5.8 GHz frequentie, dit garandeert dat het signaal niet verstoord wordt door andere draadloze apparaten. Het speciale ontwerp maakt het mogelijk om het systeem achter je TV te monteren.
Zender:
&bull; Modulatie: FM (video en audio)
&bull; Kanalen: 4 met PLL frequency synthesizer
&bull; Video ingang: 1V p-p/75 ohm (via SCART plug)
&bull; Audio ingang: 1V p-p/600 ohm (stereo, via SCART plug)
&bull; Antenne: Omni-directioneel
&bull; Voeding: 7.5 V DC, 300 mA
&bull; Afmeting: 120×69×24 mm
&bull; Gewicht: 90 g
Ontvanger:
&bull; Kanalen: 4 met PLL frequency synthesizer
&bull; Video uitgang: 1V p-p/75 ohm (via SCART plug)
&bull; Audio uitgang: 1V p-p/600 ohm (stereo, via SCART plug)
&bull; Antenne: Omni-directioneel
&bull; IR frequentie: 433.92 MHz
&bull; Voeding: 7.5 V DC, 300 mA
&bull; Afmeting: 120×69×24 mm
&bull; Gewicht: 88 g </LONGDESC>
 <GENDESC></GENDESC>
 <PRICE1>46.3000</PRICE1>
 <PRICE2>45.2600</PRICE2>
 <PRICE3>44.2400</PRICE3>
 <PRICE4>43.2500</PRICE4>
 <QUANTITY1>1</QUANTITY1>
 <QUANTITY2>3</QUANTITY2>
 <QUANTITY3>6</QUANTITY3>
 <QUANTITY4>9</QUANTITY4>
 <PICTURE>VID-TRANS515KN_1.JPG</PICTURE>
 <PICTURE>VID-TRANS515KN_2.JPG</PICTURE>
 <PICTURE>VID-TRANS515KN_3.JPG</PICTURE>
 <PICTURE>VID-TRANS515KN_4.JPG</PICTURE>
 <PICTURE>VID-TRANS515KN_5.JPG</PICTURE>
 <PICTURE>VID-TRANS515KN_6.JPG</PICTURE>
 <STOCK> 715</STOCK>
 <GROUPING></GROUPING>
 <BARCODE>5412810126859</BARCODE>
 <CATEGORY>
  <MAINMENU></MAINMENU>
 </CATEGORY>
 <UOM>
  <LENGTH>170</LENGTH>
  <WIDTH>135</WIDTH>
  <HEIGHT>85</HEIGHT>
  <WEIGHT>885</WEIGHT>
  <PACKAGE>1</PACKAGE>
 </UOM>
</DATA>

Can you please help why it`s not working when using the php code generated?

Best regards,

Jord

Submitted by support on Mon, 2009-12-28 11:14

Hello Jord,

As the authentication appears to be based on parameters in the URL, it should be anything to do with the connection method.

Would it be possible for you to email me the working URL so that I can check it out?

Thanks,
David.
--
MagicParser.com

Submitted by jord on Mon, 2009-12-28 21:25

Hello David,

I still have some problems with a few products....but i cannot find the difference. Can you please have a look for me if you can see why the one feed with an artikel number works and the other doesn`t?

If i use the url i mailed to you but replace the PAR1=ARTICELNUMBER with this artikel: PAR1=KN-DVBT-UNI then every thing fails even in you DEMO page.

Greetzzz

Jord

Submitted by jord on Fri, 2010-01-01 16:35

Hello David,

Happy New Year!!
Can you please have a look at the above?
thnx.

Greetzzz Jord

Submitted by support on Fri, 2010-01-01 23:52

Hello Jord,

Happy New Year to you too! My apologies, I missed your post earlier today but I have just replied via email regarding this issue. It is to do with character encoding and requires a slight modification to the script in order to force the character set as it is not declared within the XML.

Cheers,
David.