Hi,
In the application we have developed for our customer we download pictures
onto the web server using a web service provided by an external source. The
pictures are downloaded using Wse 2.0 and the code we use for downloading a
picture looks like this:
MyRegisteredWebServies.Service1Wse myWS = new
MyRegisteredWebServies.Service1Wse;
myWS.Get_Picture(pictureid);
System.Drawing.Bitmap bm = new
System.Drawing.Bitmap(myWS.ResponseSoapContext.Attachments[0].Stream);
Now we would like to upgrade the project to .net 2.0 and visual studio 2005
but we have no power to change the web service.
In VS 2003 a file called resources.cs was generated including the classes
Service1 and Service1Wse was generated (Service1Wse was the entry point to
the web service from my code). When I try to migrate the project to VS2005
the Service1 and Service1Wse classes are also generated but now Service1Wse
is using Microsoft.Web.Services3.WebServicesExtension.
This all seems fine but since the above way of retriving attachements that
I've been using isn't supported anymore in WSE 3.0 I can't use that. If I
don't install WSE 3.0 before the migration the Service1Wse isn't generated
so that doesn't help me either.
Could someone please show me some pointers on how to access and WSE 2.0 web
service using WSE 3.0.
Regards,
Mathias
Rémy - 07 Feb 2006 17:04 GMT
You may have a look here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/wss
_appx_interopcons_wse30.asp
Regards,
Rémy
Mathias - 08 Feb 2006 12:49 GMT
Hi,
Thanks for the answer but I'm not sure how it explains how to access a web
service with WSE 2.0 from an application developed using .net 2.0 and VS2005
(and therefore using WSE 3.0). I would especially like to know how to
download an attachment transmitted using dime.
Regards,
Mathias