File wsdlFile = new File(fileName);
assertTrue(wsdlFile.exists());
WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
WSDLDefinitions wsdlDefinitions = factory.parse(wsdlFile.toURL());
WSDLInterface wsdlInterface = wsdlDefinitions.getInterface(new QName(wsdlDefinitions.getTargetNamespace(), "JaxRpcTestService"));
// check if the schema has been extracted
WSDLTypes wsdlTypes = wsdlDefinitions.getWsdlTypes();
assertNotNull(WSDLUtils.getSchemaModel(wsdlTypes));
// check the echoString operation
WSDLInterfaceOperation wsdlOperation = wsdlInterface.getOperation("echoString");
assertEquals(Constants.URI_STYLE_RPC, wsdlOperation.getStyle());
WSDLInterfaceOperationInput wsdlInput = wsdlOperation.getInputs()[0];
WSDLRPCPart childPart = wsdlInput.getChildPart("String_1");
assertEquals(Constants.TYPE_LITERAL_STRING, childPart.getType());
childPart = wsdlInput.getChildPart("String_2");
assertEquals(Constants.TYPE_LITERAL_STRING, childPart.getType());
WSDLInterfaceOperationOutput wsdlOutput = wsdlOperation.getOutputs()[0];
childPart = wsdlOutput.getChildPart("result");
assertEquals(Constants.TYPE_LITERAL_STRING, childPart.getType());
// check the echoSimpleUserType operation
wsdlOperation = wsdlInterface.getOperation("echoSimpleUserType");
assertEquals(Constants.URI_STYLE_RPC, wsdlOperation.getStyle());
wsdlInput = wsdlOperation.getInputs()[0];
childPart = wsdlInput.getChildPart("String_1");
assertEquals(Constants.TYPE_LITERAL_STRING, childPart.getType());