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 / March 2005

Tip: Looking for answers? Try searching our database.

Security Policy for a Specific Endpoint?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scott  Mitchell - 02 Mar 2005 05:29 GMT
It was my understanding that when specifying a security policy through
the WSE 2.0 Toolkit, I could create a policy for a specific endpoint.
That is, I could have two .asmx files in my Project and create a
security policy that applies to just one of these two files.  Is this
understanding correct?

I am a bit perplexed because I created two .asmx files, policy.asmx and
nopolicy.asmx, and configured policy.asmx to have a receive policy that
required a digitally signed UsernameToken, while I did not provide a
policy for nopolicy.asmx.  (The way I specified the policy for
policy.asmx was through the WSE 2.0 security policy wizard, specifying
the endpoint as http://localhost/DIR/policy.asmx.)

Now, in my client I create two Web References, one to each of the .asmx
files.  If I just call the Web service without adding a UsernameToken
and signing the message, I get a SOAP fault back saying that the
request did not map to the policy.  Oddly, I get this same error
REGARDLESS of what .asmx file I call.  Shouldn't my calls to
nopolicy.asmx go through without the policy check?

Thanks
Dilip Krishnan - 02 Mar 2005 06:08 GMT
This is because not every endpoint is mapped by the policy file. So the
second enpoint could not be resolved and the policy mechanism doesnt
know what policy to apply. Try adding a default policy and the error
should go away. Now on why both the requests cause the same error am
not sure. Could you post the exact WSEXXX error and the message

Rate this thread:







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.