Home All Groups Group Topic Archive Search About

Consume Web Map Service (WMS) with VB6

Author
23 Mar 2006 2:26 PM
Douglas Marquardt
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.

Author
23 Mar 2006 3:13 PM
Douglas Marquardt
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.
>
>
Author
23 Mar 2006 8:11 PM
Dick Grier
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.
Author
23 Mar 2006 9:37 PM
Douglas Marquardt
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.
>
>
Author
25 Mar 2006 5:11 PM
Dick Grier
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.
Author
23 Mar 2006 5:10 PM
Jeff Johnson [MVP: VB]
"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.
Author
23 Mar 2006 6:34 PM
Douglas Marquardt
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.
>
>
Author
23 Mar 2006 6:51 PM
Douglas Marquardt
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.
> >
> >
>
>