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

RE: Another which example to use.



Oh, I see. 
>From the documentation I have I don't see where they are returning
anything to me.(although I suppose they might return a error code if
unsucessful).  I wonder if I can just use *Null. 

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of John
Clark(Hotmail)
Sent: Tuesday, February 23, 2010 10:57 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Another which example to use. 

It is a procedure used to parse the response XML.  You can actually have
2 procedures, one that gets called at the start of each XML element, and
one that get's called on each ending element.  My example uses the
ending procedure.  If you look at EXAMPLE16, you can get an idea of how
these procedures are used.

----- Original Message -----
From: "Smith, Mike" <Mike_Smith@xxxxxxxxxxxxxxxx>
To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, February 23, 2010 10:02 AM
Subject: RE: Another which example to use.


> John,
> In your example what is 'parseresponse'?
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of John
> Clark(Hotmail)
> Sent: Tuesday, February 23, 2010 9:05 AM
> To: HTTPAPI and FTPAPI Projects
> Subject: Re: Another which example to use.
>
> Mike,
>
> I have done something almost identical to this.  Here is my code with
> your info plugged in:
>
> PostURL  = 'https://thewebsite.com/extern';
>
> PostData = 'account=xxx'
>         + '&username=xxx'
>         + '&password=xxx'
>         + '&lang=de'
>         + '&action=sendOrderExtern'
>         + '&objectno=001'
>         + '&orderid=S-1234.001AF'
>         + '&ordertext=Test';
>
> rc = http_url_post_xml(PostURL
>                      : %addr(PostData) + 2
>                      : %len(PostData)
>                      : *NULL
>                      : %paddr(ParseResponse)
>                      : *NULL);
>
> Hope this helps,
>
> John
>
> ----- Original Message -----
> From: "Smith, Mike" <Mike_Smith@xxxxxxxxxxxxxxxx>
> To: <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Tuesday, February 23, 2010 8:29 AM
> Subject: Another which example to use.
>
>
> First let me say thanks to Scott for contributing this.  This has made
> my life so much easier.  I was able to quickly get data from a vendor.
> Now I need to send data to the vendor.  Essentially I'm sending orders
> to them.
>
> Per their documentation the call should look like this.
> I pass an object number, an order id and order text.
>
> https://thewebsite.com/extern?
> account=xxx&username=xxx&password=xxx&lang=de&
> action=sendOrderExtern&objectno=001&orderid=S-1234.001AF&
> ordertext=Test
>
> I've tried to use http_url_post, but so far all I end up with is a
> HTTP/1.1 505 HTTP Version Not Supported
>
> Is http_url_post the correct approach?
>
> Thanks
>
> Mike
>
>
>
> NOTICE:  This message, including any attachment, is intended as a
> confidential and privileged communication. If you have received this
> message
> in error, or are not the named recipient(s), please immediately notify
> the
> sender and delete this message.
>
>
>
>
------------------------------------------------------------------------
> --------
>
>
>>
>
-----------------------------------------------------------------------
>> 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
>
-----------------------------------------------------------------------
>
>
>
> NOTICE:  This message, including any attachment, is intended as a 
> confidential and privileged communication. If you have received this 
> message in error, or are not the named recipient(s), please
immediately 
> notify the sender and delete this message.
>
-----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------



NOTICE:  This message, including any attachment, is intended as a confidential and privileged communication. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this message.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------