Wouldn't MAXRESULTSIZE be referring to the size of the result back from the @URL command
rather than its arguments?

Stefan

At 12:57 PM 2/8/2008, you wrote:
OK, it always helps to check out the "wisdom of the ages" (e.g., the Witango forums)

<@URL LOCATION=location [BASE=base] [USERAGENT=useragent] [FROM=from]
[ENCODING=encoding] [USERNAME=username] [PASSWORD=password]
[POSTARGS=postarglist] [POSTARGARRAY=arrayvariable]
[WAITFORRESULT=true|false] [DETAILEDRESPONSE=true|false] [MAXRESULTSIZE=size]>

Notice the maxresultsize argument.

The MAXRESULTSIZE argument is what you want to use to fix this. (This is from the 5.5 online manual)


On Feb 8, 2008, at 12:25 PM, Chuck Lockwood wrote:

Robert,

I pasted that xml in from their example. I understand the "one liner", thanks!

It is definitely the length of the GET that's causing the problem. I can reliably recreate it by sending 2000+ character packets.

Of course this problem arises the Friday before a Monday site launch, just my luck! So I guess the client can only book one hotel room at a time until I figure out a solutionÂ….

Chuck Lockwood
President

<image001.jpg>
............................................

309 Main Avenue
Hawley, Pa 18428
(P) 570.226.7340
(F) 570.226.7341
<http://www.lockdata.com/>www.lockdata.com


----------
From: Robert Garcia [<mailto:[EMAIL PROTECTED]>mailto:[EMAIL PROTECTED]
Sent: Friday, February 08, 2008 11:14 AM
To: <mailto:witango-talk@witango.com>witango-talk@witango.com
Subject: Re: Witango-Talk: <@URL> + XML

That xml is not going to work in a get argument. must be one line, like:

<@assign local$xml "<root><node1>data</node1><node2>data</node2></root>">

<@url "<http://someurl.com/path/file.php?foo=bar&xml=>http://someurl.com/path/file.php?foo=bar&xml=<@var local$xml encoding=url>">

--

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED] - <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
<http://bighead.net/>http://bighead.net/ - http://eventpix.com/

On Feb 8, 2008, at 8:02 AM, Chuck Lockwood wrote:


Hi Scott,

Well, they don't tell me much. This is hotels.com, so there has to be a lot of people that get it to work.
I found this so far:

All requests (except Reservations) made to TravelNow.com should be made to the following URL: <http://www.travelnow.com/external/xmlinterface.jsp?cid=x&;>http://www.travelnow.com/external/xmlinterface.jsp?cid=x&; resType=hotel200631&intfc=ws&xml=z

Reservation requests MUST be made to this secure URL:
<https://www.travelnow.com/external/xmlinterface.jsp?cid=x&;>https://www.travelnow.com/external/xmlinterface.jsp?cid=x&; resType=hotel200631&intfc=ws&xml=z
   * parameter x is equal to the IAN affiliate ID assigned to your account
* parameter z is equal to the XML data TravelNow.com is responsible for processing.

<http://www.travelnow.com/external/xmlinterface.jsp>http://www.travelnow.com/external/xmlinterface.jsp?cid=1&resType=hotel200631&intfc=ws&xml=<HotelSessionRequest method='runHotelAvailabilityListQuery'>
<HotelAvailabilityListQuery>
<city>New York</city>
<stateProvince>NY</stateProvince>
<country>US</country>
<arrivalDate>08/31/2006</arrivalDate>
<departureDate>09/02/2006</departureDate>
<RoomGroup>
   <Room>
        <numberOfAdults>2</numberOfAdults>
   </Room>
</RoomGroup>
<numberOfResults>25</numberOfResults>
</HotelAvailabilityListQuery>
</HotelSessionRequest>

As usual, thanks!

Chuck

-----Original Message-----
From: Scott Cadillac [<mailto:[EMAIL PROTECTED]>mailto:[EMAIL PROTECTED]
Sent: Friday, February 08, 2008 10:32 AM
To: <mailto:witango-talk@witango.com>witango-talk@witango.com
Subject: RE: Witango-Talk: <@URL> + XML

Hi Chuck,

Unfortunately there is an unspecified limit to how long you can make a URL. GET requests were never meant to support long strings of data, thus the POST request. People try, but eventually somewhere in the URL's travels a proxy, router or gateway somewhere will start truncating the URL.

Are you sure you're interpretting the webservice's specs correctly?

Do you have any more information you can post?

Let us know, when you have time.

Scott,



On Friday, February 8, 2008 11:23am, Chuck Lockwood <<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> said:

> We are using a webservice that requires that the XML be passed in as a get,
> not a post argument (so it seems).
>
>
>
> The below works until the <@ARG testXML> gets over 2000 characters then it
> starts getting truncated.  Am I nuts or does witango do this?
>
>
>
> <@ASSIGN request$method_response VALUE="<@URL LOCATION='<@ARG
> vURL>&xml=<@ARG TestXML>'>">
>
>
>
> Suggestions?
>
>
>
> Chuck Lockwood
>
> President
>
>
>
>
> ............................................
>
> 309 Main Avenue
> Hawley, Pa 18428
> (P) 570.226.7340
> (F) 570.226.7341
>
> <http://www.lockdata.com>www.lockdata.com <http://www.lockdata.com/>
>
>
>
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to <http://www.witango.com/developer/maillist.taf>http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to <http://www.witango.com/developer/maillist.taf>http://www.witango.com/developer/maillist.taf



________________________________________________________________________
TO UNSUBSCRIBE: Go to <http://www.witango.com/developer/maillist.taf>http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to <http://www.witango.com/developer/maillist.taf>http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to <http://www.witango.com/developer/maillist.taf>http://www.witango.com/developer/maillist.taf

--------------
Dale Graham, PhD
Technical Manager, NIDB
NIH Intramural DataBase
Annual Reports, NIH Bibliography, Scientific Directory
<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]





________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

=====================================================
Database WebWorks: Dynamic web sites through database integration
http://www.DatabaseWebWorks.com

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to