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 / February 2006

Tip: Looking for answers? Try searching our database.

Using WebService with WSE 2.0 from Visual Studio 2005 project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mathias - 07 Feb 2006 16:52 GMT
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

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.