• 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
Re: Newbie web services with WO question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie web services with WO question


  • Subject: Re: Newbie web services with WO question
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 24 May 2006 17:11:20 -0700


On May 24, 2006, at 2:41 PM, Luigi Giannini wrote:

Hello everyones,
these are my first steps in WO then please patient ...

I try to write a simple web service connected to MS SQL srv with
WebServicesAssistant
Create the EOmodel named ObjectMed using JDBC and jtds 1.2
Create Xcode WO project with WebServicesDirect assistant
Create a WebService (named anagrafica) in WebServicesAssistant
Create an operation (named cerca) that search in the DB table named
PazientiAnagrafica
Testing the operation cerca is OK
Create an operation (named nuovoPaziente) that insert a new record (
... ops object) but I have only this frustrating message:

Exception:
com.webobjects.foundation.NSForwardException
[org.apache.axis.AxisFault] java.lang.IllegalArgumentException:
java.lang.IllegalStateException: Adaptor
com.webobjects.jdbcadaptor.JDBCAdaptor@f98f80 failed to provide new
primary keys for entity 'PazientiAnagrafica': Exception trying to
invoke operation: nuovoPaziente

What is wrong?

That looks like a JDBC error, not a WebServices one. How have you modelled the primary key for this PazientiAnagrafica entity? I have not used MS SQL server, you might need an EO_PK_TABLE? Do you see one in the database?


Personally, I would get a very simple web app to be able to do this (insert into the database) and then move it to web services.

Chuck

--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________ 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
  • Follow-Ups:
    • Re: Newbie web services with WO question
      • From: "Luigi Giannini" <email@hidden>
References: 
 >Newbie web services with WO question (From: "Luigi Giannini" <email@hidden>)

  • Prev by Date: Re: Alternative to Cookie during a Session Timeout
  • Next by Date: Re: Alternative to Cookie during a Session Timeout
  • Previous by thread: Newbie web services with WO question
  • Next by thread: Re: Newbie web services with WO question
  • Index(es):
    • Date
    • Thread