当前位置: 首页>>代码示例>>Java>>正文


Java AxisEngine类代码示例

本文整理汇总了Java中org.apache.axis.AxisEngine的典型用法代码示例。如果您正苦于以下问题:Java AxisEngine类的具体用法?Java AxisEngine怎么用?Java AxisEngine使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AxisEngine类属于org.apache.axis包,在下文中一共展示了AxisEngine类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: MSS_Registration

import org.apache.axis.AxisEngine; //导入依赖的package包/类
@Override
public MSSRegistrationResp MSS_Registration(final MSSRegistrationReq req) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call1 = this.createCall(SOAPConstants.SOAP12_CONSTANTS,
                                  null,
                                  _operations[0]);
    _call1.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call1.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call1.setSOAPActionURI("#MSS_Registration");

    this.setRequestHeaders(_call1);
    Object _resp = _call1.invoke(new Object[] {req});

    if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException)_resp;
    }
    else {
        return (MSSRegistrationResp) _resp;
    }
}
 
开发者ID:laverca,项目名称:laverca,代码行数:23,代码来源:MSS_RegistrationBindingStub.java

示例2: MSS_ProfileQuery

import org.apache.axis.AxisEngine; //导入依赖的package包/类
@Override
public MSSProfileResp MSS_ProfileQuery(MSSProfileReq req) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call1 = this.createCall(SOAPConstants.SOAP12_CONSTANTS,
                                  null,
                                  _operations[0]);
    _call1.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call1.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call1.setSOAPActionURI("#MSS_ProfileQuery");

    this.setRequestHeaders(_call1);
    Object _resp = _call1.invoke(new Object[] {req});

    if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException)_resp;
    }
    else {
        return (MSSProfileResp) _resp;
    }
}
 
开发者ID:laverca,项目名称:laverca,代码行数:23,代码来源:MSS_ProfileQueryBindingStub.java

示例3: MSS_Signature

import org.apache.axis.AxisEngine; //导入依赖的package包/类
@Override
public MSSSignatureResp MSS_Signature(MSSSignatureReq req) throws java.rmi.RemoteException {

    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call1 = this.createCall(SOAPConstants.SOAP12_CONSTANTS,
                                  null,
                                  _operations[0]);
    _call1.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call1.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call1.setSOAPActionURI("#MSS_Signature");

    this.setRequestHeaders(_call1);
    Object _resp = _call1.invoke(new Object[] {req});

    if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException)_resp;
    }
    else {
        return (MSSSignatureResp) _resp;
    }
}
 
开发者ID:laverca,项目名称:laverca,代码行数:24,代码来源:MSS_SignatureBindingStub.java

示例4: MSS_StatusQuery

import org.apache.axis.AxisEngine; //导入依赖的package包/类
@Override
public MSSStatusResp MSS_StatusQuery(MSSStatusReq req) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call1 = this.createCall(SOAPConstants.SOAP12_CONSTANTS,
                                  null,
                                  _operations[0]);
    _call1.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call1.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call1.setSOAPActionURI("#MSS_StatusQuery");

    this.setRequestHeaders(_call1);
    Object _resp = _call1.invoke(new Object[] {req});

    if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException)_resp;
    }
    else {
        return (MSSStatusResp) _resp;
    }
}
 
开发者ID:laverca,项目名称:laverca,代码行数:23,代码来源:MSS_StatusQueryBindingStub.java

示例5: MSS_Handshake

import org.apache.axis.AxisEngine; //导入依赖的package包/类
@Override
public MSSHandshakeResp MSS_Handshake(MSSHandshakeReq MSS_HandshakeReq) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call1 = this.createCall(SOAPConstants.SOAP12_CONSTANTS,
                                  null,
                                  _operations[0]);
    _call1.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call1.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call1.setSOAPActionURI("#MSS_Handshake");

    this.setRequestHeaders(_call1);
    Object _resp = _call1.invoke(new Object[] {MSS_HandshakeReq});

    if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException)_resp;
    }
    else {
        return (MSSHandshakeResp) _resp;
    }
}
 
开发者ID:laverca,项目名称:laverca,代码行数:23,代码来源:MSS_HandshakeBindingStub.java

示例6: MSS_Receipt

import org.apache.axis.AxisEngine; //导入依赖的package包/类
@Override
public MSSReceiptResp MSS_Receipt(MSSReceiptReq req) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call1 = this.createCall(SOAPConstants.SOAP12_CONSTANTS,
                                  null,
                                  _operations[0]);
    _call1.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    _call1.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call1.setSOAPActionURI("#MSS_Receipt");

    this.setRequestHeaders(_call1);
    Object _resp = _call1.invoke(new Object[] {req});

    if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException)_resp;
    }
    else {
        return (MSSReceiptResp) _resp;
    }
}
 
开发者ID:laverca,项目名称:laverca,代码行数:23,代码来源:MSS_ReceiptBindingStub.java

示例7: getEngine

import org.apache.axis.AxisEngine; //导入依赖的package包/类
/**
 * get the engine for this Server from cache or context
 * @return
 * @throws AxisFault 
 */
public AxisServer getEngine() throws AxisFault {
	if (axisServer == null) {
		synchronized (context) {
			Map environment = new HashMap();
			environment.put(AxisEngine.ENV_SERVLET_CONTEXT, context);
			axisServer = AxisServer.getServer(environment);
			axisServer.setName("LuceeServer");
		}
		
		// add Component Handler
		try {
			SimpleChain sc=(SimpleChain) axisServer.getGlobalRequest();
			sc.addHandler(new ComponentHandler());	
		}
		catch (ConfigurationException e) {
			throw AxisFault.makeFault(e);
		}
		TypeMappingUtil.registerDefaults(axisServer.getTypeMappingRegistry());
		
	}
	return axisServer;
}
 
开发者ID:lucee,项目名称:Lucee4,代码行数:28,代码来源:RPCServer.java

示例8: getEngine

import org.apache.axis.AxisEngine; //导入依赖的package包/类
/**
  * get the engine for this Server from cache or context
  * @return
  * @throws AxisFault 
  */
 public AxisServer getEngine() throws AxisFault {
     if (axisServer == null) {
         synchronized (context) {
         	Map environment = new HashMap();
             environment.put(AxisEngine.ENV_SERVLET_CONTEXT, context);
             axisServer = AxisServer.getServer(environment);
             axisServer.setName("LuceeServer");
         }
         
         // add Component Handler
         try {
	SimpleChain sc=(SimpleChain) axisServer.getGlobalRequest();
	sc.addHandler(new ComponentHandler());	
}
         catch (ConfigurationException e) {
	throw AxisFault.makeFault(e);
}
         TypeMappingUtil.registerDefaults(axisServer.getTypeMappingRegistry());
         
     }
     return axisServer;
 }
 
开发者ID:lucee,项目名称:Lucee,代码行数:28,代码来源:RPCServer.java

示例9: serialize

import org.apache.axis.AxisEngine; //导入依赖的package包/类
public static String serialize(Object obj) throws IOException {
  TypeDesc desc = TypeDesc.getTypeDescForClass(obj.getClass());
  BeanSerializer serializer = new BeanSerializer(obj.getClass(), desc.getXmlType(), desc);

  MessageContext mctx = new MessageContext(null);
  mctx.setProperty(AxisEngine.PROP_ENABLE_NAMESPACE_PREFIX_OPTIMIZATION, true);
  mctx.setProperty(AxisEngine.PROP_SEND_XSI, true);
  mctx.setTypeMappingRegistry(new TypeMappingRegistryImpl());

  StringWriter writer = new StringWriter();

  SerializationContext ctx = new SerializationContext(writer, mctx);
  ctx.setPretty(false);
  ctx.setSendDecl(true);
  ctx.setDoMultiRefs(false);

  serializer.serialize(new QName("keha"), new AttributesImpl(), obj, ctx);
  return writer.getBuffer().toString();
}
 
开发者ID:nortal,项目名称:j-road,代码行数:20,代码来源:AxisUtil.java

示例10: setupMessageContextImpl

import org.apache.axis.AxisEngine; //导入依赖的package包/类
/**
 * Set up any transport-specific derived properties in the message context.
 * @param context the context to set up
 * @param message the client service instance
 * @param engine the engine containing the registries
 */
public void setupMessageContextImpl(MessageContext mc,
                                    Call call,
                                    AxisEngine engine)
{
    try {
      String urlString = mc.getStrProp(MessageContext.TRANS_URL);
      if (urlString != null) {
        URL url = new URL(urlString);
        host = url.getHost();
        port = new Integer(url.getPort()).toString();
      }
    } catch (java.net.MalformedURLException e) {
      // Do nothing here?
    }

    if (host != null) mc.setProperty(HOST, host);
    if (port != null) mc.setProperty(PORT, port);

    log.debug( "Port = " + mc.getStrProp(PORT));
    log.debug( "Host = " + mc.getStrProp(HOST));
    
    // kind of ugly... fake up a "http://host:port/" url to send down the chain
    // ROBJ TODO: clean this up so we use TCP transport properties all the way down
    // use serviceclient properties if any, otherwise use ours
    /*
    String url = "http://"+serv.get(HOST)+":"+serv.get(PORT);
    
    log.debug( "TCPTransport set URL to '" + url + "'");
    mc.setProperty(MessageContext.TRANS_URL, url);
    */
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:38,代码来源:TCPTransport.java

示例11: invoke

import org.apache.axis.AxisEngine; //导入依赖的package包/类
public void invoke(MessageContext msgContext) throws AxisFault {
	try {
		msgContext.setProperty(AxisEngine.PROP_DISABLE_PRETTY_XML, true);

		SOAPMessage msg = msgContext.getCurrentMessage();
		Document doc = ((org.apache.axis.message.SOAPEnvelope)msg.getSOAPPart().getEnvelope()).getAsDocument();

		SOAPMessage secMsg = this.createUserNameToken(doc);
		((SOAPPart)msgContext.getRequestMessage().getSOAPPart()).setCurrentMessage(secMsg.getSOAPPart().getEnvelope(), SOAPPart.FORM_SOAPENVELOPE);
	} catch (Exception ex) {
		throw new AxisFault("(Invoke) Error en la cridada a aFirma " + ex.getMessage(), ex);
	}
}
 
开发者ID:GovernIB,项目名称:helium,代码行数:14,代码来源:AfirmaSecurityHandler.java

示例12: MSS_Notification

import org.apache.axis.AxisEngine; //导入依赖的package包/类
@Override
public MSSReceiptReq MSS_Notification(MSSStatusResp req) throws java.rmi.RemoteException {
    if (super.cachedEndpoint == null) {
        throw new org.apache.axis.NoEndPointException();
    }
    Call _call1 = this.createCall(SOAPConstants.SOAP12_CONSTANTS,
                                  null,
                                  _operations[0]);
    _call1.setProperty(Call.SEND_TYPE_ATTR,  Boolean.FALSE);
    _call1.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    _call1.setSOAPActionURI("#MSS_Notification");

    this.setRequestHeaders(_call1);
    final Object[] reqs = new Object[] {req};
    Object _resp = _call1.invoke(reqs);

    if (_resp instanceof java.rmi.RemoteException) {
        throw (java.rmi.RemoteException)_resp;
    }
    else {
        return (MSSReceiptReq) _resp;
    }
}
 
开发者ID:laverca,项目名称:laverca,代码行数:24,代码来源:MSS_NotificationBindingStub.java

示例13: initialize

import org.apache.axis.AxisEngine; //导入依赖的package包/类
void initialize(Object serviceImpl, ClassLoader classLoader) throws ClassNotFoundException {
    this.serviceImpl = serviceImpl;
    Class serviceEndpointBaseClass = classLoader.loadClass(serviceEndpointClassName);
    serviceEndpointClass = enhanceServiceEndpointInterface(serviceEndpointBaseClass, classLoader);
    Class[] constructorTypes = new Class[]{classLoader.loadClass(GenericServiceEndpoint.class.getName())};
    this.constructor = FastClass.create(serviceEndpointClass).getConstructor(constructorTypes);
    this.handlerInfoChainFactory = new HandlerInfoChainFactory(handlerInfos);
    sortedOperationInfos = new OperationInfo[FastClass.create(serviceEndpointClass).getMaxIndex() + 1];
    String encodingStyle = "";
    for (int i = 0; i < operationInfos.length; i++) {
        OperationInfo operationInfo = operationInfos[i];
        Signature signature = operationInfo.getSignature();
        MethodProxy methodProxy = MethodProxy.find(serviceEndpointClass, signature);
        if (methodProxy == null) {
            throw new ServerRuntimeException("No method proxy for operationInfo " + signature);
        }
        int index = methodProxy.getSuperIndex();
        sortedOperationInfos[index] = operationInfo;
        if (operationInfo.getOperationDesc().getUse() == Use.ENCODED) {
            encodingStyle = org.apache.axis.Constants.URI_SOAP11_ENC;
        }
    }
    //register our type descriptors
    Service service = ((ServiceImpl) serviceImpl).getService();
    AxisEngine axisEngine = service.getEngine();
    TypeMappingRegistry typeMappingRegistry = axisEngine.getTypeMappingRegistry();
    TypeMapping typeMapping = typeMappingRegistry.getOrMakeTypeMapping(encodingStyle);
    typeMapping.register(BigInteger.class, Constants.XSD_UNSIGNEDLONG, new SimpleSerializerFactory(BigInteger.class, Constants.XSD_UNSIGNEDLONG), new SimpleDeserializerFactory(BigInteger.class, Constants.XSD_UNSIGNEDLONG));
    typeMapping.register(URI.class, Constants.XSD_ANYURI, new SimpleSerializerFactory(URI.class, Constants.XSD_ANYURI), new SimpleDeserializerFactory(URI.class, Constants.XSD_ANYURI));
    //It is essential that the types be registered before the typeInfos create the serializer/deserializers.
    for (Iterator iter = typeInfo.iterator(); iter.hasNext(); ) {
        TypeInfo info = (TypeInfo) iter.next();
        TypeDesc.registerTypeDescForClass(info.getClazz(), info.buildTypeDesc());
    }
    TypeInfo.register(typeInfo, typeMapping);
}
 
开发者ID:apache,项目名称:tomee,代码行数:37,代码来源:SeiFactoryImpl.java

示例14: createMessageContext

import org.apache.axis.AxisEngine; //导入依赖的package包/类
protected MessageContext createMessageContext(InputStream configStream) {
    EngineConfiguration engineConfig = new FileProvider(configStream);
    AxisEngine engine = new AxisServer(engineConfig);
    
    MessageContext context = new MessageContext(engine);
    context.setEncodingStyle("");
    context.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
    // the following two properties prevent xsd types from appearing in
    // every single element in the serialized XML
    context.setProperty(AxisEngine.PROP_EMIT_ALL_TYPES, Boolean.FALSE);
    context.setProperty(AxisEngine.PROP_SEND_XSI, Boolean.FALSE);
    return context;
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:14,代码来源:CompleteEnumIteratorBaseTest.java

示例15: toObject

import org.apache.axis.AxisEngine; //导入依赖的package包/类
public static <T> T toObject(InputSource source, Class<T> javaClass, InputStream wsdd) throws SAXException {
    // create a message context for the wsdd
    EngineConfiguration engineConfig = new FileProvider(wsdd);
    AxisClient axisClient = new AxisClient(engineConfig);
    MessageContext messageContext = new MessageContext(axisClient);
    messageContext.setEncodingStyle("");
    messageContext.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);

    ConfigurableObjectDeserializationContext desContext = new ConfigurableObjectDeserializationContext(
        messageContext, source, javaClass);

    return javaClass.cast(desContext.getValue());
}
 
开发者ID:NCIP,项目名称:cagrid-core,代码行数:14,代码来源:ConfigurableObjectDeserializer.java


注:本文中的org.apache.axis.AxisEngine类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。