This content has been marked as final.
Show 3 replies
-
1. Re: Getting handle of the original XML message in JAX-WS
jimpo Aug 29, 2008 7:03 AM (in response to jimpo)As an example, web service request that contains
<vac:archiveDecision> <vac:employeeNumber>123</vac:employeeNumber> <vac:decision> <foo> dsadsa </foo> <bar> <baz>asdasd</baz> <baz2>asdasd</baz2> </bar> </vac:decision> </vac:archiveDecision>
Should be mapped into Java objectclass Some { int employeeNumber; String decision }
with valuesemployeeNumber = 123, decision = "<vac:decision><foo>dsadsa</foo><bar><baz>asdasd</baz><baz2>asdasd</baz2></bar></vac:decision>"
-
2. Re: Getting handle of the original XML message in JAX-WS
jimpo Aug 29, 2008 7:53 AM (in response to jimpo)guess I should give wscompile a JAXB binding xml that defines this kind of mapping.
I can't figure out how to construct this binding.xml. How do I define a mapping which maps ComplexType 'archiveDecisionType's element 'decision' into a String containing the element's xml? Any examples? -
3. Re: Getting handle of the original XML message in JAX-WS
jimpo Sep 1, 2008 3:55 AM (in response to jimpo)Also, binding to a String is not a necessity. I could bind to a Document or an Element as well. As long as I can extract the xml easily, ie. not binding into a group of java objects.