You want the XML binding in CXF. See: http://cxf.apache.org/docs/pure-xml.html
It sounds like you are doing java first. For the jaxws:endpoint config, add the bindingUri attribute set to http://cxf.apache.org/bindings/xformat I THINK that should do it. Dan On Fri November 20 2009 1:19:02 pm Kessel, Christopher wrote: > I've got a JAXWS web service setup, much like the CXF tutorials. It's > wonderful. I have some annotated classes (XmlElement, XmlAttributes, > etc). I create the Java object on the client, call the client proxy, and > poof on the server I have the resulting Java object to use in the > invoked web service method. Life is good :). > > However, I need to support a straight xml over http interface as well as > SOAP. The object XML is the same inside the soap message as the object > XML I'll be receiving in my straight xml over http support. I'd like to > hook into whatever code CXF is using to do the Java<->XML translation. > I've been looking at the JAXB stuff and it's way more complicated. It > wants me to create an ObjectFactory, create marshal() and unmarshal() > methods, etc. > > It seems like there must be a simpler way. CXF is doing this all for me > beautifully right now within the web service call so some subportion of > that is already doing the XML-to-object translation work. Is there a way > I can make us of that rather than going down the pure JAXB route which, > frankly, looks painful. > > Thanks, > Chris > -- Daniel Kulp [email protected] http://www.dankulp.com/blog
