protected void addAnonymousOperations(){ RobustOutOnlyAxisOperation robustoutoonlyOperation = new RobustOutOnlyAxisOperation(ServiceClient.ANON_ROBUST_OUT_ONLY_OP); _service.addOperation(robustoutoonlyOperation); OutOnlyAxisOperation outOnlyOperation = new OutOnlyAxisOperation(ServiceClient.ANON_OUT_ONLY_OP); _service.addOperation(outOnlyOperation); OutInAxisOperation outInOperation = new OutInAxisOperation(ServiceClient.ANON_OUT_IN_OP); _service.addOperation(outInOperation); }
@Override public void applyPolicy() throws AxisFault { getAxisEndpoint().getAxisService().applyPolicy(); } }
public XmlSchemaElement getSchemaElement() { XmlSchemaElement xmlSchemaElement = null; AxisService service = getAxisOperation().getAxisService(); ArrayList schemas = service.getSchema(); for (Object schema : schemas) { xmlSchemaElement = getSchemaElement((XmlSchema)schema); if (xmlSchemaElement != null) { break; } } return xmlSchemaElement; }
private AxisServiceGroup createServiceGroupForService(AxisService svc) throws AxisFault { AxisServiceGroup svcGroup = new AxisServiceGroup(); svcGroup.setServiceGroupName(svc.getName()); svcGroup.addService(svc); // Checking configured using files param is not a good solution. We must figure out a way to handle this // at Carbon persistence manager layer. if (svc.getParameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM) != null && svc.getParameter(BusinessProcessConstants.CONFIGURED_USING_BPEL_PKG_CONFIG_FILES) == null) { svcGroup.addParameter(new Parameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM, "true")); } return svcGroup; }
public WSDLToAxisServiceBuilder(InputStream in, QName serviceName) { this.in = in; this.serviceName = serviceName; this.axisService = new AxisService(); setPolicyRegistryFromService(axisService); }
public WSDL20ToAxisServiceBuilder(InputStream in, QName serviceName, String interfaceName) { this.in = in; this.serviceName = serviceName; this.interfaceName = interfaceName; this.axisService = new AxisService(); setPolicyRegistryFromService(axisService); }
protected OMElement generateInterface(OMFactory omFactory) throws AxisFault, URISyntaxException, XMLStreamException, FactoryConfigurationError { Parameter parameter = axisService.getParameter(WSDL2Constants.INTERFACE_LOCAL_NAME); if (parameter != null) { interfaceName = (String) parameter.getValue(); } else { interfaceName = WSDL2Constants.DEFAULT_INTERFACE_NAME; } // Add the interface element return getInterfaceElement(wsdl, tns, wsdlx, wrpc, omFactory, interfaceName); }
private String getRequestElementSuffix() { String requestElementSuffix = null; Parameter param = service.getParameter(Java2WSDLConstants.REQUEST_ELEMENT_SUFFIX_OPTION_LONG); if (param != null) { requestElementSuffix = (String) param.getValue(); } return requestElementSuffix; }
public Object getParameterValue(String name) { Parameter param = getParameter(name); if (param == null) { return null; } return param.getValue(); }
private AxisBinding findBinding() { if (axisService != null) { if (axisService.getEndpointName() != null) { AxisEndpoint axisEndpoint = axisService .getEndpoint(axisService.getEndpointName()); if (axisEndpoint != null) { return axisEndpoint.getBinding(); } } } return null; }
public boolean isParameterLocked(String parameterName) { // checking the locked value of parent boolean locked = false; if (getParent() != null) { locked = getParent().isParameterLocked(parameterName); } if (locked) { return true; } else { Parameter parameter = getParameter(parameterName); return (parameter != null) && parameter.isLocked(); } }
public boolean isParameterLocked(String parameterName) { // checking the locked value of parent boolean locked = false; if (getParent() != null) { locked = getParent().isParameterLocked(parameterName); } if (locked) { return true; } else { Parameter parameter = getParameter(parameterName); return (parameter != null) && parameter.isLocked(); } }
public boolean isParameterLocked(String parameterName) { if (this.parent != null && this.parent.isParameterLocked(parameterName)) { return true; } Parameter parameter = getParameter(parameterName); return parameter != null && parameter.isLocked(); }
/** * Constructor HandlerDescription. */ public HandlerDescription() { this.parameterInclude = new ParameterIncludeImpl(); this.rules = new PhaseRule(); }
@Override public void applyPolicy() throws AxisFault { getAxisService().applyPolicy(); } }
@Override public void applyPolicy() throws AxisFault { getAxisMessage().applyPolicy(); } }
protected void addAnonymousOperations(){ RobustOutOnlyAxisOperation robustoutoonlyOperation = new RobustOutOnlyAxisOperation(ServiceClient.ANON_ROBUST_OUT_ONLY_OP); _service.addOperation(robustoutoonlyOperation); OutOnlyAxisOperation outOnlyOperation = new OutOnlyAxisOperation(ServiceClient.ANON_OUT_ONLY_OP); _service.addOperation(outOnlyOperation); OutInAxisOperation outInOperation = new OutInAxisOperation(ServiceClient.ANON_OUT_IN_OP); _service.addOperation(outInOperation); }
protected OMElement generateInterface(OMFactory omFactory) throws AxisFault, URISyntaxException, XMLStreamException, FactoryConfigurationError { Parameter parameter = axisService.getParameter(WSDL2Constants.INTERFACE_LOCAL_NAME); if (parameter != null) { interfaceName = (String) parameter.getValue(); } else { interfaceName = WSDL2Constants.DEFAULT_INTERFACE_NAME; } // Add the interface element return getInterfaceElement(wsdl, tns, wsdlx, wrpc, omFactory, interfaceName); }
public XmlSchemaElement getSchemaElement() { XmlSchemaElement xmlSchemaElement = null; AxisService service = getAxisOperation().getAxisService(); ArrayList schemas = service.getSchema(); for (Object schema : schemas) { xmlSchemaElement = getSchemaElement((XmlSchema)schema); if (xmlSchemaElement != null) { break; } } return xmlSchemaElement; }