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

http_url_encoder_addvar()



    Yep.  After I clicked send, I realized I forgot to alter the ID and
   password.  Thanks telling me about that.

   I didn't see a CR in the middle of DOCTYPE.  I'll have to take another
   look at that.

   Here's my EndOfElement procedure:


   *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
         *  This procedure is called for each ending tag of the xml file
         *  being processed.

   *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
        P EndOfElement    B
        D EndOfElement    PI
        D   userdata                      *   value
        D   depth                       10I 0 value
        D   name                      1024A   varying const
        D   path                     24576A   varying const
        D   value                    65535A   varying const
        D   attrs                         *   dim(32767)
        D                                     const options(*varsize)
         /free
          Select;
            when name = 'sendresult' and value = 'success';
              dsPNMA.imessageServiceSuccessful = *on;
            when name = 'msn';
              dsPNMA.msn = value;
            when name = 'sendresult' and value = 'failure';
              dsPNMA.imessageServiceSuccessful = *off;
            when name = 'error_message';
              prtMessage = 'Web Service Failure. Reason: ' +
                            %trim(value);
              PrintReport();
          endsl;
         /end-free
        P                 E



     ------------------------------
     Message: 2
     Date: Mon, 2 Jul 2012 15:28:35 -0500
     From: Mike Krebs <[1]mkrebs@xxxxxxxxxxxxxxxxxx>
     To: HTTPAPI and FTPAPI Projects <[2]ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
     Subject: RE: Donnie Sanders getting invalid Data was: Ftpapi Digest,
             Vol 72, Issue   22
     Message-ID:
     <[3]3DF08BA25872B644A1421B9F085B18299129640DD7@xxxxxxxxxxxx>
     Content-Type: text/plain; charset="us-ascii"
     >     recvresp(): end with 200
     >     recvdoc parms: identity 250
     >     header_load_cookies() entered
     >     recvdoc(): entered
     >     SetError() #0:
     >
     >     <?xml version="1.0" encoding="ISO-8859-1"?>
     >     <!DOCTYPE pnet_response PUBLIC "-//PeopleNet//pnet_response"
     >     "[4][4]http://open.peoplenetonline.com/dtd/pnet_response.dtd";>
     >
     <pnet_response><sendresult>success</sendresult><msn>[5]2052495003</m
     sn></p
     >     net_response>
     It is not your declaration that is having the problem. As you can
     see above, the server responded with "success" and
     msn=[6]2052495003.
     So the parse error would be coming from whatever is happening with
     this line
     <!DOCTYPE pnet_response PUBLIC "-//PeopleNet//pnet_response" "
     >From the debug included in your posting, it appears that there is a
     CR in the middle of the DOCTYPE. I wonder if that is causing the
     parse error? Internet Explorer doesn't seem to mind, but it is a bit
     unusual.
     Just in case it is the way you are calling the routines, could you
     post the "endofElement" procedure you wrote?
     Also, by posting the debug log, you revealed your user and password.
     You should immediately change your password and make sure to XXXX or
     9999 those fields in any future debug logs.
     ------------------------------

References

   1. mailto:mkrebs@xxxxxxxxxxxxxxxxxx
   2. mailto:ftpapi@xxxxxxxxxxxxxxxxxxxxxx
   3. mailto:3DF08BA25872B644A1421B9F085B18299129640DD7@xxxxxxxxxxxx
   4. http://open.peoplenetonline.com/dtd/pnet_response.dtd
   5. tel:2052495003
   6. tel:2052495003
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------