TestUtilities.setProviderForProtocol( protocol );
try {
WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
WSIFService service = factory.getService(wsdlLocation, null, // serviceNS
null, // serviceName
"http://wsifservice.addressbook/", // portTypeNS
"AddressBook"); // portTypeName
service.mapType(
new javax.xml.namespace.QName(
"http://wsiftypes.addressbook/",
"address"),
Class.forName("addressbook.wsiftypes.Address"));
service.mapType(
new javax.xml.namespace.QName(
"http://wsiftypes.addressbook/",
"phone"),
Class.forName("addressbook.wsiftypes.Phone"));
WSIFPort port = null;
port = service.getPort(portName);
/*
* Run iterations of getPort
*/
testName = testNamePrefix + ".getPort";
iterations = (TEST_GETPORT)? getIterations( testName ) : 1;
System.out.println( "running " + iterations + " " + testName + " iterations..." );
for (int i = 0; i < iterations; i++ ) {
Monitor.start( testName );
port = service.getPort(portName);
Monitor.stop( testName );
}
WSIFOperation operation =
port.createOperation("addEntry", "AddEntryWholeNameRequest", null);