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 <de...@gmail.com> on 2008/07/17 09:53:35 UTC

Policy serialization not correct in AxisService2WSDL11?

Hi,
   I posted this on the users mailing list, but since I got no reply I
decided to post it here too.

   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 the
generateHttpBinding(..) - the method lacks a call to
addPolicyAsExtElement(..) as in the generateSoap11Binding(..)
and generateSoap12Binding(..) methods.

Is this behaviour intentional or a bug?
As a result from this, if users deploy a service with a WSDL containing
policy references only at wsdl:service and/or wsdl:binding (http), when they
request the wsdl (using ?wsdl)
the returned WSDL does not contain any policy references.

Re: Policy serialization not correct in AxisService2WSDL11?

Posted by Sanka Samaranayake <ss...@gmail.com>.
On Thu, Jul 17, 2008 at 1:23 PM, Detelin Yordanov <de...@gmail.com>
wrote:

> Hi,
>    I posted this on the users mailing list, but since I got no reply I
> decided to post it here too.
>
>    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 the
> generateHttpBinding(..) - the method lacks a call to
> addPolicyAsExtElement(..) as in the generateSoap11Binding(..)
> and generateSoap12Binding(..) methods.
>
> Is this behaviour intentional or a bug?
>

I think it is bug which we need to fix. Please log a JIRA.

Thanks,
Sanka



>
> As a result from this, if users deploy a service with a WSDL containing
> policy references only at wsdl:service and/or wsdl:binding (http), when they
> request the wsdl (using ?wsdl)
> the returned WSDL does not contain any policy references.
>



-- 
Sanka Samaranayake
WSO2 Inc.

http://sankas.blogspot.com/
http://www.wso2.org/