[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to