//location of wsdl file
String wsdlLocation = "http://" + thisHost + ":" + thisPort + "/axis/services/AddressBookNoImplSEI?WSDL";
URL orgWsdlUrl = new URL(wsdlLocation);
ServiceFactory serviceFactory = ServiceFactory.newInstance();
Service addressBookService =
serviceFactory.createService(orgWsdlUrl,
new QName(nameSpaceUri, serviceName));
// Add the typemapping entries
TypeMappingRegistry registry = addressBookService.getTypeMappingRegistry();
TypeMapping map = registry.getDefaultTypeMapping();
map.register(test.wsdl.addrNoImplSEI.Address.class,
new QName("urn:AddrNoImplSEI", "Address"),
new org.apache.axis.encoding.ser.BeanSerializerFactory(test.wsdl.addrNoImplSEI.Address.class, new QName("urn:AddrNoImplSEI", "Address")),
new org.apache.axis.encoding.ser.BeanDeserializerFactory(test.wsdl.addrNoImplSEI.Address.class, new QName("urn:AddrNoImplSEI", "Address")));
map.register(test.wsdl.addrNoImplSEI._Phone.class,
new QName("urn:AddrNoImplSEI", "_Phone"),
new org.apache.axis.encoding.ser.BeanSerializerFactory(test.wsdl.addrNoImplSEI._Phone.class, new QName("urn:AddrNoImplSEI", "_Phone")),
new org.apache.axis.encoding.ser.BeanDeserializerFactory(test.wsdl.addrNoImplSEI._Phone.class, new QName("urn:AddrNoImplSEI", "_Phone")));
map.register(test.wsdl.addrNoImplSEI.StateType.class,
new QName("urn:AddrNoImplSEI", "StateType"),
new org.apache.axis.encoding.ser.EnumSerializerFactory(test.wsdl.addrNoImplSEI.StateType.class, new QName("urn:AddrNoImplSEI", "StateType")),
new org.apache.axis.encoding.ser.EnumDeserializerFactory(test.wsdl.addrNoImplSEI.StateType.class, new QName("urn:AddrNoImplSEI", "StateType")));
AddressBookNoImplSEI myProxy = (AddressBookNoImplSEI) addressBookService.getPort(AddressBookNoImplSEI.class);
// Set session on.
((Stub) myProxy)._setProperty(Stub.SESSION_MAINTAIN_PROPERTY, Boolean.TRUE);
String name1;