Consultor Eletrônico



Kbase P106660: WSASP messenger crashes with larger QueryString size
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   7/21/2005
Status: Unverified

FACT(s) (Environment):

WebSpeed 3.x
OpenEdge 10.x

SYMPTOM(s):

WSASP messenger crashes with larger QueryString size

The following error is apparent in the browser:

Microsoft VBScript runtime
An exception occurred: 'RunScript' error -2146827781
line 368
<Application name>.asp

CAUSE:

This is a limitation of the QueryString size.

FIX:

Use FormData instead of QueryString to accomodate for the larger data as:

'// Create WebSpeed Agent

Set myAgent = Server.CreateObject("WSASP.WSAgent")
myAgent.ServiceName = "myService"

'// send orderxml into agent

' myAgent.QueryString = <parameters or variables>
myAgent.FormData = <parameters or variables>
myAgent.RunScript "Application.p"
AgentResponse = myAgent.output

'// close it up

Set MyAgent = nothing

The FormData property works like posting data which get included in the header and therefore, can handle larger data.