@Produces programmatically

2010-08-31 Thread Muhammad Sheraz Siddiqi
Hi, I want to expose a webmethod like this: @WebMethod public List test(String output) { If(output == "xml") { //use XML Provider i.e. output XML } Else if(output == "json") { //use JSON Provider i.e. output JSON

Building the 2.2 branch, strange WSDL error

2010-08-31 Thread Benson Margulies
[INFO] Building Apache CXF WS-* Specifications System Tests [INFO]task-segment: [install] [INFO] [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}] [INFO] [remote-resources:process {execution: defaul

EPR Metadata and wsdlLocation attribute

2010-08-31 Thread Sergey Beryozkin
Hi, I've had an interesting chat with Richard Opalka today regarding the way CXF builds the Metadata part of the (WSA) EPR. Particularly, at the moment, CXF does something like this : ... Richard pointed me to the relevant section of the WSDL 2.0 spec which also mentions WSDL 1.1. According to t

JAXWS 2.2 : Service.createDispatch with JAXBContext

2010-08-31 Thread Sergey Beryozkin
Hi JAXWS Service class has few methods to do with with creating Dispatch, accepting JAXBContexts. I've seen the examples on the web showing the results of the invocations being cast to JAXBElement (which is what CXF does too due to JAXBDataBinding defaulting to it in such cases). I've just checke