@WebService(targetNamespace = "http://www.example.org/contract/DoubleIt", portName = "DoubleItPort", serviceName = "DoubleItService", endpointInterface = "org.example.contract.doubleit.DoubleItPortType") @HandlerChain(file = "/handlers.xml") public class DoubleItPortTypeImpl implements DoubleItPortType { @Resource private WebServiceContext context; public int doubleIt(int numberToDouble) { HandlerUtils.printMessageContext("Web Service Provider", context.getMessageContext()); // should fail (termOne has HANDLER scope) System.out.println("First Word: " + context.getMessageContext().get("termOne")); // should succeed (termTwo has APPLICATION scope) System.out.println("Second Word: " + context.getMessageContext().get("termTwo")); return numberToDouble * 2; } }
endpointInterface = "org.apache.handlers.AddNumbers", serviceName = "AddNumbersService") @HandlerChain(file = "//config/demo_handlers.xml") public class AddNumbersImpl implements AddNumbers {
/** * */ @WebService(serviceName = "GreeterService", portName = "GreeterPort", endpointInterface = "org.apache.cxf.greeter_control.Greeter", targetNamespace = "http://cxf.apache.org/greeter_control", wsdlLocation = "testutils/greeter_control.wsdl") @HandlerChain(file = "trivial_soap_handler.xml") public class TrivialSOAPHandlerAnnotatedGreeterImpl extends AbstractGreeterImpl { }
@javax.jws.WebService(serviceName = "SOAPService", targetNamespace = "http://example.com") @HandlerChain(file = "handler.xml") public class ServiceImpl { public String echo(@WebParam(name = "s", targetNamespace = "http://example.com") String s) { return s; } }
@WebService(endpointInterface = "org.apache.cxf.soapfault.SoapFaultPortType", serviceName = "SoapFaultService") @HandlerChain(file = "./handlers.xml", name = "TestHandlerChain") public class SOAPFaultImpl implements SoapFaultPortType { public void soapFault(Fault fault) { //System.out.println("Received soap fault message"); //System.out.println("FaultString: " + fault.getFaultstring()); //System.out.println("FaulCode: " + fault.getFaultcode()); } }
@Stateless @WebService(serviceName = "TraceeJaxWsTestService", portName = "TraceeJaxWsTestPort", targetNamespace = "https://github.com/holisticon/tracee/examples/jaxws/service/wsdl") @HandlerChain(file = "/traceeHandlerChain.xml") public class TraceeJaxWsTestService implements TraceeJaxWsTestWS {
@HandlerChain(file="/ws-c_handlers.xml") @Addressing(required=true) public class ActivationPortTypeImpl // implements ActivationPortType
@HandlerChain(file="/ws-c_handlers.xml") @Addressing(required=true) public class ActivationPortTypeImpl // implements ActivationPortType
@HandlerChain(file="/ws-c_handlers.xml") @Addressing(required=true) public class RegistrationResponsePortTypeImpl {
@HandlerChain(file="/ws-c_handlers.xml") @Addressing(required=true) public class ActivationPortTypeImpl // implements ActivationPortType
@HandlerChain(file="/ws-c_handlers.xml") @Addressing(required=true) public class ActivationPortTypeImpl // implements ActivationPortType
@HandlerChain(file="/ws-c_handlers.xml") @Addressing(required=true) public class RegistrationPortTypeImpl // implements RegistrationPortType
@HandlerChain(file="/ws-c_handlers.xml") @Addressing(required=true) public class RegistrationPortTypeImpl // implements RegistrationPortType
@HandlerChain(file="/ws-c_handlers.xml") @Addressing(required=true) public class RegistrationPortTypeImpl // implements RegistrationPortType
portName = "CoordinationFaultPortType") @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) @HandlerChain(file="/ws-c_handlers.xml") @Addressing(required=true) public class CoordinationFaultPortTypeImpl {
@HandlerChain(file="/ws-c_handlers.xml") @Addressing(required=true) public class RegistrationPortTypeImpl // implements RegistrationPortType
@WebService(name = "AddNumbers", targetNamespace = "http://apache.org/handlers", portName = "AddNumbersPort", endpointInterface = "org.apache.handlers.AddNumbers", serviceName = "AddNumbersService") @HandlerChain(file = "./handlers.xml", name = "TestHandlerChain") public class AddNumbersImpl implements AddNumbers { /** * @param number1 * @param number2 * @return The sum * @throws AddNumbersException * if any of the numbers to be added is negative. */ public int addNumbers(int number1, int number2) throws AddNumbersFault { //System.out.println("addNumbers called....., number1: " + number1 + " number2: " + number2); return number1 * number2; } }
targetNamespace = "http://apache.org/handlers", wsdlLocation = "file:/D:/svn/cxf/trunk/testutils/src/main/resources/wsdl/addNumbers.wsdl") @HandlerChain(file = "./handlers_smallnumbers.xml", name = "TestHandlerChain") public class AddNumbersServiceWithAnnotation extends Service {
wsdlLocation = "wsdl/hello_world_rpc_lit.wsdl") @ServiceMode(value = Service.Mode.MESSAGE) @HandlerChain(file = "./handlers_invocation.xml", name = "TestHandlerChain") public class HWSoapMessageProvider implements Provider<SOAPMessage> {
@WebService(name = "HelloPolicyService", serviceName = "HelloPolicyService") @EndpointProperties(value = { @EndpointProperty(key = SecurityConstants.CALLBACK_HANDLER, value = "org.apache.cxf.systest.ws.policy.handler.CommonPasswordCallback"), @EndpointProperty(key = "ws-security.is-bsp-compliant", value = "false"), @EndpointProperty(key = SecurityConstants.SIGNATURE_PROPERTIES, value = "alice.properties"), @EndpointProperty(key = SecurityConstants.SIGNATURE_USERNAME, value = "alice") }) @HandlerChain(file = "handlers.xml") public class HelloServiceImpl implements HelloService { @Override @WebResult(name = "result") public boolean checkHello(@WebParam(name = "input") String input) throws MyFault { throw new MyFault("myMessage", "myFaultInfo"); } }