Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2006

Tip: Looking for answers? Try searching our database.

Generate a client with policy in WSDL file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jorge - 20 Sep 2006 15:56 GMT
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
Gaurav Vaish (www.EduJiniOnline.com) - 24 Sep 2006 18:01 GMT
>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
-------------------


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.