aspose file tools*
The moose likes Web Services and the fly likes How to include Authrozitaion information in a WSDL file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to include Authrozitaion information in a WSDL file " Watch "How to include Authrozitaion information in a WSDL file " New topic
Author

How to include Authrozitaion information in a WSDL file

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

I am depending on Authorization feature of SOAP for my webservice.

Means that i want to have something like this in my WSDL file :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/">
<soap:Header>
<AuthHeader xmlns="http://tempuri.org/">
<UserName>jeff</UserName>
<Password>imbatman</Password>
</AuthHeader>
</soap:Header>
</soap:Envelope>

How can i associate this with my Webservice now ??

Please help .

Thank you .


Save India From Corruption - Anna Hazare.
Hany Shafik
Ranch Hand

Joined: Jun 21, 2008
Posts: 80
You can declare using WSDL that your webservice require the bellow header as part of it's soap message.

For example you can edit your WSDL to include the following or you can configure your tool to generate a WSDL that is similar to the following

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Have you considered WS-Policy?
Using the Metro libraries on the client side, the client will automatically interpret any WS-Policy elements in the WSDL.
Best wishes!
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you i am not about bothered about the WSDL file as it will be automatically generated by the server

I am implementing security to my webmethod by using @RolesAlowed


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to include Authrozitaion information in a WSDL file