[ 
http://issues.apache.org/jira/browse/AXIS2-1277?page=comments#action_12438901 ] 
            
Thomas, Berlinghoff commented on AXIS2-1277:
--------------------------------------------

I've simply created an Stub-object ("Test2Stub" in my example source) and used 
this for doing the operation calls:

service = new Test2Stub("http://localhost:1080/axis2/services/test2";);
...
service.operationOne(doc);
service.operationTwo(doc);


Where "operationOne" is my non-void operation and operationTwo is my 
void-operation. I've took a look to the generated stub and saw that the called 
operations are calling the "execute" operation of "OperationClient" in the end.

Cheers,

Thomas

> Exceptions of void-operations will not get delivered by the client
> ------------------------------------------------------------------
>
>                 Key: AXIS2-1277
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1277
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: Windows XP / Linux ; Java 1.5 ; Axis-1.0 and nightly 
> build
>            Reporter: Thomas, Berlinghoff
>         Attachments: exception_test.rar
>
>
> I've got the problem that exceptions thrown by a void operation are not 
> recognized by the client, while non-void operations are working well.
> Also if trying to catch the exception using code generated by the currently 
> nightly build, javac complains about the exception is never thrown in the 
> corresponding "try" statement. Prior nightly builds (as well as the official 
> version 1.0) had allowed to use a catch statements, but, as described above, 
> with no effect.
> As the operations contained in the Service skeleton state to throw the 
> exceptions in question, but a try/catch within the client is not allowed at 
> all (at least in the current nightly build) I am unsure if this is a bug or a 
> restriction of my choosed options in the WSDL document (I am using doc/lit, 
> for the case that matters).
> Cheers,
> Thomas

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to