Changed the servlet to say this and it now works,
serviceType = request.getParameter("serviceType");
--- In [email protected], "oneworld95" <[EMAIL PROTECTED]> wrote:
>
> Hi. How do you pass variables to an HTTPService call so that they can
> be read by Java? I've got this working with a URLRequest by using
> URLVariables but can't seem to get it working with an HTTPService.
> Here's my code,
>
> var params:Object = new Object();
> params.serviceType = "INITIALIZE";
>
> service.send(params);
>
> In the servlet, it's got this code in the doPost() method,
>
> serviceType = request.getParameterValues("serviceType")[0];
>
> It throws Error #2032: Stream Error. It wasn't throwing this until I
> added the service parameter. The servlet generates XML data and Flex
> is expecting E4X data. Thanks
>