You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2007/12/10 15:08:43 UTC

[jira] Created: (CXF-1277) JAXB schema validation fails for RPC

JAXB schema validation fails for RPC
------------------------------------

                 Key: CXF-1277
                 URL: https://issues.apache.org/jira/browse/CXF-1277
             Project: CXF
          Issue Type: Bug
          Components: JAXB Databinding
    Affects Versions: 2.1
            Reporter: Benson Margulies
            Assignee: Daniel Kulp


If I turn on schema validation in CXF in an RPC server, it always fails. This is because JAXB tries to validate the whole input message, and there's no schema in the wsdl for these things. It seems to me that there could be schema: they are just form-unqualified elements of the elements for the messages. Is there some reason-of-standardization why we can't just include this in wsdl we generate? If so, we could fabricate it for runtime validation, I guess.


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


[jira] Commented: (CXF-1277) JAXB schema validation fails for RPC

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550110 ] 

Benson Margulies commented on CXF-1277:
---------------------------------------

The question then is: what is the status of schema validation as a product feature. We don't document it very clearly, but it seems possible that there should be a way to turn it on that either (a) carefully does nothing for RPC services, (b) carefully validates only below the level of the parts, or (c) depends on all the schema you are discussing.


> JAXB schema validation fails for RPC
> ------------------------------------
>
>                 Key: CXF-1277
>                 URL: https://issues.apache.org/jira/browse/CXF-1277
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.1
>            Reporter: Benson Margulies
>            Assignee: Daniel Kulp
>
> If I turn on schema validation in CXF in an RPC server, it always fails. This is because JAXB tries to validate the whole input message, and there's no schema in the wsdl for these things. It seems to me that there could be schema: they are just form-unqualified elements of the elements for the messages. Is there some reason-of-standardization why we can't just include this in wsdl we generate? If so, we could fabricate it for runtime validation, I guess.

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


[jira] Commented: (CXF-1277) JAXB schema validation fails for RPC

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550105 ] 

Daniel Kulp commented on CXF-1277:
----------------------------------


I'm not sure that is possible.   With RPC, it's VERY conceivable to to have multiple operations with the same part name, but different types.   Example, the default for JAX-WS:

public Foo echoFoo(Foo f)
public Bar echoBar(Bar b)

whould result in BOTH operations having an unqualified "arg0" element, but the "type" for one op would be foo and the "type" for the other would be Bar.   

To do this, we'd basically have to have internally created schemas for each Message object.     That might work.   Not really sure though.


> JAXB schema validation fails for RPC
> ------------------------------------
>
>                 Key: CXF-1277
>                 URL: https://issues.apache.org/jira/browse/CXF-1277
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.1
>            Reporter: Benson Margulies
>            Assignee: Daniel Kulp
>
> If I turn on schema validation in CXF in an RPC server, it always fails. This is because JAXB tries to validate the whole input message, and there's no schema in the wsdl for these things. It seems to me that there could be schema: they are just form-unqualified elements of the elements for the messages. Is there some reason-of-standardization why we can't just include this in wsdl we generate? If so, we could fabricate it for runtime validation, I guess.

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