// import文宣言
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import javax.xml.namespace.QName;
import javax.xml.rpc.encoding.TypeMappingRegistry;
import javax.xml.rpc.encoding.TypeMapping;
:
try {
service = ServiceFactory.newInstance().createService(new QName("",""));
} catch( javax.xml.rpc.ServiceException e ) {
:
}
service = ServiceFactory.newInstance().createService(null);
TypeMappingRegistry tmr = service.getTypeMappingRegistry();
TypeMapping tm = tmr.createTypeMapping();
// 構造体 Humanのマッピング登録
QName _qname =
new QName(
"urn:Fujitsu-Soap-Service-Data", "fujitsu-sample-HumanSOAPGWType" );
tm.register( fujitsu-sample-HumanSOAPGWType.class, _qname,
new com.fujitsu.interstage.soapx.encoding.ser.BeanSerializerFactory(
fujitsu.sample.HumanSOAPGWType.class, _qname),
new com.fujitsu.interstage.soapx.encoding.ser.BeanDeserializerFactory(
fujitsu.sample.HumanSOAPGWType.class, _qname ) );
tmr.register( "http://schemas.xmlsoap.org/soap/encoding/", tm );
: |