testing - web service test ejb3 passing as Date parameter -
my web service looks
import entities.expense; import java.math.bigdecimal; import java.util.date; import javax.ejb.ejb; import javax.jws.webservice; import javax.ejb.stateless; import javax.jws.webmethod; import javax.jws.webparam; import logic.expensesessionbeanlocal; /** * * @author nikola */ @webservice(servicename = "expensewebservice") @stateless() public class expensewebservice { @ejb private expensesessionbeanlocal ejbref;// add business logic below. (right-click in editor , choose // "insert code > add web service operation") @webmethod(operationname = "makeexpenseonce") public expense makeexpenseonce(@webparam(name = "expensename") string expensename, @webparam(name = "expenserecipient") string expenserecipient, @webparam(name = "purpose") string purpose, @webparam(name = "username") string username, @webparam(name = "expensedate") date expensedate, @webparam(name = "amount") bigdecimal amount, @webparam(name = "currency") string currency) { return ejbref.makeexpenseonce(expensename, expenserecipient, purpose, username, expensedate, amount, currency); } }
image test below
how input date in test javax.xml.datatype.xmlgregoriancalendar parameter?
afaik it's not possible pass objects webservice-tester (other strings). @ least never managed post bigintegers, instance.
Comments
Post a Comment