473,387 Members | 1,897 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,387 software developers and data experts.

Problem with DIME attachments

Hi all,

This problem is close to driving me insane.

Basically, I'm trying to use DIME to add an attachment to a SOAP
message and send it to the web server. The WSE 2.0 toolkit is
installed, which allows for DIME to be used and everything is set up
correctly as far as I know.

My code is:

// Create an instance of the proxy

AuthorshipAttributionClient.AAWebServiceReference. Service1
aaWebServiceInstance = new
AuthorshipAttributionClient.AAWebServiceReference. Service1();

// Create the DIME attachment
DimeAttachment attachment = new DimeAttachment("Text",
TypeFormat.MediaType, File1.PostedFile.InputStream);

// Everything is fine up to this point...

// Add the DIME attachment to the Attachments collection
aaWebServiceInstance.RequestSoapContext.Attachment s.Add(attachment);
int a = aaWebServiceInstance.UploadFile();
At the point of adding the DIME attachment, the compiler complains
that:

'AuthorshipAttributionClient.AAWebServiceReference .Service1' does not
contain a definition for 'RequestSoapContext'

For some reason, it isn't finding RequestSoapContext.
Am I missing something? I have using statements for the WSE 2.0
toolkit, so it can't be that. I just don't know why it won't recognise
it!

Any help gratefully received.

Matt
Apr 11 '06 #1
1 2152
Problem now resolved. Lord only knows what it was.

I created a new project in the solution and added the old code to it,
little by little, and it worked. Bizarre.

Matt
(rapidly losing faith in technology)

On Tue, 11 Apr 2006 18:34:56 GMT, Matt B <ma******@hotmail.co.uk>
wrote:

<snip>
At the point of adding the DIME attachment, the compiler complains
that:

'AuthorshipAttributionClient.AAWebServiceReferenc e.Service1' does not
contain a definition for 'RequestSoapContext'

For some reason, it isn't finding RequestSoapContext.
Am I missing something? I have using statements for the WSE 2.0
toolkit, so it can't be that. I just don't know why it won't recognise
it!

Any help gratefully received.

Matt


Apr 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris C | last post by:
I've been looking all around for any libraries or code for parsing dime attachments from Microsoft .NET Web Services. Any ideas? I am writing my client code on a linux box and calling SOAP web...
1
by: Espen Sletteng | last post by:
Hello all, I want to create a .NET-based web service that can accept dime-based attachments from a java (Axis)-based client. I have searched for examples that look like this scenario, but...
1
by: Levi Wilson | last post by:
I have a web service that adds a DIME attachment: public void GetFile(string filename) { SoapContext sc = HttpSoapContext.ResponseContext; DimeAttachment dimeFile = new...
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...
3
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...
2
by: Nikolay Petrov | last post by:
I have in web service which receives WSE DIME attachments as byte arrays, and stores them in files From an asp .net page i add an dime attchment to the RequestSoapContext, i check the count of...
3
by: Joseph Geretz | last post by:
I'm working on an file transfer gateway using WSE with DIME for file attachments. Our goal is to replace our direct file repository access (via windows network folder sharre) with the Web Service...
5
by: =?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= | last post by:
I have never sent attachment with webservices. Yesterday I got the challenge to redesign my solution that sends large XML structures to a Java webservice. The reason was that the Java SOAP...
1
markmcgookin
by: markmcgookin | last post by:
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.