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