[cid:image001.gif@01CF5A49.11496990] Hi there all you clever people, I am sort of new to the whole XML/AS400, and I hope someone has a simple answer, I call a web service at MAPIT getting GEO(LATITUDES/LONGATUDES) codes for a specific physical address, Sometimes I get a couple of results and then all works well, but sometimes like the attached result I get 101 results, this then tends to blow me out of the water, Is there a way I can just tell the program to send me what you can, because I am only interested in the first 20 GEOCODEINFORMATION records in anyway Code: [1][cid:image004.png@01CF5A4A.128A7FA0] SOAP = '<?xml version="1.0" encoding="UTF-8"?>' + '<soap:Envelope' + ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' + ' xmlns:xsd="http://www.w3.org/2001/XMLSchema"' + ' xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' + '<soap:Body>' + '<Search xmlns="http://gis.avis.co.za">' + '<s1>'+ %trim(addr1) + '</s1>' + '<s2>'+ %trim(addr2) + '</s2>' + '<type>'+ %trim(geot) + '</type>' + '<countryCode>'+ %trim(addr3) + '</countryCode>' + '</Search>' + '</soap:Body>' + '</soap:Envelope>'; SoapAction = 'http://gis.avis.co.za/Search'; url = %trim(env)+ 'WebServices.Mapit/GisService.asmx'; if http_url_post_raw(url : %addr(SOAP) + 2 : %len(SOAP) : 1 : %paddr('INCOMING') : HTTP_TIMEOUT : HTTP_USERAGENT : 'text/xml' : %Trim(SoapAction)) =1; cnvdta = %trim(retdata); len = %len(%trim(cnvdta)); [2][cid:114041714345501902@mail40.mimecast.co.za] _______________________________________________________________________ The provisions of Sections 11,12, and 13 of the Electronic Communications and Transactions Act, 25 of 2002, in so far as e-contracting is concerned is expressly excluded and contracted out by Barloworld South Africa (Pty) Ltd ("Barloworld") and no data message or electronic communication will be recognised as having legal contractual status as per the aforementioned provisions under any circumstances. All contracts concluded by Barloworld, its Business Units, Divisions and Subsidiaries will only be legally binding and recognised once reduced to physical writing and physically signed by a duly authorised representative of Barloworld. All other provisions of the Electronic Communications and Transactions Act, 25 of 2002 are accepted. _______________________________________________________________________ Note:This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Avis and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks.Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. Thank You. _______________________________________________________________________ References 1. http://vmisfiisintrac/Avis.WebServices.Mapit/GisService.asmx/Search?s1=MONTE%20CASINO&s2=SANDTON&type=Point&countryCode=ZAF 2. http://www.avis.co.za/
Attachment:
image003.emz
Description: image003.emz
----------------------------------------------------------------------- This is the FTPAPI mailing list. To unsubscribe, please go to: http://www.scottklement.com/mailman/listinfo/ftpapi -----------------------------------------------------------------------