This discussion is archived
2 Replies Latest reply: Nov 26, 2012 10:06 AM by 800411 RSS

Add variables into WS class

800411 Newbie
Currently Being Moderated
I have java bean classes generated by ws-import from a wsdl
Can I modify the classes, adding a variable to mark something when I load them from database, but it won't be sent to SOAP?
  • 1. Re: Add variables into WS class
    jtahlborn Expert
    Currently Being Moderated
    you can do that, but it makes project maintenance very difficult as you will lose any modifications if you ever need to generate those classes again. in my current projects, we never actually check-in the generated classes, only the schemas. generating the classes happens as part of the build cycle.
  • 2. Re: Add variables into WS class
    800411 Newbie
    Currently Being Moderated
    jtahlborn wrote:
    you can do that, but it makes project maintenance very difficult as you will lose any modifications if you ever need to generate those classes again. in my current projects, we never actually check-in the generated classes, only the schemas. generating the classes happens as part of the build cycle.
    Thank for great advice
    I will write a wrapper instead

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points