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

Tip: Looking for answers? Try searching our database.

WSE 3.0 - PolicyAssertion and Attachments

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
paulo - 19 Oct 2005 11:19 GMT
Hello,

I'm starting using WSE 3.0 and I'm having trouble in finding solution to
these 2 problems:

- I have created a PolicyAssertion and I want my WebService to use it
without using a policy file. I've managed to do this on the client side, but
on the service side I'm out of ideas. The documentation on the subject only
gives examples with a policy file, but I wanted to do this without one.

- In WSE 2.0 we had SoapEnvelope.Context.Attachments where I would put
binary attachments. In WSE 3.0, can we just add binary data to the body?

Thanks in advance for any help given.

Regards,
paulo
Nathan Anderson [MSFT] - 11 Nov 2005 18:13 GMT
If you're hosting the service yourself (ie it's not in IIS/ASP.NET) you can
set the policy through code.  If it is hosted in IIS, then you'll need to go
the policy file/config route.

WSE 3 uses MTOM instead of DIME for binary data.  The simplest way to use
this is to include a byte[] in the message exchange and set the RequireMtom
property on the client to true.

Hope this helps.

> Hello,
>
[quoted text clipped - 13 lines]
> Regards,
> paulo

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.