cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-491) in hello_world sample, cann't throw the expected exception
Date Tue, 27 Mar 2007 02:47:32 GMT

    [ 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.


Mime
View raw message