Article View: fr.comp.text.xml
Article #9024post en xml... HELP plz
From: Billy bathgate
Date: Mon, 25 Jun 2001 15:41
Date: Mon, 25 Jun 2001 15:41
78 lines
3259 bytes
3259 bytes
Salut , bon suis d�butant, please soyez indulgent. mon pb, c que je dois poster des infos en xml sur une page qui parse mon flux. pour ce faire, j'utilise le code suivant : <form method=post name=lookup> // $xml je fous dans ma var xml mon code $xml="<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"; $xml .="<methodCall>\n"; $xml .="<methodName>lookup</methodName>\n"; $xml .="<params>\n"; $xml .="<param>\n"; $xml .="<value>\n"; $xml .="<struct>\n"; $xml .="<member>\n"; $xml .="<name>partnerLogin</name>\n"; $xml .="<value><string>donn�e1</string></value>\n"; $xml .="</member>\n"; $xml .="<member>\n"; $xml .="<name>partnerPassword</name>\n"; $xml .="<value><string>donn�e2</string></value>\n"; $xml .="</member>\n"; $xml .="<member>\n"; $xml .="<name>authCode</name>\n"; $xml .="<value><string>donn�e3</string></value>\n"; $xml .="</member>\n"; $xml .="</struct>\n"; $xml .="</value>\n"; $xml .="</param>\n"; $xml .="<param>\n"; $xml .="<value>\n"; $xml .="<array><data>\n"; $xml .="<value>\n"; $xml .="<struct>\n"; $xml .="<member>\n"; $xml .="<name>contact1</name>\n"; $xml .="<value><string>$contact</string></value>\n"; $xml .="</member>\n"; $xml .="<member>\n"; $xml .="<name>contact2</name>\n"; $xml .="<value><string>$contact2</string></value>\n"; $xml .="</member>\n"; $xml .="</struct>\n"; $xml .="</value>\n"; $xml .="</data></array>\n"; $xml .="</value>\n"; $xml .="</param>\n"; $xml .="</params>\n"; $xml .="</methodCall>\n"; ?> // puis je mets ma var dans le hidden que je veux submiter <input type=hidden name=xml value="<?echo $xml; ?>"> </form> // et pis j'envoie le tout <script> this.document.lookup.action = 'adresse de ma page'; this.document.lookup.submit(); </script> le probleme, c qu'il m'affiche ca quand j'ai envoy� : non well-formed !! et si je prends dans mon view source le code qu'il y a dans mon input type hidden et que je le mets dans un �diteur xml, et bien il le comprend sans probleme.... Qulqu'un a-t-il d�j� rencontr� ce probl�me ? Y a-t-il une autre m�thode pour poster mon flux ? Y a-t-il une faute que je vois pas ? Y a-t-il un pilote dans l'avion parce que la... je perds de l'altitude.. Merci d'avance... Seb
Technical Details
Message-ID:
<9h7ik3$f8g$1@reader1.imaginet.fr>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!grolier!fr.clara.net!heighliner.fr.clara.net!fr.colt.net!writer!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,4d8ba3a8e5ba1552,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-06-25 07:48:26 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!grolier!fr.clara.net!heighliner.fr.clara.net!fr.colt.net!writer!not-for-mail From: "Billy bathgate" <juryy@caramail.com> Newsgroups: fr.comp.text.xml Subject: post en xml... HELP plz Date: Mon, 25 Jun 2001 16:41:51 +0100 Organization: ImagiNET / Colt Internet Lines: 85 Message-ID: <9h7ik3$f8g$1@reader1.imaginet.fr> NNTP-Posting-Host: access-83.14.rev.fr.colt.net X-Trace: reader1.imaginet.fr 993480131 15632 213.41.14.83 (25 Jun 2001 14:42:11 GMT) X-Complaints-To: abuse@imaginet.fr NNTP-Posting-Date: 25 Jun 2001 14:42:11 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000