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