java - How to rename the element of SOAP respond in CXF? -
I use CXF for web services, and I want to rename return element. I have: I want to: Apply XML element annotations in the interface to the method. node type Jxb class is generated from the xsd schema, how can any idea change it?
& lt; Soaps: Envelope xmlns: Soap = "http://schemas.xmlsoap.org/soap/envelope/" & gt; & Lt; Soaps: Body & gt; & Lt; GetNodesRespond & gt; & Lt; Return & gt; & Lt; IdNode & gt; 1 & lt; / IdNode & gt; ... & lt; / Return & gt; ... & lt; / GetNodesRespond & gt; & Lt; / Soap: Body & gt; & Lt; / Soap: Envelope & gt;
& lt; Soap: Envelope xmlns: Soap = "http://schemas.xmlsoap.org/soap/envelope/" & gt; & Lt; Soaps: Body & gt; & Lt; GetNodesRespond & gt; & Lt; Node & gt; & Lt; IdNode & gt; 1 & lt; / idNode & gt; ... & lt; / Node & gt; ... & lt; / GetNodesRespond & gt; & Lt; / Soap: Body & gt; & Lt; / Soap: Envelope & gt;
@XmlElement (name = "node")
Comments
Post a Comment