Update Web Service
Update Web Service
- Subject: Update Web Service
- From: Rob Myers <email@hidden>
- Date: Mon, 14 Apr 2003 15:05:03 +0100
Let's say I have the following table in my eomodel:
requestID (Primary Key)
status
priority
And I want to be able to update a row using a Direct To Web Services service, searching on requestID and changing the values of status and priority.
So for example:
requestID status priority
1 TODO 1
2 TODO 1
update requestID: 1 status: WORK priority: 10
requestID status priority
1 WORK 10
2 TODO 1
How do I do this? Creating an update service using the client and testing it gives the following exception if all three values don't match (pretty pointless for an update :-) ):
Exception:
com.webobjects.foundation.NSForwardException [org.apache.axis.AxisFault] java.lang.IllegalArgumentException: com.webobjects.eoaccess.EOGeneralAdaptorException: updateValuesInRowDescribedByQualifier -- com.webobjects.jdbcadaptor.JDBCChannel method failed to update row in database: Exception trying to invoke operation: setAnalyseDynamicsStatus
Freezing the service gives a WOUpdateOperation subclass.
Any help would be appreciated.
Thanks.
- Rob.
_______________________________________________
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.