axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Vladov (JIRA)" <>
Subject [jira] Commented: (AXIS2-3930) Missing policy reference serialization in AxisService2WSDL11
Date Tue, 22 Jul 2008 13:06:31 GMT


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:
>             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(..)

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:
For additional commands, e-mail:

View raw message