On Thu, May 16, 2013 at 4:28 AM, Dave Crozier <[email protected]> wrote:

> Guys,
> I've just been asked by someone to connect to their webservices and
> consume some info. I have tried all the std demos that seem to be available
> after trawling through the interweb but can't even get a start on how to
> understand the damned thing along with Soap etc...
>
> I know Allen (if he is around) has done lots of work with web services and
> his feedback has not been complimentary to the technology at times so has
> anyone got a very simple bit of code for a web service that actually works
> to get me started. I did have a VFP examplel onto the Daily Dilbert that I
> downloaded some time ago but that is dead now for the code that I have and
> something like that would be really helpful.
>
> On most of the examples I get as far as:
>
> loWS =
> NEWOBJECT("WSHandler",IIF(VERSION(2)=0,"",HOME()+"FFC\")+"_ws3client.vcx")
>
> This does creat an loWS object but when I create the actual client.. eg
> (for one downloaded example that doesn't work):
>
> loZipWS = loWS.SetupClient("
> http://webservices.eraserver.net/zipcoderesolver/zipcoderesolver.asmx?WSDL";,
> "ZipCodeResolver", "ZipCodeResolverSoap")
>
> loZipWS comes back as ""
>
> I just don't know where it is hanging up or going wrong or even where to
> look ... eg do I need anything else SOAP wise on my system.
>
> ---------------------


Web Services are a complex issue.  In many cases the WS will present an
object to be populated and passed back.  Your zip code example expects a
string input, no big deal.

I am currently writing a WS to take my edi inbound data and present it to
my ERP system  So many trading partners and many variations on how an 850
is used is part of the joy.  Defining what is presented and what is needed
to complete a Sales Order is what my WS app fulfills.

VFP will only work with SOAP and maybe an early version, not sure on that.
 My WS is all json

I would recommend you finding out how to work your object that
you instantiate as the WS.

Your example above may have features that are one level below root of the
object.

loZipWS.??? may have all of the functionality you are looking for.  In
general that is how just about all of the java WS apps that I
have interacted with have worked.   Just because you can instantiate it
doesn't mean it will do anything until you reference a part of it's
internals.

In VisualStudio, any version, after you add the WS to your project you can
open the object explorer and see exactly what is in there, and they will
display exactly what functions are available as well as what object type
they expect.

Get very familiar with containers of containers!

-- 
Stephen Russell
Sr. Analyst
Ring Container Technology
Oakland TN

901.246-0159 cell


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CAJidMYKFSf1xWU=ae_gpiwh_y6uqvyu9whoebr44jgcq6rg...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to