Skip to Content
Author's profile photo Hakan Haslaman

Web API Server 2008

If the statement is too long (browsers or web servers have a limit to how long the URI can be) you should send the statement and any parameters in the data payload of the request. Simply use http://server/adsweb/location/__query as the URI and then specify the query and parameters in the payload using the querystring and parameters keywords in the data payload. See __query Service Operation in our help documentation for more information.

If the statement has special characters like ampersands, quotes, etc you should encode the string before sending it. In Javascript we use the encode function. Other functions like encodeURI or encodeURIComponent might be more appropriate depending on what kind of data you’re sending. Other development environments than Delphi XE should have URI encode/decode functions too.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.