Link to home
Start Free TrialLog in
Avatar of cofactor
cofactor

asked on

null value

I want to send a soap request <s:deptID/> .

what value I should set in java? shall I set null value in VO for this ?
 setdeptID(null) ?
Avatar of girionis
girionis
Flag of Greece image

It depends on how it's defined in the xsd and what type it is. But in general you could do

DeptID deptid = new DeptID(); // empty element
setdeptID(deptId);

Open in new window


or in case it's a String

setdeptID("");

Open in new window


Setting it to null will remove it completely from the XML.
Avatar of cofactor
cofactor

ASKER

>>>It depends on what type it is

its a String.
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Excellent