[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTTPAPI, SOAP, and parsing the returned XML
Glenn, I am not sure whether I understood then problem completely or not. But is it possible that you
did not register an "end-element" callback procedure at the http_url_post_xml() statement?
If that is true, please register an "end-element" callback procedure when calling http_url_post_xml()
and then look at the "value" parameter of the callback procedure. It should contain
"fe81cb7e-fd9e-411b-b3fd-b9c5729728f7" when the closing tag of <ticket> is processed.
Thomas.
Glenn R. McClenny schrieb:
> 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:
> 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
-----------------------------------------------------------------------