[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Example using http_url_post_stmf



   Mario,
   The very first characters of a XML document must be the declaration
   node:
   <?xml version="1.0" encoding="utf-8"?>
   Your XML file starts with carriage return, linefeed and lots of blanks:
   [cid:_1_08097264080961D4001FFC77C1257B47]
   I always use Notepad++ and the "XML Tools" plugin to validate XML
   files, because MS Internet Explorer does not return all errors, such as
   this one. But with Notepadd++ I get the following error message:
   [cid:_1_0907911809078D60001FFC77C1257B47]
   Once that I removed the the invalid characters, the XML validates fine:
   [cid:_1_0907BF240907BB94001FFC77C1257B47]
   Regards,
   Thomas.
   ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 05.04.2013 17:56:26:
   > Von: martoriello@xxxxxxxxxxxxxxx
   > An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx,
   > Datum: 05.04.2013 18:04
   > Betreff: Example using http_url_post_stmf
   > Gesendet von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   >
   > Hi all
   > I am quite new to Httpapi  and I am looking for an example  about
   > the use of http_url_post_stmf . I have to send a xml file to a
   > webserver that is on a Epson printer. Looking at the example in
   > Httpapi first I wrote a pgm that send the example data written in a
   > program variable using �tp_url_post_xml�nd it was Ok . Then I
   > modified the program to send the same data written now in a xml file
   > using http_url_post_stmf and I receive an error. So  I try to send
   > the xml file using the HTTPAPI  cmdline interface  to try to
   > understand what I receive from the server and the response file is :
   >
   > <?xml version="1.0" encoding="utf-8"?>

   > <soapenv:Envelope
   xmlns:soapenv="[1]http://schemas.xmlsoap.org/soap/envelope/
   > ">
   > <soapenv:Body>

   > <response success="false" code="PARSER_ERROR" status="0">

   > </response>

   > </soapenv:Body>

   > </soapenv:Envelope>

   > maybe I did a mistake when I copied the data in the xml file and
   > there is no problem or I am using the http_url_post_stmf in a wrong
   > mode. Another question is how in the incoming procedure can I read
   > the values of success and code attributes of response tag?
   > Attached is the XML file that I am using.
   > Thanks in advance
   > Mario[Anhang "esempio_scontrino.xml" gelöscht von Thomas Raddatz/
   > OBI/DE]
   >
   -----------------------------------------------------------------------
   > This is the FTPAPI mailing list.  To unsubscribe, please go to:
   > [2]http://www.scottklement.com/mailman/listinfo/ftpapi
   >
   -----------------------------------------------------------------------

   --
   IMPORTANT NOTICE:
   This email is confidential, may be legally privileged, and is for the
   intended recipient only. Access, disclosure, copying, distribution, or
   reliance on any of it by anyone else is prohibited and may be a
   criminal
   offence. Please delete if obtained in error and email confirmation to
   the sender.

References

   1. http://schemas.xmlsoap.org/soap/envelope/
   2. http://www.scottklement.com/mailman/listinfo/ftpapi

GIF image

GIF image

GIF image

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------