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

Re: HTTPAPI, SOAP, and parsing the returned XML



   Why the return XML is not properly closed. Is it that you cannot
   change the WS to return valid XML back?
   Thanks,
   Musthafa.

   On Fri, Oct 16, 2009 at 11:16 AM, Glenn R. McClenny
   <[1]gmcclenny@xxxxxxxxxxxxxxxxxxxxxx> wrote:

       I'm trying my first application with HTTPAPI.  I'm using the
       http_url_post_xml to send a SOAP request to a web service.  I'm
       getting an XML file back that looks something like this:
       <ADStart><error code="0" text="NO_ERROR"
       /><ticket>fe81cb7e-fd9e-411b-b3fd-b9c5729728f7</ticket></ADStart>
       I'm using the incoming procedure in a lot of the examples to
     attempt
       to parse the returned XML.  The first name comes back as ADStart,
     with
       a value of: error code="0" text="NO_ERROR"
       /><ticket>fe81cb7e-fd9e-411b-b3fd-b9c5729728f7</ticket>
       I'm trying to extract the ticket value, but not quite sure how to
     get
       there!  The next time the Incoming procedure is invoked, it
     simply
       returns the end of the soap body followed by the envelope.  Is
     the
       fact that the web service is returning the error code line and
     that
       line isn't enclosed in starting and ending tags the issue?  If
     so, do
       you have any suggestion of how to get around it?
       Thanks for your help!
       Glenn
     -------------------------------------------------------------------
     ----
     This is the FTPAPI mailing list.  To unsubscribe, please go to:
     [2]http://www.scottklement.com/mailman/listinfo/ftpapi
     -------------------------------------------------------------------
     ----

   --
   Thanks,
   Musthafa

References

   1. mailto:gmcclenny@xxxxxxxxxxxxxxxxxxxxxx
   2. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------