473,382 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

ASP.Net, c# Web Service with WSE, Handle SOAP/DIME attachments

markmcgookin
648 Expert 512MB
Hi Folks,

Sorry if this is a bit vague, but I am REALLY struggling to find an answer to this (hopefully simple) question.

I have a web service running on a system that we are using to integrate with another system running on that box.

One of the things that I really really need is to accept a zip file from a user's system, and 2/3 strings with some details.

I am aware that we can use SOAP and DIME to attach this file to this request, and have been able to find code on MSDN to RETURN DIME attachments. But I can't seem to find any code that recieves it in the web service.

i.e.

user invokes web service by sending data and file in SOAP request and the service then goes and does things with that file then returns some data.

Can anyone help me out with how to catch and read in this file in the request?

Something like this.. but working :)

Expand|Select|Wrap|Line Numbers
  1. [WebMethod]
  2.         public string testing(string fileName)
  3.         {
  4.             string answer = "";
  5.  
  6.             if (HttpSoapContext.RequestContext.Attachments.Count > 0)
  7.             {
  8.                 answer = "Got it!";
  9.             }
  10.             else
  11.             {
  12.                 answer = "Nothing there mate...";
  13.             }
  14.             return answer;
  15.         }
  16.  
Jul 25 '08 #1
1 3275
markmcgookin
648 Expert 512MB
Is it actually possible to handle an attachment with a request and not a responce???
Jul 28 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: David Specht | last post by:
I'm having a problem with generating a proxy class for the Amazon Web Service for Merchant Integration. Per their instructions I installed WSE 2.0 and referenced the dime version of their web...
2
by: Bernard D | last post by:
Someone here wrote that MS has dropped its commitment to DIME (see link below). I could not find any other info on this from googling around. Has MS made this public anywhere? Links would be...
1
by: Ipsita | last post by:
Hi! I am trying SOAP with DIME attachments in web services. For example say, I have a file resume.pdf stored somewhere on my server. How does the web service send the file to the client, so that...
6
by: ad | last post by:
I have a compressed file in client. How could we send this compressed file (.zip) to server by web service?
3
by: flo | last post by:
hi, i have to develop a web service client (must be .net, currently i'm using c# with wse3) for a java service. the java service uses mime attachments for up- and download of files. i googled...
0
by: mercury529 | last post by:
Hello everyone. Currently the only version of Visual Studio I own is VS6. I have developed a Web Service using VC++ 6 and the Soap Toolkit 3 Microsoft deployed prior to the .NET Web Service...
1
by: blackjack2150 | last post by:
Hi. I use WSE 2.0 to call a web service method which returns some attachments together with the response. The web service can send it's attachments using either MIME format(widely used in the...
0
by: =?Utf-8?B?SGVscCBOZWVkZWQ=?= | last post by:
Hi, I am sending mail attachments thru SOAP. I am using "RequestSoapContext.Attachments.Add"; everything is working fine, but How can I set the FileName for the attachments. When I set my file...
1
by: compurhythms | last post by:
I'm having an issue calling a java-based web service from a C#/.NET 2.0 client that uses WSE 3.0. (No WCF) There is an operation on the web service that takes a single base64 encoded parameter...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.