You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2007/03/27 04:47:32 UTC

[jira] Commented: (CXF-491) in hello_world sample, cann't throw the expected exception

    [ https://issues.apache.org/jira/browse/CXF-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484286 ] 

Freeman Fang commented on CXF-491:
----------------------------------

in Client.java of hello_world sample, the code
        System.out.println("Invoking greetMe with invalid length string, expecting exception...");
        try {ow
            resp = port.greetMe("Invoking greetMe with invalid length string, expecting exception...");
        } catch (ProtocolException e) {
            System.out.println("Expected exception has occurred: " + e.getClass().getName());
        } 

shows an exception should be catch since in wsld the greetMe parameter max length is 30
           <simpleType name="MyStringType">
                <restriction base="string">
                    <maxLength value="30" />
                </restriction>
            </simpleType>

But did not catch this exception


> in hello_world sample, cann't throw the expected exception
> ----------------------------------------------------------
>
>                 Key: CXF-491
>                 URL: https://issues.apache.org/jira/browse/CXF-491
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>            Reporter: Freeman Fang
>
> in Client.java of hello_world sample, the code 
> System.out.println("Invoking greetMe with invalid length string, expecting exception...");
>         try {
>             resp = port.greetMe("Invoking greetMe with invalid length string, expecting exception...");
>         } catch (ProtocolException e) {
>             System.out.println("Expected exception has occurred: " + e.getClass().getName());
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.