programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

<Ack>Success</Ack>

From: Jason Damisch <jasondamisch_at_yahoo.com>
Date: Sat, 3 Jun 2006 01:55:57 -0700 (PDT)

I am successful in using WinHTTP to make my calls.

Behold the Results!

<?xml version="1.0" encoding="UTF-8"?>
<GeteBayOfficialTimeResponse
xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2006-06-03T08:37:01.406Z</Timestamp>
<Ack>Success</Ack>
<Version>463</Version>
<Build>e463_core_Bundled_3016497_R1</Build>
</GeteBayOfficialTimeResponse>

So, thank you for your advice.

I would, however, like to note that one of the calls,
WinHttpOpenRequest requires three wide strings passed
to it, so I can't use PAD. I had to rewrite WIDE to
accept a buffer

: WIDE ( Z"" WideZBuffer -- WideZBuffer )
    DUP ROT ZCOUNT BOUNDS DO
    I C@ OVER H! 2+ LOOP
    0 SWAP !
    ;

Which gets used like this

CONNECTION-HANDLE @
Z" POST" pwszVerb WIDE
Z" /ws/api.dll" pwszObjectName WIDE
00
Z" https://api.sandbox.ebay.com" pwszReferrer WIDE
WINHTTP_DEFAULT_ACCEPT_TYPES
WINHTTP_FLAG_SECURE
WinHttpOpenRequest
REQUEST-HANDLE !

Maybe the last message was a little too big to ask you
to try to debug for me. I wasn't sure if I could get
WinHttp.dll to work, though.

Jason
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Sat Jun 03 2006 - 01:56:46 PDT

This archive was generated by hypermail 2.2.0 : Thu Dec 04 2008 - 03:04:21 PST