/** * Get the name of the service to which messages received by this endpoint are pre-dispatched. * * @return the name of the service, or <code>null</code> if message are not pre-dispatched */ public final String getServiceName() { return service == null ? null : service.getName(); }
private static String getEndpointName(AxisService axisService, String protocol, String soapVersion) { StringBuilder buffer = new StringBuilder(); buffer.append(axisService.getName()); buffer.append(protocol.substring(0, 1).toUpperCase()); buffer.append(protocol.substring(1, protocol.length()).toLowerCase()); if (soapVersion != null) { buffer.append(soapVersion); } buffer.append("Endpoint"); return buffer.toString(); }
private static String getEndpointName(AxisService axisService, String protocol, String soapVersion) { StringBuilder buffer = new StringBuilder(); buffer.append(axisService.getName()); buffer.append(protocol.substring(0, 1).toUpperCase()); buffer.append(protocol.substring(1, protocol.length()).toLowerCase()); if (soapVersion != null) { buffer.append(soapVersion); } buffer.append("Endpoint"); return buffer.toString(); }
/** * Creates the unique (reproducible) id for to hold the context identifier * of the message exchange. * @return Id to hold the context identifier in the message context */ public static String getContextIdentifierKey(MessageContext msgContext) { return msgContext.getAxisService().getName(); }
public AxisService2WSDL11(AxisService service) throws Exception { this.axisService = service; this.serviceName = service.getName(); init(); }
private boolean callToGeneralService() { String serviceName = msgContext.getAxisService().getName(); return serviceName.equals(ServerConstants.GENERAL_SERVICES); } }
private String getRegistryServicePath(AxisService service) { StringBuilder pathValue = new StringBuilder(); return (pathValue .append(RegistryResources.SERVICE_GROUPS) .append(service.getAxisServiceGroup().getServiceGroupName()) .append(RegistryResources.SERVICES) .append(service.getName())).toString(); }
private static String getDescriptionFor(ParameterInclude paramInclude) { if (paramInclude instanceof AxisService) { return "service '" + ((AxisService)paramInclude).getName() + "'"; } else if (paramInclude instanceof TransportInDescription) { return "transport receiver '" + ((TransportInDescription)paramInclude).getName() + "'"; } else if (paramInclude instanceof TransportOutDescription) { return "transport sender '" + ((TransportOutDescription)paramInclude).getName() + "'"; } else { return paramInclude.getClass().getName(); } } }
public boolean matches(AxisService service) { return !service.getName().startsWith("__") // these are "private" services && BaseUtils.isUsingTransport(service, getTransportName()); } },
public final void init(AxisService service) { super.axisService = service; super.serviceName = service.getName(); try { super.init(); } catch (AxisFault e) { e.printStackTrace(); } }
public final void init(AxisService service) { super.axisService = service; this.serviceName = service.getName(); try { super.init(); } catch (AxisFault e) { e.printStackTrace(); } }
public final void init(AxisService service) { super.axisService = service; this.serviceName = service.getName(); try { super.init(); } catch (AxisFault e) { e.printStackTrace(); } }
/** * @return fully qualified MR name */ protected String getFullyQualifiedMessageReceiverName() { String packageName = codeGenConfiguration.getPackageName(); String localPart = makeJavaClassName(axisService.getName()); return packageName + "." + localPart + MESSAGE_RECEIVER_SUFFIX; }
private static Definition getWSDLDefinitionFromAxisService(final AxisService service) { Definition wsdlDefinition = (Definition) service .getParameter(BPELConstants.WSDL_4_J_DEFINITION).getValue(); QName serviceName = new QName(service.getTargetNamespace(), service.getName()); if (wsdlDefinition == null) { throw new NullPointerException("No WSDL Definition was found for service " + serviceName.getLocalPart() + "."); } checkWhetherServiceDefinitionIsAvailable(wsdlDefinition, serviceName); return wsdlDefinition; }
public String getEPR(AxisService service) throws AxisFault { EndpointReference[] endpointReferences = trpInDesc.getReceiver().getEPRsForService(service.getName(), "localhost"); return endpointReferences != null && endpointReferences.length > 0 ? endpointReferences[0].getAddress() : null; } }
public String getEPR(AxisService service) throws AxisFault { EndpointReference[] endpointReferences = trpInDesc.getReceiver().getEPRsForService(service.getName(), "localhost"); return endpointReferences != null && endpointReferences.length > 0 ? endpointReferences[0].getAddress() : null; } }
public String getEPR(AxisService service) throws AxisFault { EndpointReference[] endpointReferences = trpInDesc.getReceiver().getEPRsForService(service.getName(), "localhost"); return endpointReferences != null && endpointReferences.length > 0 ? endpointReferences[0].getAddress() : null; } }
@TearDown @SuppressWarnings("unused") private void tearDown() throws Exception { if (transportErrorSource != null) { transportErrorSource.removeErrorListener(errorListener); } context.getAxisConfiguration().removeService(service.getName()); }
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; }
private static void addSchemas(WSDLDefinition wsdlDef, AxisService axisService) { for (XSDefinition xsDef : wsdlDef.getXmlSchemas()) { if (xsDef.getSchema() != null) { axisService.addSchema(xsDef.getSchema()); updateSchemaRefs(xsDef.getSchema(), axisService.getName()); } } for (WSDLDefinition impDef : wsdlDef.getImportedDefinitions()) { addSchemas(impDef, axisService); } }