Event though it is an update call, is the web service returning anything
to the client?

 

Also, add a FaultEvent listener.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of mailamannow
Sent: Thursday, April 03, 2008 4:39 AM
To: [email protected]
Subject: [flexcoders] WS call returning error from Flex 2

 

Hi

I m trying to store data into database using Simple Pojo based Web
Service, deployed in Axis. The Web Service is successfully storing
string data, but is returning the following error when strring, date,
long, and int values are sent as a request.
The error goes like this:

FaultEvent fault=[RPC Fault faultString="HTTP request error"
faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error
#2032: Stream Error. URL:
http://localhost:80/axis2/services/servicename
<http://localhost:80/axis2/services/servicename> "]. URL:
http://localhost:80/axis2/services/servicename
<http://localhost:80/axis2/services/servicename> "]
messageId="D9765452-E4A1-C8DF-3739-136322F8C57C" type="fault"
bubbles=false cancelable=true eventPhase=2]

I found something related that has been reported as a bug to Adobe and
has its status "Closed".

Here is the simple code used to send data to web service named "WS"

/* "someString1", "mob" below are of type "TextInput", while "date" is
a "DateField" */

----------------------------------------------------------

WS.addEventListener(ResultEvent.RESULT, errorHandleFunction);
WS.addRecord.request.someString1 = someString1.text.toString();

WS.addRecord.request.mob = mob.text.toString() + "l";
WS.addRecord.request.age = age.text.toString();
WS.addRecord.request.someDate = date.selectedDate;
WS.addRecord.send();
----------------------------------------------------------

/* "l" is suffixed to mobile since the Pojo web service has a
corresponding long data type */

what could be the problem for such an error?

 

Reply via email to