TestUtilities.setProviderForProtocol(protocol);
try {
WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
WSIFService service =
factory.getService(
wsdlLocation,
null,
null,
"http://soapinterop.org/",
"Doc_TestPortType");
service.mapPackage("http://soapinterop.org/", "interop.wsifserviceWrapped");
service.mapType(
new javax.xml.namespace.QName(
"http://soapinterop.org/",
">SimpleDocument"),
SimpleDocument_ElemType.class );
service.mapType(
new javax.xml.namespace.QName(
"http://soapinterop.org/",
"SimpleDocument"),
SimpleDocument_Type.class );
service.mapType(
new javax.xml.namespace.QName(
"http://soapinterop.org/",
"SimpleDocumentResponse"),
SimpleDocumentResponse.class );
WSIFPort port = service.getPort(portName);
WSIFOperation operation = port.createOperation("SimpleDocument");
WSIFMessage inMsg = operation.createInputMessage();
WSIFMessage outMsg = operation.createOutputMessage();