• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Update Web Service
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Update Web Service
      • From: Rob Myers <email@hidden>
  • Prev by Date: Re: url
  • Next by Date: WOFileUpload Error After Change To 5.2
  • Previous by thread: Re: url
  • Next by thread: Re: Update Web Service
  • Index(es):
    • Date
    • Thread