Re: Web Services example projects
Re: Web Services example projects
- Subject: Re: Web Services example projects
- From: email@hidden
- Date: Thu, 24 Nov 2005 20:46:30 +1300
Hello Cara;
I agree the documentation is not very useful, but it's also do-able
to get started at a very basic level. Establishing robust
integration with your existing infrastructure might be a bit more
tricky, but simply vending a method isn't too hard.
Check out "Serialization and Deserialization of Objects" in the
"WebObjects Web Services Programming Guide" document. This gives you
an idea of what FoundationKit objects will be auto-magically
serialised/deserialised for you without any further work when a W.S.
is invoked on your system. Now make a class (FooBarWebService) in
your WOA with a public, static method on it -- let's say "doFoo()".
In the constructor of your WOA's application class, do something like
this;
WOWebServiceRegistrar.registerWebService(
"FooBar",
nz.co.foobar.project.webservices.FooBarWebService.class,
true);
Now you can pull out your WSDL from...
../cgi-bin/WebObjects/XXX.woa/ws/FooBar/doFoo?wsdl
You can usually feed this into some web services client system and
invoke the "doFoo" method using the web services client. Otherwise
you can use something like AppleScript and just make the invocation
directly (ignoring the WSDL). Some examples are shown in...
/Applications/AppleScript/Example\ Scripts/...
I hope this helps get you started.
cheers.
This seems wholly unsatisfactory to me. The documentation is dated
2005-08-11. Why is a new documentation release referring to
something that doesn't exist?
___
Andrew Lindesay
www.lindesay.co.nz
_______________________________________________
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