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

Re: HOw to save the response of http_url_post_stmf_xml to the IFS.



Hi Nicolas,

Instead of calling http_url_post_stmf_xml(), call http_url_post_stmf(). 
  It will send the same file, in the same manner, to the HTTP server. 
When it receives the response, it'll save it to a stream file in the 
IFS, and will not attempt to parse the XML.

Then, once that has completed successfully, call http_parse_xml_stmf(). 
  This will parse the XML in the stream file you just downloaded (it 
uses the same 'Incoming' routine that the other HTTPAPI parsing code does).

This way, you have the XML file on disk.

You may have to update HTTPAPI to a newer version to do this.  I don't 
remember exactly when these features were added, and 1.12 is extremely 
out of date.


Nicolas Machado wrote:
> Hi Scott,
> I'm using this procedure because I found it very clear to write the XML 
> to the IFS before consuming the web service.
> I was very confortable using the procedure "Incoming" to process the XML 
> in the response.
> 
> 
> But now the XML in the response are getting much more complex, so is 
> there any way to save the responso to IFS so I can process later?
> Or may be to save a Reponse Log.
> 
> And maybe I can process the ifs file with the XML-INTO new opCode .
> 
> Best Regards
> PS: My HTTP_API version is : HTTPAPI Ver 1.12 released 2005-08-12
> 
> 

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