@BindingType(value = javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_BINDING) @WebService(targetNamespace = "http://mergebam.ucsf.nida.ws.mapseq.unc.edu", serviceName = "NIDAUCSFMergeBAMService", portName = "NIDAUCSFMergeBAMPort") @SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) @Path("/NIDAUCSFMergeBAMService/") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public interface NIDAUCSFMergeBAMService { @GET @Path("/lookupQuantificationResults/{subject}") @WebMethod public NIDAUCSFMergeBAMInfo lookupQuantificationResults( @PathParam("subject") @WebParam(name = "subject") String subject); }
@javax.jws.WebService(serviceName = "XMLService", portName = "XMLFaultPort", endpointInterface = "org.apache.hello_world_xml_http.wrapped.Greeter", targetNamespace = "http://apache.org/hello_world_xml_http/wrapped", wsdlLocation = "testutils/hello_world_xml_wrapped.wsdl") @javax.xml.ws.BindingType(value = "http://cxf.apache.org/bindings/xformat") public class GreeterFaultImpl implements Greeter { public static final String RUNTIME_EXCEPTION_MESSAGE = "test throw out runtime exception"; private static final Logger LOG = LogUtils.getL7dLogger(GreeterFaultImpl.class); public String greetMe(String me) { return "Hello " + me; } public void greetMeOneWay(String me) { LOG.info("Executing operation greetMeOneWay"); LOG.info("Hello there " + me); } public String sayHi() { return "Bonjour"; } public void pingMe() throws PingMeFault { throw new RuntimeException(GreeterFaultImpl.RUNTIME_EXCEPTION_MESSAGE); } }
wsdlLocation = "testutils/hello_world_xml_mixed.wsdl") @javax.xml.ws.BindingType(value = "http://cxf.apache.org/bindings/xformat")
targetNamespace = "http://apache.org/hello_world_xml_http/bare") @javax.xml.ws.BindingType(value = "http://cxf.apache.org/bindings/xformat")
serviceName = "NotificationBrokerService", portName = "NotificationBrokerPort") @BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING) public class JaxwsNotificationBroker extends JmsNotificationBroker implements JaxwsNotificationBrokerMBean {
wsdlLocation = "testutils/hello_world_xml_wrapped.wsdl") @javax.xml.ws.BindingType(value = "http://cxf.apache.org/bindings/xformat")
@BindingType(value = javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING) public class HelloImpl implements Hello { public void detail(Holder<byte[]> photo, Holder<Image> image) { // echo through Holder } public void echoData(Holder<byte[]> data) { // echo through Holder } }
serviceName = "CreatePullPointService", portName = "CreatePullPointPort") @BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING) public class JaxwsCreatePullPoint extends JmsCreatePullPoint implements JaxwsCreatePullPointMBean {
serviceName = "PublisherRegistrationManagerService", portName = "PublisherRegistrationManagerPort") @BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING) public class JaxwsPublisher extends JmsPublisher {
@BindingType(value = javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_BINDING) @WebService(targetNamespace = "http://ncgenes.ws.mapseq.unc.edu", serviceName = "NCGenesService", portName = "NCGenesPort") @SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) @Path("/NCGenesService/") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public interface NCGenesService { @GET @Path("/lookupQuantificationResults/{htsfSampleId}") @WebMethod public QualityControlInfo lookupQuantificationResults( @PathParam("htsfSampleId") @WebParam(name = "htsfSampleId") Long htsfSampleId); @GET @Path("/lookupIdentityInfoFromVCF/{htsfSampleId}") @WebMethod public VCFResult lookupIdentityInfoFromVCF( @PathParam("htsfSampleId") @WebParam(name = "htsfSampleId") Long htsfSampleId); }
@MTOM(enabled = true, threshold = 0) @BindingType(value = javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING) @WebService(targetNamespace = "http://casava.ws.mapseq.unc.edu", serviceName = "CASAVAService", portName = "CASAVAPort") @SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) @Path("/CASAVAService/") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public interface CASAVAService { @WebMethod public Long uploadSampleSheet(@WebParam(name = "data") DataHandler data, @WebParam(name = "flowcellName") String flowcellName); @GET @Path("/assertDirectoryExists/{studyName}/{flowcell}") @WebMethod public Boolean assertDirectoryExists(@PathParam("studyName") @WebParam(name = "studyName") String studyName, @PathParam("flowcell") @WebParam(name = "flowcell") String flowcell); }
@WebService(serviceName = "XMLService", portName = "XMLPort", endpointInterface = "org.apache.type_test.xml.TypeTestPortType", targetNamespace = "http://apache.org/type_test/xml", wsdlLocation = "testutils/type_test/type_test_xml.wsdl") @javax.xml.ws.BindingType(value = "http://cxf.apache.org/bindings/xmlformat") class XMLTypeTestImpl extends TypeTestImpl implements TypeTestPortType { } }
@javax.xml.ws.BindingType(value = "http://www.w3.org/2003/05/soap/bindings/HTTP/") @javax.jws.WebService(endpointInterface = "org.apache.cxf.jaxws.schemavalidation.ServicePortType") public class ServicePortTypeImpl { public CkResponseType ckR(CkRequestType ckRIn, RequestHeader header) { CkResponseType result = new CkResponseType(); ActionCheckMajType action = new ActionCheckMajType(); action.setStatus(4); ProductPostActionType pdt = new ProductPostActionType(); pdt.setAction(action); result.getProduct().add(pdt); return result; } }
@WebService(portName = "TestPort", serviceName = "TestService") @BindingType(value = SOAPBinding.SOAP12HTTP_BINDING) public class Soap12Service extends Soap11Service { }
@MTOM @WebService(portName = "TestPort", serviceName = "TestService") @BindingType(value = SOAPBinding.SOAP12HTTP_BINDING) public class Mtom12Service extends Soap12Service { }
@WebServiceProvider(serviceName = "HelloProviderService", portName = "HelloProviderPort", targetNamespace = "http://apache.org/hello_world_xml_http/bare") @BindingType(value = javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_BINDING) @ServiceMode(value = javax.xml.ws.Service.Mode.PAYLOAD) public class GreeterProvider implements Provider<Source> { public Source invoke(Source req) { return new StreamSource(); } } }
wsdlLocation = "/wsdl/hello_world_xml_wrapped.wsdl") @ServiceMode(value = Service.Mode.PAYLOAD) @javax.xml.ws.BindingType(value = "http://cxf.apache.org/bindings/xformat") public class HWDOMSourcePayloadXMLBindingProvider implements Provider<DOMSource> {
@WebServiceProvider(serviceName = "AttachmentStreamSourceXMLProvider") @ServiceMode(value = Service.Mode.PAYLOAD) @javax.xml.ws.BindingType(value = "http://cxf.apache.org/bindings/xformat") public class AttachmentStreamSourceXMLProvider implements Provider<StreamSource> {
@WebServiceProvider(serviceName = "ModelProvider") @BindingType(value = "http://cxf.apache.org/bindings/xformat") @ServiceMode(value = Service.Mode.MESSAGE) public class TestProvider extends AbstractProvider<DataSource> implements Provider<DataSource> {
@BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http") @ServiceMode(value = javax.xml.ws.Service.Mode.PAYLOAD) @WebServiceProvider(targetNamespace = "http://cxf.apache.org/", serviceName = "HelloWS", portName = "hello") @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) @EndpointProperties(value = { @EndpointProperty(key = "schema-validation-enabled", value = "true"), @EndpointProperty(key = "mtom-enabled", value = "true") }) public class TestProvider implements Provider<SAXSource> { private String successRsp = "<ns2:helloResponse xmlns:ns2=\"http://cxf.apache.org/\">" + "<return>Hello CXF</return>" + "</ns2:helloResponse>"; public SAXSource invoke(SAXSource request) { return new SAXSource(new InputSource(new StringReader(successRsp))); } }