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 "Detelin Yordanov (JIRA)" <ji...@apache.org> on 2008/07/21 15:45:31 UTC

[jira] Created: (AXIS2-3930) Missing policy reference serialization in AxisService2WSDL11

Missing policy reference serialization in AxisService2WSDL11
------------------------------------------------------------

                 Key: AXIS2-3930
                 URL: https://issues.apache.org/jira/browse/AXIS2-3930
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.4
            Reporter: Detelin Yordanov


  Hi,
I noticed that the generateService(..) method does not add any policy components present at the service policy subject.
The problem seems to be that it still uses the deprecated PolicyInclude (which is not populated), instead of the PolicySubject.

There is another missing policy serialization in generateHttpBinding(..) - the method lacks a call to addPolicyAsExtElement(..) as in the generateSoap11Binding(..) and generateSoap12Binding(..) methods.


-- 
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-3930) Missing policy reference serialization in AxisService2WSDL11

Posted by "Stefan Vladov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615631#action_12615631 ] 

Stefan Vladov commented on AXIS2-3930:
--------------------------------------

Ooops sorry guys, my post actually assumed WS-PolicyAttachment v1.2 was implemented in axis2...

> Missing policy reference serialization in AxisService2WSDL11
> ------------------------------------------------------------
>
>                 Key: AXIS2-3930
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3930
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4
>            Reporter: Detelin Yordanov
>            Assignee: Sanka Samaranayake
>
>   Hi,
> I noticed that the generateService(..) method does not add any policy components present at the service policy subject.
> The problem seems to be that it still uses the deprecated PolicyInclude (which is not populated), instead of the PolicySubject.
> There is another missing policy serialization in generateHttpBinding(..) - the method lacks a call to addPolicyAsExtElement(..) as in the generateSoap11Binding(..) and generateSoap12Binding(..) methods.

-- 
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-3930) Missing policy reference serialization in AxisService2WSDL11

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

Nandana Mihindukulasooriya resolved AXIS2-3930.
-----------------------------------------------

    Resolution: Fixed

> Missing policy reference serialization in AxisService2WSDL11
> ------------------------------------------------------------
>
>                 Key: AXIS2-3930
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3930
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4
>            Reporter: Detelin Yordanov
>            Assignee: Sanka Samaranayake
>             Fix For: 1.4.1
>
>
>   Hi,
> I noticed that the generateService(..) method does not add any policy components present at the service policy subject.
> The problem seems to be that it still uses the deprecated PolicyInclude (which is not populated), instead of the PolicySubject.
> There is another missing policy serialization in generateHttpBinding(..) - the method lacks a call to addPolicyAsExtElement(..) as in the generateSoap11Binding(..) and generateSoap12Binding(..) methods.

-- 
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-3930) Missing policy reference serialization in AxisService2WSDL11

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

Deepal Jayasinghe reassigned AXIS2-3930:
----------------------------------------

    Assignee: Sanka Samaranayake

> Missing policy reference serialization in AxisService2WSDL11
> ------------------------------------------------------------
>
>                 Key: AXIS2-3930
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3930
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4
>            Reporter: Detelin Yordanov
>            Assignee: Sanka Samaranayake
>
>   Hi,
> I noticed that the generateService(..) method does not add any policy components present at the service policy subject.
> The problem seems to be that it still uses the deprecated PolicyInclude (which is not populated), instead of the PolicySubject.
> There is another missing policy serialization in generateHttpBinding(..) - the method lacks a call to addPolicyAsExtElement(..) as in the generateSoap11Binding(..) and generateSoap12Binding(..) methods.

-- 
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-3930) Missing policy reference serialization in AxisService2WSDL11

Posted by "Stefan Vladov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615613#action_12615613 ] 

Stefan Vladov commented on AXIS2-3930:
--------------------------------------

Simply attaching the service policy on the service element in the wsdl, although being the correct place to do it, may introduce some other problems. Currently axis2 will read policy references from the port, service and types elements in the wsdl, as well as from the portType PolicyURIs extensibility attribute. Afterwards, when serializing a service wsdl, the service policy is attached on the portType with the PolicyURIs attribute. Thus if the PolicyRef is added to the service element in the wsdl as well, we'll practically have it attached twice...
Btw the PolicyAttachment specification clearly states that policies on the service subject should use the service element in the wsdl as an attachment point, whereas port, portType and binding are the possible attachment points for a policy on the endpoint subject. Clearly axis2 does not comply with this spec, but additionally there is some weird policy processing - for example policy attached on the port element in the wsdl is applied both on the service subject (WSDL11ToAxisServiceBuilder#findBinding - the second call to copyExtensibleElements) and on the endpoint subject (WSDL11ToAxisServiceBuilder#populateEndpoint).

> Missing policy reference serialization in AxisService2WSDL11
> ------------------------------------------------------------
>
>                 Key: AXIS2-3930
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3930
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4
>            Reporter: Detelin Yordanov
>            Assignee: Sanka Samaranayake
>
>   Hi,
> I noticed that the generateService(..) method does not add any policy components present at the service policy subject.
> The problem seems to be that it still uses the deprecated PolicyInclude (which is not populated), instead of the PolicySubject.
> There is another missing policy serialization in generateHttpBinding(..) - the method lacks a call to addPolicyAsExtElement(..) as in the generateSoap11Binding(..) and generateSoap12Binding(..) methods.

-- 
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] Updated: (AXIS2-3930) Missing policy reference serialization in AxisService2WSDL11

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

Nandana Mihindukulasooriya updated AXIS2-3930:
----------------------------------------------

    Fix Version/s: 1.4.1

> Missing policy reference serialization in AxisService2WSDL11
> ------------------------------------------------------------
>
>                 Key: AXIS2-3930
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3930
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4
>            Reporter: Detelin Yordanov
>            Assignee: Sanka Samaranayake
>             Fix For: 1.4.1
>
>
>   Hi,
> I noticed that the generateService(..) method does not add any policy components present at the service policy subject.
> The problem seems to be that it still uses the deprecated PolicyInclude (which is not populated), instead of the PolicySubject.
> There is another missing policy serialization in generateHttpBinding(..) - the method lacks a call to addPolicyAsExtElement(..) as in the generateSoap11Binding(..) and generateSoap12Binding(..) methods.

-- 
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-3930) Missing policy reference serialization in AxisService2WSDL11

Posted by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618331#action_12618331 ] 

Nandana Mihindukulasooriya commented on AXIS2-3930:
---------------------------------------------------

If we map to Axis2 policy subjects to WS-Policy Attachment policy subjects , I think the mapping would be like 

AxisService -> Endpoint Policy Subject
AxisOperation -> Operation Policy Subject
AxisMessage -> Message Policy  Subject

AxisBinding ->  Endpoint Policy Subject
AxisBindingOperation -> Operation Policy Subject
AxisBindingMessage -> Message Policy  Subject

So IMHO, there is no policy subject in the Axis2 description heirachy that maps to Service Policy Subject. It won't be much of a problem anyway because  most of the time policies are most meaning full in the binding and both security and RM suggests to have policies at the binding. 

And I think not serializing at the HTTP Binding was intentional, as it doesn't make much sense to have policies which most of the time deals with QoS stuff in the HTTP Binding. But it seems serializing policies if HTTP Binding has policies also has no harm. But I don't think this is something critical which should be fixed in 1.4.1.

> Missing policy reference serialization in AxisService2WSDL11
> ------------------------------------------------------------
>
>                 Key: AXIS2-3930
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3930
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4
>            Reporter: Detelin Yordanov
>            Assignee: Sanka Samaranayake
>             Fix For: 1.4.1
>
>
>   Hi,
> I noticed that the generateService(..) method does not add any policy components present at the service policy subject.
> The problem seems to be that it still uses the deprecated PolicyInclude (which is not populated), instead of the PolicySubject.
> There is another missing policy serialization in generateHttpBinding(..) - the method lacks a call to addPolicyAsExtElement(..) as in the generateSoap11Binding(..) and generateSoap12Binding(..) methods.

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