.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Recieving Mime attachments from client side in asp .net

Posted By: Manju     Posted Date: December 16, 2008    Points:2   Category :ASP.Net
Hi can any one give me an hint on how can i access an mime attachment file from webservice. I have created an proxy class and trying to access the operation, but I am getting an error. Do I need to modify any thing in auto generated proxy class?
I have also installed WSE 2.0, but I dont know how to pass mime header.

Thanks in advance

Responses
Author: Amit Mehra             
Posted Date: December 16, 2008     Points: 5   

Hi,
You can use DIME instead of MIME. Just check out this link might be helpful to you to send / receive attachment in ASP.Net web services.

http://msdn.microsoft.com/en-us/library/ms996944.aspx

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Manju             
Posted Date: December 16, 2008     Points: 5   

Hi Amit, thanks for ur quick response.
Actually I am not writing code for web service, Web service is already there and its returning a document as mime attachment, when I invoke the service it throws an exception like expected "text\xml".. but I dont have any properties to set the mime header information. I tried to inherit the proxy class from WebServiceClientProtocol that is also not working. Do you have any idea on mime attachments?

Author: Amit Mehra             
Posted Date: December 16, 2008     Points: 5   

Hi Manju,
You need to handle multipart MIME requests, you all need to rearrange the incoming HTTP request before it reaches the Web method. Luckily, the .NET Framework provides lots of opportunities to rearrange things during the processing of HTTP requests of any type, and particularly during SOAP requests.

Check out this article

http://msdn.microsoft.com/en-us/magazine/cc302021.aspx

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Manju             
Posted Date: December 16, 2008     Points: 5   

Hi Amit,
Thanks for your information, I will test it tmrw.



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend