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/",
">ComplexDocument"),
ComplexDocument_ElemType.class );
service.mapType(
new javax.xml.namespace.QName(
"http://soapinterop.org/",
"ComplexDocument"),
ComplexDocument_Type.class );
service.mapType(
new javax.xml.namespace.QName(
"http://soapinterop.org/",
"ArrayOfSimpleDocument"),
ArrayOfSimpleDocument.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/",
"ChildDocument"),
ChildDocument.class );
service.mapType(
new javax.xml.namespace.QName(
"http://soapinterop.org/",
"ComplexDocumentResponse"),
ComplexDocumentResponse.class );
WSIFPort port = service.getPort(portName);
WSIFOperation operation = port.createOperation("ComplexDocument");
WSIFMessage inMsg = operation.createInputMessage();
WSIFMessage outMsg = operation.createOutputMessage();