FileDocCategorySizeDatePackage
ServiceGetPort.javaAPI DocApache Axis 1.41743Sat Apr 22 18:57:26 BST 2006test.dynamic

ServiceGetPort

public class ServiceGetPort extends TestCase
This class tests Fault deserialization.
author
Sam Ruby (rubys@us.ibm.com)

Fields Summary
Constructors Summary
public ServiceGetPort(String name)

        super(name);
    
Methods Summary
public voidtestGetGeneratedStub()

        Service service = ServiceFactory.newInstance().createService(
                new URL("file:samples/addr/AddressBook.wsdl"),
                new QName("urn:AddressFetcher2", "AddressBookService"));
        QName portName = new QName("urn:AddressFetcher2", "AddressBook");
        Remote stub = service.getPort(portName, AddressBook.class);
        assertTrue("Stub should be an instance of AddressBookSOAPBindingStub; instead, it is " + stub.getClass().getName(), stub instanceof AddressBookSOAPBindingStub);