I have a concern on how to deal with the situation which I have..
I want to consume/send soap messages for any given wsdl file, in a generic approach without having to import packages for every wsdl's generated code. I think this is logically possible since we have the wsdl document and we know how to construct the message based on the given input.. For example,
Process: Generic XMLBeans processor to send soap messages. I am looking for a process or approach which allows me to use wsdl information which can be used to navigate through the xmlbean object without really importing the real package of the generated source.. Something like reflection..
Output: SOAP message with below format .. Tags will be taken from the wsdl file:
I have other question.. Here is my requirement: Want to build POJOs from a servlet and then use XML binding to construct my xml to be sent via web service. Also, I want to receive xml data using an http client to consume xml data then bind them to POJOs.
Performance is an important issue.. I would like to convert xsd schema to Java classes so that it can be used for binding. Xsd can be changed from time to time and this should be dynamically detected.
I am trying to generate classes from xsd file using below code: URL url = new URL("http://url/OSWOService.xsd"); SourceGenerator srcGen = new SourceGenerator(); srcGen.setVerbose(true); srcGen.generateSource(new InputSource(url.openStream()), "test");
Do you know if there is any sample example for this?
Error: NullPinterException at java.util.Hashtable.put(Unknown Source) at org.exolab.castor.builder.BuilderConfiguration.setLocationPackageMapping(BuilderConfiguration.java:618) at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:702) at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:651)
Basically, I want to dynamically parse the document/literal soap response into Java classes since the schema can be changed. Also, I want to use classes to build up the document/liertal request.. Is there a technology to help resolving this?
I need to write the client part of a web service to consume a document/literal xml file. However, I need to be able to validate my variables against nillable,types of the xml element. also, important to mention that the xml content may change from time to time based on administration decision on the server side.. What shall I use.. DII or Dynamic proxy ?
Since the wsdl can be changed depending on the service configuration on server side and since fields can be removed or added based on administration decisions and since I want to use generic JAX-RPC client to parse any such xml and not only for specific table.. I am thinking to use DII but what would be the best approach to attack this situation.
I beleive that this forum is the best on the net and I hope you can help me taking the best decision.. please and thanks in advance.
Examples or links are welcome..
[ November 05, 2008: Message edited by: Amer Seifeddine ] [ November 05, 2008: Message edited by: Amer Seifeddine ]