org.apache.axis.client.Service.getTypeMappingRegistry()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(175)

本文整理了Java中org.apache.axis.client.Service.getTypeMappingRegistry()方法的一些代码示例,展示了Service.getTypeMappingRegistry()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Service.getTypeMappingRegistry()方法的具体详情如下:
包路径:org.apache.axis.client.Service
类名称:Service
方法名:getTypeMappingRegistry

Service.getTypeMappingRegistry介绍

[英]Returns the current TypeMappingRegistry or null.
[中]返回当前的TypeMappingRegistry或null。

代码示例

代码示例来源:origin: axis/axis

/**
   * Set the typemapping version
   * @param version
   */ 
  public void setTypeMappingVersion(String version) {
    ((TypeMappingRegistryImpl)getTypeMappingRegistry()).doRegisterFromVersion(version);
  }
}

代码示例来源:origin: org.apache.axis/axis

/**
   * Set the typemapping version
   * @param version
   */ 
  public void setTypeMappingVersion(String version) {
    ((TypeMappingRegistryImpl)getTypeMappingRegistry()).doRegisterFromVersion(version);
  }
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
   * Set the typemapping version
   * @param version
   */ 
  public void setTypeMappingVersion(String version) {
    ((TypeMappingRegistryImpl)getTypeMappingRegistry()).doRegisterFromVersion(version);
  }
}

代码示例来源:origin: stackoverflow.com

public class MyServiceFactoryBean extends JaxRpcPortProxyFactoryBean {
protected void postProcessJaxRpcService(Service service) {
  TypeMappingRegistry registry = service.getTypeMappingRegistry();
  TypeMapping mapping = registry.createTypeMapping();
      QName qName = new QName("http://com/myService", "Foo");
  mapping.register(Foo.class, qName,
      new BeanSerializerFactory(Foo.class, qName),
      new BeanDeserializerFactory(Foo.class, qName));
  }
}

代码示例来源:origin: stackoverflow.com

ServiceFactory factory1 = ServiceFactory.newInstance();
 QName qnTick = new QName("http://soapinterop.org/xsd", "ArrayOfString");
 Service serviceTickReq = factory1.createService(qnTick);
 // Service serviceTickReq = new org.apache.axis.client.Service();
 TypeMappingRegistry tmr = (TypeMappingRegistry) serviceTickReq
     .getTypeMappingRegistry();
 TypeMapping tm = (TypeMapping) tmr.getDefaultTypeMapping();
 tm.register(ArrayOfString.class, qnTick, new BeanSerializerFactory(
     ArrayOfString.class, qnTick), new BeanDeserializerFactory(
     ArrayOfString.class, qnTick));
 TypeMappingRegistry tmr1 = (TypeMappingRegistry) serviceTickReq
     .getTypeMappingRegistry();
 TypeMapping tm1 = (TypeMapping) tmr1.getDefaultTypeMapping();
 tm1.register(String[].class, qnTick, new BeanSerializerFactory(
     String[].class, qnTick), new BeanDeserializerFactory(
     String[].class, qnTick));

相关文章