Has anybody had any success implementing Soap with MIME? I'm trying to use SoapExtensions in order to get access to the SOAP message. I think I'm on the right path, but I can't figure out how to access the http headers in order to specify the MIME boundary.
Any suggestions?
Can you please explain in detail. Is you are trying to consume your web service and in that you are trying to use soapexceptions to see cath any error in web service? is that is what you are doing?
I'm trying to implement Soap with Attachments using MIME. I was attempting to use Soap Extensions to attach the MIME data after the SOAP packet was generated. The problem is that I need to specify the MIME boundary in the HTTP header, but I'm not sure how to
get access to the http headers since I'm just using a proxy class generated from a wsdl.
If I understood, you want to access SOAPHeaders in Client. Then, if you want to access soap headers, first in Web Service, you have to declare a class which inherits SOAP headers, then that class you can able access in the Clinet.
No, I guess I wasn't very clear. I need to specify the MIME boundary which can only be specified in the http header. So it's the http headers, not the soap headers that I need access to.
I see what you are saying! HttpMethodAttribute helps you in doing that. Check below URL for more info http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebservicesprotocolshttpsimpleclientprotocolclasstopic.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebservicesprotocolshttpmethodattributeclasstopic.asp
Those would give you starting point for you. Hope those will helps you. (Basically it's part of HTTP method)
"If an XML Web service client calls an XML Web service method using HTTP-GET, ReturnFormatter must be set to XmlReturnReader and ParameterFormatter set to UrlParameterWriter. XML Web service clients invoking a XML Web service using HTTP-POST must set ReturnFormatter
to XmlReturnReader and ParameterFormatter to HtmlFormParameterWriter." It seems like I don't have much flexibility in what I can do with the HttpMethodAttribute. I was thinking that I could subclass the UrlParameterWriter, but msdn says that that class "supports
the .NET Framework infrastructure and is not intended to be used directly from your code". Am I missing an obvious way to use HttpMethodAttribute in order to get at the http headers?
freakboy
Member
20 Points
4 Posts
MIME with Soap
Aug 01, 2003 03:34 PM|LINK
SreedharK
All-Star
18571 Points
3119 Posts
MVP
Re: MIME with Soap
Aug 01, 2003 10:32 PM|LINK
http://www.w3coder.org
weblog http://weblogs.asp.net/skoganti
freakboy
Member
20 Points
4 Posts
Re: MIME with Soap
Aug 03, 2003 04:02 AM|LINK
SreedharK
All-Star
18571 Points
3119 Posts
MVP
Re: MIME with Soap
Aug 03, 2003 11:58 AM|LINK
http://www.w3coder.org
weblog http://weblogs.asp.net/skoganti
freakboy
Member
20 Points
4 Posts
Re: MIME with Soap
Aug 04, 2003 01:24 AM|LINK
SreedharK
All-Star
18571 Points
3119 Posts
MVP
Re: MIME with Soap
Aug 04, 2003 03:24 AM|LINK
http://www.w3coder.org
weblog http://weblogs.asp.net/skoganti
freakboy
Member
20 Points
4 Posts
Re: MIME with Soap
Aug 04, 2003 02:26 PM|LINK