Hi,
I'm currently doing some investigation considering the use of web services (BPEL) as a complete application backend.
The application should contain a pojo facade which communicates with some web service proxies.
I generated my domain objects by using the JAXB Compilation option in JDeveloper. By using that, a
java class can be generated
based on an XSD. Disadvantage of this use, seems to be the fact that the ObjectFactory class, generated by JAXB, is overwritten
each time I create java classes from an XSD.
Q1: Is there a solution to prevent the ObjectFactory class to be overwritten? I also could decide not to use it.
After the domain objects are created, I want to
call the actual webservice and
receive the response by using the JAXB marshaller
and unmarshaller. Problem here is:
Q2: How do I (manually?) create a proxy which calls the web service, by using the domain objects generated by JAXB?
(I dont have any experience in using webservice)
Q3: An important requirement is that it needs to be simple to switch from several environments (eg from development to
test). How
can I fulfill this requirement in a nice, solid solution?
Any tips working with web services as the backend layer are welcome!
Thanks in advance,
Koen