|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Consume Web Map Service (WMS) with VB6Hi All:
Anyone have any experience using WMS in VB6? I'm new to WMS and have no experience at all in this area. I have access to a wms server, and I can easily load the images in IE using a http request, but I was wondering how to comsume and display the images in a VB6 app? Doug. I was able to consume the WMS using the webbrowser control,
but now I need to extract the map image from the web document; anyone know how to do that? Doug. Show quoteHide quote "Douglas Marquardt" <no_spam@dummy.com> wrote in message news:%23usQ5WoTGHA.2156@tk2msftngp13.phx.gbl... > Hi All: > > Anyone have any experience using WMS in VB6? > I'm new to WMS and have no experience at all in this area. > > I have access to a wms server, and I can easily > load the images in IE using a http request, > but I was wondering how to comsume and display the > images in a VB6 app? > > > Doug. > > Hi Doug,
SOAP is where it's at. microsoft.public.msdn.soaptoolkit Stan Shultes wrote an article for VSM on the subject. See: Create and Consume XML Web Services Create a simple Web service in VB.NET, and build a VB6 desktop client. (http://www.fawcette.com/vsm/2002_07/magazine/columns/gettingstarted/) Easier, though (IMO) using .NET. Web services and .NET go together. Dick -- Richard Grier, MVP Hard & Software Author of Visual Basic Programmer's Guide to Serial Communications, Fourth Edition, ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004. See www.hardandsoftware.net for details and contact information. Hi Dick:
As it turns out, a simple API call is all I needed. Because of the way the WMS request is formatted/handled, I can download the image directly to disk using the same api call that Veign uses to extract images from HTML documents: Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" _ (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, _ ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long I tried the same thing with the Microsoft terraserver and it works as well. Doug. Show quoteHide quote "Dick Grier" <dick_grierNOSPAM@.msn.com> wrote in message news:OvwZxXrTGHA.4300@TK2MSFTNGP14.phx.gbl... > Hi Doug, > > SOAP is where it's at. microsoft.public.msdn.soaptoolkit > > Stan Shultes wrote an article for VSM on the subject. See: Create and > Consume XML Web Services > Create a simple Web service in VB.NET, and build a VB6 desktop client. > (http://www.fawcette.com/vsm/2002_07/magazine/columns/gettingstarted/) > > Easier, though (IMO) using .NET. Web services and .NET go together. > > Dick > > -- > Richard Grier, MVP > Hard & Software > Author of Visual Basic Programmer's Guide to Serial Communications, Fourth > Edition, > ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004. > See www.hardandsoftware.net for details and contact information. > > Hi Doug,
I haven't actually tried the MP Webservice. I did attempt to signup for a trial/developer account (or whatever it was called), but something went wrong (MS Blackhole?), and I haven't gotten back to it. Licensing for it is a real bugaboo (IMO). Regards, Dick -- Richard Grier, MVP Hard & Software Author of Visual Basic Programmer's Guide to Serial Communications, Fourth Edition, ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004. See www.hardandsoftware.net for details and contact information. "Douglas Marquardt" <no_spam@dummy.com> wrote in message Have you look into the SOAP toolkit at all? I would think it would do what news:%23usQ5WoTGHA.2156@tk2msftngp13.phx.gbl... > Anyone have any experience using WMS in VB6? > I'm new to WMS and have no experience at all in this area. > > I have access to a wms server, and I can easily > load the images in IE using a http request, > but I was wondering how to comsume and display the > images in a VB6 app? you want. No I haven't... but I will.
I am able to view the image in the webbrowser control... you wouldn't happen to know how to get the image out of the control document? Doug. Show quoteHide quote "Jeff Johnson [MVP: VB]" <i.get@enough.spam> wrote in message news:efdWqypTGHA.4600@TK2MSFTNGP11.phx.gbl... > > "Douglas Marquardt" <no_spam@dummy.com> wrote in message > news:%23usQ5WoTGHA.2156@tk2msftngp13.phx.gbl... > > > Anyone have any experience using WMS in VB6? > > I'm new to WMS and have no experience at all in this area. > > > > I have access to a wms server, and I can easily > > load the images in IE using a http request, > > but I was wondering how to comsume and display the > > images in a VB6 app? > > Have you look into the SOAP toolkit at all? I would think it would do what > you want. > > I noticed Veign's post in another and low and behold --
he has code on his web site to extract images from the document! Thanks Veign! Doug. Show quoteHide quote "Douglas Marquardt" <no_spam@dummy.com> wrote in message news:eo2xehqTGHA.4864@TK2MSFTNGP12.phx.gbl... > No I haven't... but I will. > > I am able to view the image in the webbrowser control... > you wouldn't happen to know how to get the image > out of the control document? > > Doug. > > "Jeff Johnson [MVP: VB]" <i.get@enough.spam> wrote in message news:efdWqypTGHA.4600@TK2MSFTNGP11.phx.gbl... > > > > "Douglas Marquardt" <no_spam@dummy.com> wrote in message > > news:%23usQ5WoTGHA.2156@tk2msftngp13.phx.gbl... > > > > > Anyone have any experience using WMS in VB6? > > > I'm new to WMS and have no experience at all in this area. > > > > > > I have access to a wms server, and I can easily > > > load the images in IE using a http request, > > > but I was wondering how to comsume and display the > > > images in a VB6 app? > > > > Have you look into the SOAP toolkit at all? I would think it would do what > > you want. > > > > > >
AND Operator and Currency data type
Convert HTML to text "Save As" question & file extensions Obtain MCSE certificaiton without exams(Pay after check results)100% passing gaurantee Adding treeview programacticlly Vendor ActiveX control Syntax Error - Missing Operator - When Using Date ! Refactoring add-in Will a P&D packaged DLL (DLLSelfRegister) be registered correctly on all OS's? 3 problems |
|||||||||||||||||||||||