DT WebServices & Authentication
DT WebServices & Authentication
- Subject: DT WebServices & Authentication
- From: Brendan Duddridge <email@hidden>
- Date: Thu, 06 Mar 2003 16:34:30 -0700
Hi,
I9ve just recently upgraded to WO 5.2 and now I9d like to build a Web
Service using Direct To Web Services. But I9d like to limit the query to a
specific user9s records in the database. Similar to the way the Google Web
Services API works, I want to make the user pass in a unique Key that is
used to identify the user. Then, the arguments they pass in to the web
service at the same time will be used to search our database and return
those records only they are allowed to view. I want to do the same for
inserting, updating, and deleting as well, but I thought I9d start with just
searching since I9ve never programmed any web services before.
How can this be achieved without freezing the web service? I want to be able
to still modify the arguments and return values. The documentation suggests
you can have a dynamic WSDL while still adding customization, but I haven9t
been able to get that to work.
> 3However, you can create custom operations whose WSDL document is
dynamically
> generated.2
For your reference, I9m following the instructions at:
http://developer.apple.com/techpubs/webobjects/Web_Services/DtoWS/chapter_5_
section_12.html
I9m able to get the project to dump out some text in the invokeAction method
of the component, but it stops there. It doesn9t execute my test query at
all. My code is as follows:
> public Object invoke() {
> System.out.println("ContactSearch operation invoked.");
> return super.invoke();
> }
And also, when I go back into the Web Services Assistant, it says that my
component has been frozen, even though I didn9t freeze it. I guess the
Assistant is detecting that I created a component with the same name as my
WS operation in my project.
I wish there were additional documents on how Web Services and
DirectToWebServices work as it relates to WO.
Thanks,
___________________________
Brendan Duddridge
ClickSpace Interactive Inc.
Calgary & Vancouver, Canada
(403) 277-5591
http://www.clickspace.com
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.