> Another question:  When using Webservices, does the WSDL structure
> (SOAP?) always require that I call SOAP(?) services defined 
> in the WSDL xml doc or can I get a regular XML document - I'd 
> like to drill down through an XML tree with XPATH, but if 
> this requires me to make calls like:
> 
> stockResultObj = stockservice.doCompanyInfo("any","any","macr");
> Myresult = result.company

Yes, that's how SOAP works. The WSDL document is an interface definition -
it tells SOAP clients what methods are there to call, how to call them, etc.
The SOAP client is responsible for building a SOAP envelope containing the
appropriate method call, and the SOAP server is responsible for building a
SOAP envelope containing the response of that method call.

Some SOAP services do return XML documents within their SOAP envelopes
(which are themselves XML documents, of course). But you'll always have to
call one of the services described by the WSDL file.

You can certainly use XPath expressions with the contents of the SOAP
envelope you get back, although this is usually not a good idea unless the
SOAP server returns an XML document as its response ("document/literal" vs
RPC-encoded SOAP services).
 
> And it also seems like XML files with namespaces don't play 
> nicely with Flash, or at least with xfactorstudios Xpath classes.

XPath provides the name() function which can be used to find nodes without
using the namespace prefix; I don't know if the specific classes in question
support that, though.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to