dcsimg
How do I define the schema so I can set the elements value to nothing?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Paul_Barber
Posted On:   Tuesday, September 27, 2005 09:54 AM

Using Apache AXIS 1.2 and have an operation that updates a database. The elements in the request message are of a number of types: xs:boolean, xs:date, xs:string (many of which are enumerations). Have the requirement to "clear out", or "erase", or "set to null or nothing" these elements after they've already been set.

The business example would be if a 'deceased date' was accidentally entered into the database and when the mistake was discovered how would the consumer of the web service send the request to clear out the value?

Re: How do I define the schema so I can set the elements value to nothing?

Posted By:   Milan_Boruvka  
Posted On:   Tuesday, September 27, 2005 01:19 PM

Hi there.

You need to distinguish between two types of operations: INSERT(UPDATE) and DELETE.


To distinguish between these two operations you can


a) use different operation names in service descriptin (WSDL)


or


b) specify for example attribute "delete=true" on the outgoing message element to give a signal to consumer that this data should not be updated but removed...


Milan

About | Sitemap | Contact