Solved

Web Service with attachments

Posted on 2009-05-11
10
502 Views
Last Modified: 2013-11-18
Looking for information on how to setup a web service that receives attachments through either DIME attachments or other protocols. It must be in .net C#. I'm not finding many articles on what I need. Any suggestions on links/books appreciated.


0
Comment
Question by:chuck-frank
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 7

Accepted Solution

by:
badbearontour earned 500 total points
ID: 24355828
Hi there,

Have a look at 'sending serialised custom objects to a webservice'.  you'll find lots of cod eon the web. I'll post some links if i get a chance in the next few minutes

BB
0
 
LVL 7

Expert Comment

by:badbearontour
ID: 24355879
theres a decent demo and tutorial here.....

http://www.15seconds.com/issue/020903.htm

I'm assuming of course that when you say 'attachment' then you mean a custom object..

if not let me know, exactly what you are thinking of...

Regards

BB
0
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 24356051
0
2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

 

Author Comment

by:chuck-frank
ID: 24487023
Well the project stands as this:

1. vendor sends xml file.
2. we parse xml file for information
3. transfer files(pictures and documents) based on that xml from the vendor to our server.
4. save

if I can figure a way to send and receive the files the rest will be easy.


0
 
LVL 7

Expert Comment

by:badbearontour
ID: 24487195
A webservice is probably not the way to go here, for passing these files.

theres probably too many differing types and you will no doubt run into a serialisation issue somewhere with one or more of the types.

it probably should be said that the only way to pass something to a webservice is by serialising it into xml.

BB
0
 

Author Comment

by:chuck-frank
ID: 24518123
Thanks...

If anybody has any suggestions on how to perform this, it would be greatly appreciated.

I'm at the end of my rope on this one.
0
 
LVL 7

Expert Comment

by:badbearontour
ID: 24524780
how do you currently get the files after parsing the xml?

via ftp? or some other method?

BB
0
 

Author Comment

by:chuck-frank
ID: 24536595
Right now we don't have anyway for this sort of transfer. It's a completely new project/idea.
0
 
LVL 1

Expert Comment

by:sukalp
ID: 24744325
According to Microsoft a protocol called DIME may help you accomplish this.
This is illustrated here :
http://msdn.microsoft.com/en-us/magazine/cc188797.aspx
with example code here http://msdn.microsoft.com/en-us/library/ms824597.aspx

Also, this article (http://msdn.microsoft.com/en-us/library/ms996462.aspx) shows the advantages and disadvantages of using various technologies for sending attachments.

Or you may use an open source SOAP library such as PocketSOAP found here
(http://www.pocketsoap.com/pocketsoap/)
with examples for PocketSOAP implementations found here :
http://www.pocketsoap.com/samples/default.aspx
0
 

Author Comment

by:chuck-frank
ID: 24788165
Thanks sorted.
I used this as a start point for anybody having trouble. Pretty straight forward.
http://www.123aspx.com/redir.aspx?res=32473
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question