You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Angel Todorov (JIRA)" <ji...@apache.org> on 2007/08/08 19:22:59 UTC

[jira] Created: (AXIS2-3105) WSDL generation with policies is not interoperable with WCF or JAX-WS/WSIT

WSDL generation with policies is not interoperable with WCF or JAX-WS/WSIT
--------------------------------------------------------------------------

                 Key: AXIS2-3105
                 URL: https://issues.apache.org/jira/browse/AXIS2-3105
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: kernel
    Affects Versions: nightly
         Environment: Axis2 1.3 RC3 , Windows XP , Apache Tomcat 5.5.20
            Reporter: Angel Todorov
            Priority: Critical
             Fix For: nightly


I would first like to point out that this is not exactly a bug, but it's not a new feature or improvement either. When policies are involved (such as security policies) , the Axis2 WSDL generation (when one generates the wsdl using ?wsdl on the axis servlet) puts the policies directly in the <binding> element of the WSDL. Competing stacks such as WCF and JAX-WS/WSIT both insert the policies as <PolicyReference> elements. The problem is that these two frameworks cannot cope with policies that are not put in the WSDL in this manner, i.e. as policy references. There is no concrete spec that dictates how PolicyAttachment is done in the WSDL (most if the words in the spec are MAY, SHOULD or RECOMMEND). Therefore, neither axis2 breaks the rules, nor WCF and JAX-WS. But in order for Axis2 to be interoperable and gain more popularity where WS-SecurityPolicy (for example) is concerned, I think Axis2 should change its way of generating WSDLs with policies in them. 

Thanks for your feedback in advance.

Regards,
Angel

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-3105) WSDL generation with policies is not interoperable with WCF or JAX-WS/WSIT

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi reassigned AXIS2-3105:
---------------------------------------------------

    Assignee: Deepal Jayasinghe  (was: Amila Chinthaka Suriarachchi)

hi deepal,
this is a problem with generating the wsdl file. I think this is relavent to java2wsdl module. please have a look at.

> WSDL generation with policies is not interoperable with WCF or JAX-WS/WSIT
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-3105
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3105
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: nightly
>         Environment: Axis2 1.3 RC3 , Windows XP , Apache Tomcat 5.5.20
>            Reporter: Angel Todorov
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>             Fix For: nightly
>
>
> I would first like to point out that this is not exactly a bug, but it's not a new feature or improvement either. When policies are involved (such as security policies) , the Axis2 WSDL generation (when one generates the wsdl using ?wsdl on the axis servlet) puts the policies directly in the <binding> element of the WSDL. Competing stacks such as WCF and JAX-WS/WSIT both insert the policies as <PolicyReference> elements. The problem is that these two frameworks cannot cope with policies that are not put in the WSDL in this manner, i.e. as policy references. There is no concrete spec that dictates how PolicyAttachment is done in the WSDL (most if the words in the spec are MAY, SHOULD or RECOMMEND). Therefore, neither axis2 breaks the rules, nor WCF and JAX-WS. But in order for Axis2 to be interoperable and gain more popularity where WS-SecurityPolicy (for example) is concerned, I think Axis2 should change its way of generating WSDLs with policies in them. 
> Thanks for your feedback in advance.
> Regards,
> Angel

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3105) WSDL generation with policies is not interoperable with WCF or JAX-WS/WSIT

Posted by "Angel Todorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519686 ] 

Angel Todorov commented on AXIS2-3105:
--------------------------------------

This is from the WS-PolicyAttachment specification, to which both JAX-WS (WSIT) and WCF (Windows Communication Foundation) stick:

4. Attaching Policies Using WSDL 1.1

The RECOMMENDED means of associating a Policy with a Policy Subject that has a WSDL 1.1 [WSDL 1.1] description is to attach a reference to the Policy within the WSDL component corresponding to the target Policy Subject.

WSDL 1.1 disallows the use of extensibility elements on certain elements and the use of extensibility attributes on others. However, the WS-I Basic Profile 1.1 [BP 1.1] overrules this restriction and allows element extensibility everywhere. Therefore, the Policy reference SHOULD be attached using <wsp:PolicyReference> as child element unless it is absolutely necessary to maintain the original WSDL 1.1 restriction, in which case the @wsp:PolicyURIs attribute should be used for those restricted cases.

If it is necessary to include the actual Policy Expressions within the WSDL description itself, it is RECOMMENDED that their <wsp:Policy> elements be included as children of the <wsdl:definition> element, and referenced using the mechanisms just described. Alternatively, the Policy Expressions MAY be made available through some other means, such as WS-MetadataExchange [WS-MetadataExchange].

To ensure that consumers of Policy-annotated WSDL elements are capable of processing such Policy Attachments, attachments using <wsp:PolicyReference> SHOULD be marked as a mandatory extension (e.g., with a @wsdl:required="true" attribute).

Regards,
Angel

> WSDL generation with policies is not interoperable with WCF or JAX-WS/WSIT
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-3105
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3105
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: nightly
>         Environment: Axis2 1.3 RC3 , Windows XP , Apache Tomcat 5.5.20
>            Reporter: Angel Todorov
>            Priority: Critical
>             Fix For: nightly
>
>
> I would first like to point out that this is not exactly a bug, but it's not a new feature or improvement either. When policies are involved (such as security policies) , the Axis2 WSDL generation (when one generates the wsdl using ?wsdl on the axis servlet) puts the policies directly in the <binding> element of the WSDL. Competing stacks such as WCF and JAX-WS/WSIT both insert the policies as <PolicyReference> elements. The problem is that these two frameworks cannot cope with policies that are not put in the WSDL in this manner, i.e. as policy references. There is no concrete spec that dictates how PolicyAttachment is done in the WSDL (most if the words in the spec are MAY, SHOULD or RECOMMEND). Therefore, neither axis2 breaks the rules, nor WCF and JAX-WS. But in order for Axis2 to be interoperable and gain more popularity where WS-SecurityPolicy (for example) is concerned, I think Axis2 should change its way of generating WSDLs with policies in them. 
> Thanks for your feedback in advance.
> Regards,
> Angel

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-3105) WSDL generation with policies is not interoperable with WCF or JAX-WS/WSIT

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-3105:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> WSDL generation with policies is not interoperable with WCF or JAX-WS/WSIT
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-3105
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3105
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: nightly
>         Environment: Axis2 1.3 RC3 , Windows XP , Apache Tomcat 5.5.20
>            Reporter: Angel Todorov
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>             Fix For: nightly
>
>
> I would first like to point out that this is not exactly a bug, but it's not a new feature or improvement either. When policies are involved (such as security policies) , the Axis2 WSDL generation (when one generates the wsdl using ?wsdl on the axis servlet) puts the policies directly in the <binding> element of the WSDL. Competing stacks such as WCF and JAX-WS/WSIT both insert the policies as <PolicyReference> elements. The problem is that these two frameworks cannot cope with policies that are not put in the WSDL in this manner, i.e. as policy references. There is no concrete spec that dictates how PolicyAttachment is done in the WSDL (most if the words in the spec are MAY, SHOULD or RECOMMEND). Therefore, neither axis2 breaks the rules, nor WCF and JAX-WS. But in order for Axis2 to be interoperable and gain more popularity where WS-SecurityPolicy (for example) is concerned, I think Axis2 should change its way of generating WSDLs with policies in them. 
> Thanks for your feedback in advance.
> Regards,
> Angel

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-3105) WSDL generation with policies is not interoperable with WCF or JAX-WS/WSIT

Posted by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nandana Mihindukulasooriya resolved AXIS2-3105.
-----------------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4

This fixed now. Axis2 now attach policies to the binding using policy reference elements and to the portType using wsp:PolicyURIs attributes. 

> WSDL generation with policies is not interoperable with WCF or JAX-WS/WSIT
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-3105
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3105
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: nightly
>         Environment: Axis2 1.3 RC3 , Windows XP , Apache Tomcat 5.5.20
>            Reporter: Angel Todorov
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>             Fix For: 1.4
>
>
> I would first like to point out that this is not exactly a bug, but it's not a new feature or improvement either. When policies are involved (such as security policies) , the Axis2 WSDL generation (when one generates the wsdl using ?wsdl on the axis servlet) puts the policies directly in the <binding> element of the WSDL. Competing stacks such as WCF and JAX-WS/WSIT both insert the policies as <PolicyReference> elements. The problem is that these two frameworks cannot cope with policies that are not put in the WSDL in this manner, i.e. as policy references. There is no concrete spec that dictates how PolicyAttachment is done in the WSDL (most if the words in the spec are MAY, SHOULD or RECOMMEND). Therefore, neither axis2 breaks the rules, nor WCF and JAX-WS. But in order for Axis2 to be interoperable and gain more popularity where WS-SecurityPolicy (for example) is concerned, I think Axis2 should change its way of generating WSDLs with policies in them. 
> Thanks for your feedback in advance.
> Regards,
> Angel

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org