use of org.jboss.as.test.integration.xerces.ws.XercesUsageWebService in project wildfly by wildfly.
the class XercesUsageInWebServiceTestCase method testXercesUsageInWebService.
/**
* Test that the webservice invocation works fine
*
* @throws Exception
*/
@OperateOnDeployment("webservice-app-with-xerces")
@Test
public void testXercesUsageInWebService() throws Exception {
final QName serviceName = new QName("org.jboss.as.test.integration.xerces.ws", "XercesUsageWebService");
final URL wsdlURL = new URL(url.toExternalForm() + "XercesUsageWebService?wsdl");
final Service service = Service.create(wsdlURL, serviceName);
final XercesUsageWSEndpoint port = service.getPort(XercesUsageWSEndpoint.class);
final String xml = "dummy.xml";
final String result = port.parseUsingXerces(xml);
Assert.assertEquals("Unexpected return message from webservice", XercesUsageWebService.SUCCESS_MESSAGE, result);
}
Aggregations