cancel
Showing results for 
Search instead for 
Did you mean: 

CREATE PROCEDURE statement [Web service] 8192 bytes length limit for all parameters

Former Member
2,750

Hello, I am testing SQL Anywhere 12.0.1.4104 and 16.0.0.1948 web client procedure. When the length of the parameters exceeds 8191 bytes the following error appears "SQLSTATE=WW052 Error Message : HTTP request failed. Status code '403 Forbidden'" SQL Anywhere 9 version works with parameters length over 1MB. Using HEADER clause to set the Content-Length I can reduse below 8192 bytes but not above. Perhaps this limitation is set in the database and I wonder whether it can be increased.

create or replace procedure "DBA"."test_post"(in "filename" char(256),in "filedata" long varchar) url 'HTTP://www.domain.com/test/test.php' type 'HTTP:POST';

test.php <? $filename = $_POST['filename']; echo "FileName : $filename"; ?>

MarkCulp
Participant
0 Kudos

There is no limitation on the length of a parameter... What is your web service definition?

Vlad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Veselin, did the answer below help you?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Try the MaxRequestSize protocol parameter: -xs HTTP(port=<port#>;MaxRequestSize=<size>