For debugging WebServices, I user a tool like SOAP UI
(http://www.soapui.org/  -- They have a free version, and I'd install
the stand-alone one, not the eclipse plug-in).  It allows you to send
test SOAP Envelopes to the Server, and to view the responses.  It also
has functionality that allows you to validate your Requests and
Responses to/from the server.

Most likely, what you're receives in your Flex application is some
random error from the server, like an invalid Soap response being
received.  

I'd turn tracing on in your FLEX application (add a <mx:TraceTarget
level=0 /> ) somewhere in the main part of your application.  Then
watch the Flex Builder output window for SOAP encoding messages and
grab the encoded soap request.  Load that text up into SOAP UI and
make a raw request to the server without even using FLEX.  This will
tell you if a) it's indeed just your server b) if the soap envelope
FLEX is creating on your behalf is formatted as the server expects.

Also, it might help to turn validation of SOAP Requests on in your
server, which I'm not sure exactly how to do in your setup.  You could
throw a generic message, or the specific validation failings when the
server receives the request.


--- In [email protected], "mailamannow" <[EMAIL PROTECTED]> wrote:
>
> 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";]. URL:
> 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