Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / April 2006

Tip: Looking for answers? Try searching our database.

Problem with DIME attachments

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matt B - 11 Apr 2006 19:34 GMT
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.Attachments.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
Matt B - 12 Apr 2006 01:15 GMT
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)

<snip>

>At the point of adding the DIME attachment, the compiler complains
>that:
[quoted text clipped - 11 lines]
>
>Matt

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.