Re: Need help understanding XML handling
Re: Need help understanding XML handling
- Subject: Re: Need help understanding XML handling
- From: "Daniele Corti" <email@hidden>
- Date: Thu, 9 Aug 2007 17:32:03 +0200
2007/8/9, Daniel Brajkovic <email@hidden>:
Say I have the Authors/Books example from Apple's Docs. I want to be able to input search criteria, send that via XML to WOapp it perform a fetch based on the criteria and return an XML to the app requesting it. Also I want to be able to add/delete/edit authors and add/delete/edit books. I am tgrying this with SOAP too. I am new to making WebObjects work with other apps, but that should be obvious.
Look, I'm not an expert, so i advice you to ask also to someone else, but you can simply create a direct action for example:
/**
* This method get a parameter call <code>xml</code> and create a XmlDocument from it
*
**/
public WOActionResult xmlCommandAction()
{
String xmlStr = request().stringFormValueForKey("xml");
}
then you can create your XML file and parse it as you wish!
On Aug 9, 2007, at 10:09 AM, Daniele Corti wrote:
2007/8/9, Daniel Brajkovic <
email@hidden>:
According to Apple's website:
XML interchange
* Allows your applications to easily consume and generate XML
data streams
* Interoperates with other XML-based applications
I am still trying to figure this out with all the random info out
there but can't seem to put it together. Are there any good tutorials
that anyone knows of that can help me.
I want to be able to grab data from a WebObjects app in XML format.
I've done that. What I can't seem to figure out is how WebObjects
handles an XMLHTTPRequest that wants to post data to the webobjects
app and eventually into your database.
Wait, in WO, do you need to send or receive XML?
I think I figured out how to
do it with a JSP in between. But how does one do it directly?
A step-by-step tutorial would be great.
Dan
_______________________________________________
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
--
Daniele Corti
AIM: S0CR4TE5
Messenger: email@hidden
--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS
--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
--
Daniele Corti
AIM: S0CR4TE5
Messenger:
email@hidden--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS
--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
_______________________________________________
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