Hi Hans,
Yes it does, everythings works well, but the exceptions. It's a C# .net
simple webservice (input: an Int id, output : a personal class object)
We tryied yesterday in the evening with a C# coder.
His code has a
throw new SOAPException("entry not found")
we made a local WS client in C# too, to test it, and we got the
exception message "entry not found".
In flash, I tryied with the webservice and pendingcall classes, and with
the wsconnector component. I got the same result with both solutions :
When I call my service with a correct parameter, I receive the answer
and can use it.
When I call it with a wrong parameter, the C# throws the exception, but
flash got just a Server.Connection faultcode (Unable to connect to
endpoint : [asmx url])
What I said, is that I already got that problem last year with a totally
different configuration. The WS server was a Tomcat server, so services
developped in java, and the results was the same, so I think it doesn't
come from the service coding, but from flash. I called Macromedia in
February, the personn I talked with told me that he never used the
exception with webservices... I still stay at the same point....
PiR
Hans Wichman a écrit :
Hi,
just to be clear on this, PendingCall.onFault is not working for you?
greetz
hans
On 7/25/06, PR Durand <[EMAIL PROTECTED]> wrote:
I changed everything to work with the connector instead of the service
class : same result
If I right understood, an exception thrown with server should give me a
faultcode="Server" and faultstring=[the exception message], isn't it?
here I got once more a "Server.connection" faultcode, with the "unable
to connect to endpoint : [url]" string...
the service rocks with good values.
Last year, I worked with a remote Java server, now with a local .Net
server... Developpers are really different, but the results are all the
same : flash is unable to read the SOAP fault, and sends a connection
error... :(
any idea please?
thx
PiR
Josh Santangelo a écrit :
> Check out the WebServiceConnector.status event.
>
> -josh
>
> On Jul 25, 2006, at 8:12a, PR Durand wrote:
>
>> Hi List
>> Has anyone any way to receive the exceptions thrown by a webservice
>> server please?
>>
>> as it's asynchronous, the classical try...catch can't work on the
>> service method call.
>> but, as soon as the server throws an exception (the sent SOAP is a
>> correct fault soap file if I call it from a browser), I only receive
>> an event in my Log listener, saying "unable to connect to
endpoint"...
>>
>> How do you actually do to receive and interpret the server faults?
>>
>> ++
>> PiR
>> _______________________________________________
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com