本文整理了Java中org.apache.axis.client.Service.getTypeMappingRegistry()
方法的一些代码示例,展示了Service.getTypeMappingRegistry()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Service.getTypeMappingRegistry()
方法的具体详情如下:
包路径:org.apache.axis.client.Service
类名称: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));
内容来源于网络,如有侵权,请联系作者删除!