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

RE: HTTPAPI, SOAP, and parsing the returned XML



Glenn,

Please note that the returned XML you provided IS valid.

 <ADStart>
  <error code="0" text="NO_ERROR" /> 
  <ticket>fe81cb7e-fd9e-411b-b3fd-b9c5729728f7</ticket> 
  </ADStart>

It has 3 tags <ADStart>, <error> and <ticket>. 

The "error" tag is empty and happens to have 2 attributes "code" and
"text"

--rmc



-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Glenn R.
McClenny
Sent: Friday, October 16, 2009 3:15 PM
To: 'HTTPAPI and FTPAPI Projects'
Subject: RE: HTTPAPI, SOAP, and parsing the returned XML

That's right, it isn't my WS, so I can't change the formatting of the
returned code.

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mohamed
Musthafa
Safarulla
Sent: Friday, October 16, 2009 2:06 PM
To: HTTPAPI and FTPAPI Projects
Subject: 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 <
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:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -
>
>


--
Thanks,
Musthafa

-----------------------------------------------------------------------
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
-----------------------------------------------------------------------