Re: Consuming Remote XML
Re: Consuming Remote XML
- Subject: Re: Consuming Remote XML
- From: Ken - Watermark Studios <email@hidden>
- Date: Mon, 23 Aug 2010 07:03:21 -0700
Both SAX and Digester seem to be rather complicated compared to the PHP / Ajax method. With PHP I can overcome the cross-domain policy issue by creating a proxy copy of the XML document I am trying to access. Then with XPath or SimpleXML is just map the XML document to some form fields in the HTML. That's all I'm needing to do...allow a user to enter in a license number on one page, then have the application lookup the license number on a remote server that returns VERY basic XML, then map the results to form fields in my application. The idea is to make form completion very easy for the end-user because we can use their public information to fill out half of the form for them.
Also, although I am new to Web Objects, I've been programming for a few years in .NET (VB & C#) and scripting for about 10 years in PHP/HTML/_javascript_. Unfortunately, even though concepts are similar, the actual implementation of some of the code in Web Objects references is still new to me. I may need a little more explanation on some things before I fully understand.
Thanks again,
Ken
On Aug 20, 2010, at 11:20 PM, Joe Kramer wrote: +1 for Digester. I am in the midst of getting it to work on the gigantic ACORD standard for the insurance industry. I've found Digester to be pretty easy to use and works efficiently enough for our purposes.
Joe Kramer CyberApps, Inc. On Fri, Aug 20, 2010 at 4:24 PM, David Holt <email@hidden> wrote:
I used Apache Digester to do this several years ago. This message might help you:
http://www.mail-archive.com/email@hidden/msg19536.html
David
On 2010-08-20, at 4:07 PM, Ken - Watermark Studios wrote:
> So, with PHP I can use either Curl or SimpleXML to consume remote XML files, then I can navigate and parse the XML files with XPath. I have a web service that transmits simple XML objects (no WSDL). How can I consume and parse with WO? I also know how to consume a local domain XML file with JQuery as well, but the cross-domain policy keeps me from doing so with JQuery.
>
> Thanks,
>
> Ken _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ( email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ( email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden