protected FaultInfo addFault(final InterfaceInfo service, final OperationInfo op, Class<?> exClass) { Class<?> beanClass = getBeanClass(exClass); if (beanClass == null) { return null; } String faultMsgName = null; for (AbstractServiceConfiguration c : serviceConfigurations) { faultMsgName = c.getFaultMessageName(op, exClass, beanClass); if (faultMsgName != null) { break; } } if (faultMsgName == null) { faultMsgName = exClass.getSimpleName(); } QName faultName = getFaultName(service, op, exClass, beanClass); FaultInfo fi = op.addFault(new QName(op.getName().getNamespaceURI(), faultMsgName), new QName(op.getName().getNamespaceURI(), faultMsgName)); fi.setProperty(Class.class.getName(), exClass); fi.setProperty("elementName", faultName); MessagePartInfo mpi = fi.addMessagePart(new QName(faultName.getNamespaceURI(), exClass.getSimpleName())); mpi.setElementQName(faultName); mpi.setTypeClass(beanClass); sendEvent(Event.OPERATIONINFO_FAULT, op, exClass, fi); return fi; }
public Endpoint createEndpoint(EndpointInfo ei) throws EndpointException { Endpoint ep = new EndpointImpl(getBus(), getService(), ei); sendEvent(Event.ENDPOINT_CREATED, ei, ep, getServiceClass()); return ep; }
protected FaultInfo addFault(final InterfaceInfo service, final OperationInfo op, Class<?> exClass) { Class<?> beanClass = getBeanClass(exClass); if (beanClass == null) { return null; } String faultMsgName = null; for (AbstractServiceConfiguration c : serviceConfigurations) { faultMsgName = c.getFaultMessageName(op, exClass, beanClass); if (faultMsgName != null) { break; } } if (faultMsgName == null) { faultMsgName = exClass.getSimpleName(); } QName faultName = getFaultName(service, op, exClass, beanClass); FaultInfo fi = op.addFault(new QName(op.getName().getNamespaceURI(), faultMsgName), new QName(op.getName().getNamespaceURI(), faultMsgName)); fi.setProperty(Class.class.getName(), exClass); fi.setProperty("elementName", faultName); MessagePartInfo mpi = fi.addMessagePart(new QName(faultName.getNamespaceURI(), exClass.getSimpleName())); mpi.setElementQName(faultName); mpi.setTypeClass(beanClass); sendEvent(Event.OPERATIONINFO_FAULT, op, exClass, fi); return fi; }
public Endpoint createEndpoint(EndpointInfo ei) throws EndpointException { Endpoint ep = new EndpointImpl(getBus(), getService(), ei); sendEvent(Event.ENDPOINT_CREATED, ei, ep, getServiceClass()); return ep; }
fi.setProperty(Class.class.getName(), exClass); mpi.setTypeClass(beanClass); sendEvent(Event.OPERATIONINFO_FAULT, o, exClass, fi);
protected void initializeWSDLOperation(InterfaceInfo intf, OperationInfo o, Method method) { // rpc out-message-part-info class mapping Operation op = (Operation)o.getProperty(WSDLServiceBuilder.WSDL_OPERATION); if (initializeClassInfo(o, method, op == null ? null : CastUtils.cast(op.getParameterOrdering(), String.class))) { bindOperation(o, method); o.setProperty(ReflectionServiceFactoryBean.METHOD, method); sendEvent(Event.INTERFACE_OPERATION_BOUND, o, method); } else { LOG.log(Level.WARNING, "NO_METHOD_FOR_OP", o.getName()); } }
fi.setProperty(Class.class.getName(), exClass); mpi.setTypeClass(beanClass); sendEvent(Event.OPERATIONINFO_FAULT, o, exClass, fi);
protected void initializeWSDLOperation(InterfaceInfo intf, OperationInfo o, Method method) { // rpc out-message-part-info class mapping Operation op = (Operation)o.getProperty(WSDLServiceBuilder.WSDL_OPERATION); if (initializeClassInfo(o, method, op == null ? null : CastUtils.cast(op.getParameterOrdering(), String.class))) { bindOperation(o, method); o.setProperty(ReflectionServiceFactoryBean.METHOD, method); sendEvent(Event.INTERFACE_OPERATION_BOUND, o, method); } else { LOG.log(Level.WARNING, "NO_METHOD_FOR_OP", o.getName()); } }
protected InterfaceInfo createInterface(ServiceInfo serviceInfo) { QName intfName = getInterfaceName(); InterfaceInfo intf = new InterfaceInfo(serviceInfo, intfName); Method[] methods = getServiceClass().getMethods(); // The BP profile states we can't have operations of the same name // so we have to append numbers to the name. Different JVMs sort methods // differently. // We need to keep them ordered so if we have overloaded methods, the // wsdl is generated the same every time across JVMs and across // client/servers. Arrays.sort(methods, new MethodComparator()); for (Method m : methods) { if (isValidMethod(m)) { createOperation(serviceInfo, intf, m); } } sendEvent(Event.INTERFACE_CREATED, intf, getServiceClass()); return intf; }
protected InterfaceInfo createInterface(ServiceInfo serviceInfo) { QName intfName = getInterfaceName(); InterfaceInfo intf = new InterfaceInfo(serviceInfo, intfName); Method[] methods = getServiceClass().getMethods(); // The BP profile states we can't have operations of the same name // so we have to append numbers to the name. Different JVMs sort methods // differently. // We need to keep them ordered so if we have overloaded methods, the // wsdl is generated the same every time across JVMs and across // client/servers. Arrays.sort(methods, new MethodComparator()); for (Method m : methods) { if (isValidMethod(m)) { createOperation(serviceInfo, intf, m); } } sendEvent(Event.INTERFACE_CREATED, intf, getServiceClass()); return intf; }
sendEvent(Event.INTERFACE_CREATED, intf, getServiceClass());
sendEvent(Event.INTERFACE_CREATED, intf, getServiceClass());
@Override public synchronized Service create() { reset(); sendEvent(Event.START_CREATE); initializeServiceConfigurations(); initializeServiceModel(); initializeDefaultInterceptors(); if (invoker != null) { getService().setInvoker(getInvoker()); } else { getService().setInvoker(createInvoker()); } if (getExecutor() != null) { getService().setExecutor(getExecutor()); } if (getDataBinding() != null) { getService().setDataBinding(getDataBinding()); } getService().put(MethodDispatcher.class.getName(), getMethodDispatcher()); createEndpoints(); fillInSchemaCrossreferences(); Service serv = getService(); sendEvent(Event.END_CREATE, serv); return serv; }
@Override public synchronized Service create() { reset(); sendEvent(Event.START_CREATE); initializeServiceConfigurations(); initializeServiceModel(); initializeDefaultInterceptors(); if (invoker != null) { getService().setInvoker(getInvoker()); } else { getService().setInvoker(createInvoker()); } if (getExecutor() != null) { getService().setExecutor(getExecutor()); } if (getDataBinding() != null) { getService().setDataBinding(getDataBinding()); } getService().put(MethodDispatcher.class.getName(), getMethodDispatcher()); createEndpoints(); fillInSchemaCrossreferences(); Service serv = getService(); sendEvent(Event.END_CREATE, serv); return serv; }
sendEvent(Event.INTERFACE_OPERATION_BOUND, op, m); return op;
sendEvent(Event.INTERFACE_OPERATION_BOUND, op, m); return op;