[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Getting HTML in my response
Chris
Thanks for the reply. I am having problems defining field 'Form'. Can you help?
Thanks
Mark E. Lenz | Programmer
507.774.8266 - Direct
507.455.4100 ext. 8266 | 800.4WENGER (493.6437)
Wenger Corporation | 555 Park Drive | Owatonna MN 55060
WENGER CORPORATION
Our latest innovation – StageTek™ Staging
Learn more about Wenger Corporation
Stay Connected!
Facebook | Twitter | YouTube
Visit the Your Performance Partners Blog
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Chris Edmondson
Sent: Thursday, December 03, 2015 8:39 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Getting HTML in my response
Mark,
Here's some working code for Service Objects, hope it helps.
c* build url
> c eval url = %trim('http://' +
> c 'ws.serviceobjects.com' +
> c '/ap/AddressPlus.asmx/' +
> c 'GetAddressPlus?')
> /free
> Form = WEBFORM_open();
> WEBFORM_setVar(Form : 'Address' : %trim(adrs));
> WEBFORM_setVar(Form : 'Address2' : '');
> WEBFORM_setVar(Form : 'City' : %trim(city));
> WEBFORM_setVar(Form : 'State' : %trim(state));
> WEBFORM_setVar(Form : 'PostalCode' : %trim(zip));
> WEBFORM_setVar(Form : 'LicenseKey' : %trim(licKey));
>
> url = url + WEBFORM_getData(Form);
>
> WEBFORM_Close(Form);
> /end-free
> c* get a temp file name in the IFS
> c eval tempFile= http_tempfile() + '.xml'
> c* validate address
>
> c eval rc = http_url_get(url: tempFile)
On Wed, Dec 2, 2015 at 9:59 AM, Mark Lenz <mark.lenz@xxxxxxxxxxxxxx> wrote:
> I am sending XML to retrieve address information from Service Objects
> web service. My response coming back is in HTML. I don't know why. I
> am also getting an error:
>
>
> SetError() #66: XML parse failed at line 22, col 2: mismatched tag
>
>
> Thanks
>
>
> Mark E. Lenz | Programmer
> 507.774.8266 - Direct
>
> 507.455.4100 ext. 8266 | 800.4WENGER (493.6437)
>
> Wenger Corporation | 555 Park Drive | Owatonna MN 55060
>
> [1]WENGER CORPORATION
> Our latest innovation - [2]StageTek(TM) Staging
> Learn more about [3]Wenger Corporation
> Stay Connected!
> [4]Facebook | [5]Twitter | [6]YouTube
> Visit the [7]Your Performance Partners Blog
>
> References
>
> 1. http://www.wengercorp.com/
> 2. http://www.wengercorp.com/stagetek
> 3. http://youtu.be/vNgDvTaPQug?t=1s
> 4. https://www.facebook.com/WengerCorp
> 5. https://twitter.com/WengerCorp
> 6. http://www.youtube.com/user/wengercorp?feature=results_main
> 7. http://www.yourperformancepartners.com/
>
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -
>
>
--
Chris Edmondson
509.670.6817
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------