I have to create a .NET client of a web service generated in Java. The policy
of the web service is included in the WSDL file.
Is it possible to generate a client with the policy included in the WSDL
file? Do I have to rewrite the policy with the WSE wizard?
Here it is the policy part of the WSDL:
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:s0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" ...>
<wsp:UsingPolicy n1:Required="true"
xmlns:n1="http://schemas.xmlsoap.org/wsdl/"/>
<wsp:Policy s0:Id="Auth.xml">
<wssp:Identity xmlns:wssp="http://www.bea.com/wls90/security/policy">
<wssp:SupportedTokens>
<wssp:SecurityToken
TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1
.0#UsernameToken">
<wssp:UsePassword
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1
.0#PasswordText"/>
</wssp:SecurityToken>
</wssp:SupportedTokens>
</wssp:Identity>
</wsp:Policy>
...
Thanks
>I have to create a .NET client of a web service generated in Java. The
>policy
> of the web service is included in the WSDL file.
> Is it possible to generate a client with the policy included in the WSDL
> file? Do I have to rewrite the policy with the WSE wizard?
By client -- do you mean the proxy?
No... wsdl.exe will not be able to generate proxy classes with
policy-support.
You'll need to make use of WSE yourself.

Signature
Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.com
http://www.edujinionline.com
http://articles.edujinionline.com/webservices
-------------------