Svcutil.exe gives this warning:
The optional WSDL extension element 'Policy' from namespace 'http://schemas.xmlsoap.org/ws/2004/09/policy' was not handled.
and a team member reports a similar Java tool crashes with an exception (I don't have any details).
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:p1="urn:mycompany.com:fi:myservice" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" name="MyService" targetNamespace="urn:mycompany.com:fi:myservice">
<wsp:UsingPolicy wsdl:required="true" />
<wsp:Policy wsu:Id="OP_DoSomething" />
<wsdl:portType name="MyPort">
<wsdl:operation name="DoSomething">
<wsp:Policy>
<wsp:PolicyReference URI="#OP_DoSomething" />
</wsp:Policy>
<wsdl:input message="p1:MyRequest" />
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>
Removing the policy elements solves the problem. Any ideas why?