[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dumb (?) Question
Thanks Henrik, I had looked at that but, as you note, it requires more work.
The code I'm writing fits XML-INTO better than an Expat approach so I was looking to just get my hands on the buffer to save some work. Since this approach would not save me anything I guess I'll use the Expat parser anyway.
On 2012-04-29, at 7:36 AM, Henrik Rützou wrote:
> Hi Jon,
>
> you should use http_url_get_raw / http_url_post_raw and write your
> ownÂ
>
> routine. However RAW means RAW so the data you receive is not
> translated
>
> into EBCDIC:
>
> // Send HTTPAPI Request  Â
> rc = http_url_get_raw(urlÂ
> Â :1 Â Â Â Â Â Â Â Â Â Â Â
> Â :%paddr(incoming) Â Â Â Â
> ); Â Â Â Â Â Â Â Â Â Â Â Â
> p incoming     B                Â
> d         PI       10I 0      Â
> Â
> d  descriptor          10I 0 value    Â
> d  dataptr            *  value    Â
> d  datalen           10I 0 value    Â
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> Â Â
> d dataw      s        1a  based(datap)Â
> d datap      s        *        Â
> d i        s       10i 0       Â
> d data       s      65535a  varying   Â
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> Â Â
>  /free                     Â
> Â Â
> Â data = ''; Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> Â Â
> Â for i = 1 to datalen; Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> Â Â datap = dataptr + i - 1; Â Â Â Â Â Â Â Â Â Â Â Â
> Â Â data = data + dataw; Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> Â endfor; Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> Â
> Â convCCS(%addr(data)+2:%len(data):819:277); Â Â Â Â
> Â dsp = data; Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> Â dsply dsp; Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> Â Â
> Â dsply %char(%len(data)); Â
> Â dsply %char(datalen); Â Â Â
> Â return; Â Â Â Â Â Â Â Â Â Â
>  /end-free         Â
> p         e     Â
> On Sun, Apr 29, 2012 at 2:21 AM, Jon Paris
> <[1]jon.paris@xxxxxxxxxxxxxx> wrote:
>
> I am sure I've seen this in the HTTPAPI but I'm darned if I can find
> it in the protos or in the list archives. Even tried searching the
> archives with google - probably not using the right search terms but
> ...
> I want to call a SOAP service with HTTPAPI and simply have it pass
> me the XML response packet. I don't want to have it parsed by Expat,
> or placed in a file.
> Can someone point me to an example please.
> Jon Paris
> [2]www.partner400.com
> [3]www.SystemiDeveloper.com
> --------------------------------------------------------------------
> ---
> This is the FTPAPI mailing list. Â To unsubscribe, please go to:
> [4]http://www.scottklement.com/mailman/listinfo/ftpapi
> --------------------------------------------------------------------
> ---
>
> --
> Regards,
> Henrik RÃπtzou
> Â
> [5]http://powerEXT.com
> Â
> [plogofull200.png]
>
> References
>
> 1. mailto:jon.paris@xxxxxxxxxxxxxx
> 2. http://www.partner400.com/
> 3. http://www.SystemiDeveloper.com/
> 4. http://www.scottklement.com/mailman/listinfo/ftpapi
> 5. http://powerext.com/
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------