It should not be difficult. So instead of trying to find some other weird way of doing it -- which is most likely to be even more difficult because it's not natural -- makes no sense at all.
The best approach would be to try to find out what you are doing wrong that makes it difficult.
So what difficulties did you run into?
Bear Bibeault wrote:
Dilip Ganesh wrote: Because sending the object to the JSP page and populating the values for the input elements there (using any tag libraries JSTL) i found it difficult.
It should not be difficult. So instead of trying to find some other weird way of doing it -- which is most likely to be even more difficult because it's not natural -- makes no sense at all.
The best approach would be to try to find out what you are doing wrong that makes it difficult.
So what difficulties did you run into?
Ivan Krizsan wrote:Hi!
My recommendation is not to expose entities in your web services. If you do, you let middleware technology bleed into your business model which both cause coupling and mixing of concerns.
In a case like yours, I would remove everything related to web service technology from the entity classes and use the "data transfer objects" generated when creating artifacts from the WSDL.
The web service will, upon receiving a request, use the appropriate data in the request to invoke some kind of service that manages the appropriate entity.
If I have not expressed myself clearly, please do not hesitate to ask.
Best wishes!
Based on JAX-WS documentation i understand that it is using JAXB to do the databinding. When user calling my webservice for creating the new Country record i dont want the user to send the Id value and Modified Date value . So what i done is i annotated the propeties(id,modified date) inside the CountryEntity.java with @XmlTransistent annotation. So that operation is working fine.
But when i call getCountryEntityById web service method its returning CountryEntity object but that object dont have the values for ID and Modified Date property. I understand because of XMLTransistent annotation the values not getting Marshalling.
Can i change my method createCountryEntity taking parameters like (String countryName) , so that i no need to include XMLTransistent annotation in my entity classes.? or Anyother solution for this?
No operation matching request path /create is found,