Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't update database via client webservice.  RSS feed

sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, With spring mvc 3.0.4 and hibernate 3.5.3, I am using Netbeans 7 generated ear file backend CXF web service.
The generated class mainly including a class, where the edit(..) function have been created automatically in this class.
I have tested the backend webserivce by calling edit() function from SoapUI, and it does update the database correctly at this point.

When I use a web service client within another .ear file to save the updated record to the database table, it didn't update the database table record, it leaves the record unchanged.

There is no error/exception in the log and console.

Does issue this sound familiar?

Here is a fraction of my client edit code in the controller:

Backend code as in entity.facade:

log file:
23:35:13,247 INFO [stdout] (http-- Hibernate:
23:35:13,247 INFO [stdout] (http-- update
23:35:13,248 INFO [stdout] (http-- cust_address
23:35:13,248 INFO [stdout] (http-- set
23:35:13,248 INFO [stdout] (http-- address1=?,
23:35:13,248 INFO [stdout] (http-- address2=?,
23:35:13,248 INFO [stdout] (http-- contact=?,
23:35:13,248 INFO [stdout] (http-- country=?,
23:35:13,248 INFO [stdout] (http-- email_address=?,
23:35:13,248 INFO [stdout] (http-- fax=?,
23:35:13,248 INFO [stdout] (http-- phone=?,
23:35:13,249 INFO [stdout] (http-- postcode=?,
23:35:13,249 INFO [stdout] (http-- state=?,
23:35:13,249 INFO [stdout] (http-- suburb=?,
23:35:13,249 INFO [stdout] (http-- type=?
23:35:13,249 INFO [stdout] (http-- where
23:35:13,249 INFO [stdout] (http-- address_id=?
23:35:13,253 INFO [stdout] (http-- Hibernate:
23:35:13,253 INFO [stdout] (http-- update
23:35:13,253 INFO [stdout] (http-- deliveries
23:35:13,253 INFO [stdout] (http-- set
23:35:13,253 INFO [stdout] (http-- address_id=?,
23:35:13,253 INFO [stdout] (http-- ads_source=?,
23:35:13,253 INFO [stdout] (http-- customer_name=?,
23:35:13,253 INFO [stdout] (http-- delivery_between_time1=?,
23:35:13,253 INFO [stdout] (http-- delivery_between_time2=?,
23:35:13,254 INFO [stdout] (http-- delivery_date=?,
23:35:13,254 INFO [stdout] (http-- delivery_fee=?,
23:35:13,254 INFO [stdout] (http-- driver_license_number=?,
23:35:13,254 INFO [stdout] (http-- driver_name=?,
23:35:13,254 INFO [stdout] (http-- driver_phone_number=?,
23:35:13,254 INFO [stdout] (http-- ebay_id=?,
23:35:13,254 INFO [stdout] (http-- item_name=?,
23:35:13,254 INFO [stdout] (http-- item_price=?,
23:35:13,255 INFO [stdout] (http-- notes=?,
23:35:13,255 INFO [stdout] (http-- payment_status=?,
23:35:13,255 INFO [stdout] (http-- qty=?,
23:35:13,255 INFO [stdout] (http-- third_party_driver=?,
23:35:13,255 INFO [stdout] (http-- third_party_driver_charge=?
23:35:13,255 INFO [stdout] (http-- where
23:35:13,255 INFO [stdout] (http-- delivery_id=?

Any suggestion is very appreciated.
Vijitha Kumara
Saloon Keeper
Posts: 3997
Chrome Fedora Hibernate
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First you may need to debug and see up to what point it works (i.e. any methods does not get called where you expect them to). Is the method call goes the same flow as the working scenario?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!