[ 
https://issues.apache.org/jira/browse/AXIS2-5215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174206#comment-13174206
 ] 

Vilnis Termanis commented on AXIS2-5215:
----------------------------------------

Thank you for detailed explanation.

So if I understand correctly, if I have a client which only supports WSDL 1.1 
my only (correct) option is to change the function from void to e.g. boolean 
and just have a simple "return true;"?

I don't quite understand the last sentence however. I thought it correctly 
picks up the functions as "InOut" rather than "InOnly" so I don't have to 
explicitly add RPCMessageReciver for individual functions?

Finally, given your analysis, should I close this issue?
                
> wsdl:fault tag missing for soap bindings in wsdl for In-Only POJO
> -----------------------------------------------------------------
>
>                 Key: AXIS2-5215
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5215
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.6.1, 1.7.0
>         Environment: Tomcat 6, JDK 1.6.0_26
>            Reporter: Vilnis Termanis
>              Labels: exception-handling, in-only, pojo
>
> Procedure:
> 1) Create POJO service with non-returning function which throws an exception, 
> e.g.:
> public class ExampleService { public void testFunction(String something) 
> throws Exception { throw new Exception("testing123"); }}
> Include RPCInOnlyMessageReceiver & RPCMessageReceiver in <messageReceivers> 
> tag (services.xml)
> 2) Check runtime-generated wsdl (e.g. ../axis2/services/ExampleService?wsdl)
> 3) Call testFunction() from client (e.g. PHP's SoapClient) via soap binding
> 4) Explicitly define testFunction() as "InOnly" in services.xml:
>  <operation name="testFunction"><messageReceiver 
> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" /></operation>
> 5) Repeat steps 2 & 3
> Result:
> 2) <wsdl:fault> tag missing for both Soap (1.1 & 1.2) bindings (only appears 
> for http)
> 3) Since wsdl doesn't contain fault tag for soap bindings, soap clients 
> ignore the exception
> 5) <wsdl:fault> now appears for all bindings, as expected

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to