chuck-frank
asked on
Web Service with attachments
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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.
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
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
ASKER
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.
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.
how do you currently get the files after parsing the xml?
via ftp? or some other method?
BB
via ftp? or some other method?
BB
ASKER
Right now we don't have anyway for this sort of transfer. It's a completely new project/idea.
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
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
ASKER
Thanks sorted.
I used this as a start point for anybody having trouble. Pretty straight forward.
http://www.123aspx.com/redir.aspx?res=32473
I used this as a start point for anybody having trouble. Pretty straight forward.
http://www.123aspx.com/redir.aspx?res=32473
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