Why bother with Accuterm? You can do what you want straight from the command 
line using BASIC. I'm pretty sure that Accuterm has no
capability to perform socket connections using scripts. It has VBA(Visual Basic 
for Applications) capabilities, which is nothing
like VB. You could write an XML bridge in VB or VC++ and then load it. Using a 
DDE server in the application, you can post DDE
client requests from Accuterm to the application using VBA calls. However, 
that's like building a speed bump out of glass. It'll do
the job, sort of, but it'll end up breaking at some point and cost way too much 
time and money to build in the first place.

Here's a (extremely trimmed) UPS XML tracking example I've done with cURL and 
directory Q-pointers under D3. Took me about 30
minutes to implement it.

tbuffer=<fill in this with the XML request header and document>
open 'tmp' to tmp.f else stop
filen=tracknum:rnd(100):".txt"
write tbuffer on tmp.f, filen
CMD = '!curl -s -H "Content-type: text/xml" 
https://www.ups.com/ups.app/xml/Track -d @/tmp/':FILEN
EXECUTE CMD CAPTURING OUTPUT
EXECUTE !rm -f /tmp/':FILEN
CALL XMLPARSERSUB(OUTPUT,ELEMENTS,'0')
LOCATE "TrackResponse.Shipment.Package.Activity.Status.StatusType.Description" 
IN ELEMENTS<1> SETTING VM THEN
 PACKAGEACTIVITY = ELEMENTS<3,VM>
END

 Since curl runs on just about all platforms, this is a cross-platform solution.

Glen
http://mvdevcentral.com
http://picksource.com

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, August 24, 2005 6:53 PM
> To: [email protected]
> Subject: Re: [U2] XML and Accuterm
>
>
> In a message dated 8/24/05 1:04:59 PM Pacific Daylight Time,
> [EMAIL PROTECTED] writes:
>
> << An XML request for what?  Can you give us an example of how you would use
>  that?  XML is just a blob of text so it's no different than any other text.
> >>
>
> Here is a name, look up this person's address, using an internet service.
> The internet service can read XML and respond in some way.
> I can write the XML, I just don't have any examples in Accuterm script of
> people sending and getting a response.  So I'm anticipating some sort of code 
> like
>
> Response = SendHttp(myhttpstring, wait=5 seconds, error)
> If error then quit else ProcessResponse(Response)
>
> Thats all I'm really looking for is an example of sending and receiving back
> the response.
> Thanks
> Will Johnson
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to