manish_singh
17 years agoOccasional Contributor
how to disable from xml elements if...
My problem..
Im making test for our webservices.Im doing it with my jdbc datasource .
In my test case
I hav put all the properties from the datasource in my request method.
But some field are optional and for that i put in my corrosponding database fields blanks(null).
When im running the test,At the property where the corrosponding data in null in database, It is sending the ${propery field..} to my request.In my response im getting errors(number format exp or date time exp..)coz it is now seeing the ${property field} instead null.
My Question is How it can be done that elements in the soap request are removed when the corrosponding field is null in database and only request with filled fields proceed???
I think this the the best way to solve this problem(or if there is other way??) but can someone tell how it can be done?
Regards
Manish
Im making test for our webservices.Im doing it with my jdbc datasource .
In my test case
I hav put all the properties from the datasource in my request method.
But some field are optional and for that i put in my corrosponding database fields blanks(null).
When im running the test,At the property where the corrosponding data in null in database, It is sending the ${propery field..} to my request.In my response im getting errors(number format exp or date time exp..)coz it is now seeing the ${property field} instead null.
My Question is How it can be done that elements in the soap request are removed when the corrosponding field is null in database and only request with filled fields proceed???
I think this the the best way to solve this problem(or if there is other way??) but can someone tell how it can be done?
Regards
Manish