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

RE: Size file XML



   This doesn't look to be very private information although you might be
   hitting an internal server...Please post the program code and someone
   here can pretty quickly help with what we see. Sometimes the debug is
   useful as well.


   Reply to list please. That is how everyone benefits.



   From: Giel van der Merwe [mailto:Giel.vanderMerwe@xxxxxxxxxx]
   Sent: Tuesday, April 29, 2014 1:03 AM
   To: xxx,xxx,xxx
   Subject: RE: Size file XML


   I have been on leave for the last week and am only now starting to look
   at this again,
   When calling this:
   http_url_post_raw
   I get an http error:
   recvdoc: saveproc: Not all data was written!
   I will have to gebug this proc to try and understand the real problem
   Giel van der Merwe
   -----Original Message-----
   From: [1]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
   Klement
   Sent: 17 April 2014 08:24 PM
   To: [2]ftpapi@xxxxxxxxxxxxxxxxxxxxxx
   Subject: Re: Size file XML
   Hello,
   Can you explain a bit of why getting 101 results will "blow you out of
   the water"? I understand that it's causing you problems, but I don't
   understand exactly which problems or why. Perhaps your program is
   loading the results into an array that has only 20 elements, so you
   need to skip the other 81? If so, why not just skip them? Or is the
   problem the amount of time it takes to send over the network? But that
   seems unlikely as the data doesn't look very big.
   Please clarify.
   On 4/17/2014 7:34 AM, Giel van der Merwe wrote:
   > [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.
   [3]http://vmisfiisintrac/Avis.WebServices.Mapit/GisService.asmx/Search?
   s1=MONTE%20CASINO&s2=SANDTON&type=Point&countryCode=ZAF
   > 2. [4]http://www.avis.co.za/
   >
   >
   >
   >
   ----------------------------------------------------------------------
   > - This is the FTPAPI mailing list. To unsubscribe, please go to:
   > [5]http://www.scottklement.com/mailman/listinfo/ftpapi
   >
   -----------------------------------------------------------------------

References

   1. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   2. mailto:ftpapi@xxxxxxxxxxxxxxxxxxxxxx
   3. http://vmisfiisintrac/Avis.WebServices.Mapit/GisService.asmx/Search?s1=MONTE%20CASINO&s2=SANDTON&type=Point&countryCode=ZAF
   4. http://www.avis.co.za/
   5. 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
-----------------------------------------------------------------------