I took a look at the source, the best I can tell is that your policy is not
in the couple default policies supported - but it is close.

http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization
http://schemas.xmlsoap.org/ws/2004/09/policy/encoding

This is a case where you need to look at the docs and the source code, as I
am not a WS-Policy user myself.

https://github.com/apache/axis-axis2-java-core/blob/master/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/PolicyEvaluator.java

https://axis.apache.org/axis2/java/core/docs/WS_policy.html

What I see happening, is that by default
http://schemas.xmlsoap.org/ws/2004/09/policy/ is part of the url of the
defaults but there is not a complete match. The docs referenced may help in
getting that configured. I suggest looking at the PolicyEvaluator init
method to see how that works.

Robert

On Fri, Oct 8, 2021 at 3:34 AM Samuele Garavaglia <samu...@gmail.com> wrote:

> Hi all,
> I’m having issues with the wsdl2java.sh script.
> I try to explain myself better:
> Everytime I try to configure a wsp or wsse assertion tag in a policy in my
> services.xml I get a warning message that says for example
>
> “org.apache.axis2.wsdl.codegen.extension.PolicyEvaluator - Cannot find a
> PolicyExtension to process (in my case)
> http://schemas.xmlsoap.org/ws/2004/09/policy type assertions”
>
> I searched on the web lots of possible solutions but I can’t resolve my
> problem. Anyone can help me through this issue that I’m having or someone
> has ever had the same problem as me?
> I don’t understand if this is a problem in the service or it is normal and
> I have to handle it in the client code.
> Thanks for your attention and your time.
> Best,
> Samuele
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
> For additional commands, e-mail: java-user-h...@axis.apache.org
>
>

Reply via email to