Search in sources :

Example 51 with WSDLReader

use of javax.wsdl.xml.WSDLReader in project jbossws-cxf by jbossws.

the class JBWS1665TestCase method testWebService.

@Test
@RunAsClient
public void testWebService() throws Exception {
    URL wsdlURL = new URL(baseURL + "/jaxws-jbws1665/TrackingService?wsdl");
    WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
    Definition wsdlDefinition = wsdlReader.readWSDL(wsdlURL.toString());
    assertNotNull(wsdlDefinition);
}
Also used : Definition(javax.wsdl.Definition) URL(java.net.URL) WSDLReader(javax.wsdl.xml.WSDLReader) RunAsClient(org.jboss.arquillian.container.test.api.RunAsClient) Test(org.junit.Test) JBossWSTest(org.jboss.wsf.test.JBossWSTest)

Example 52 with WSDLReader

use of javax.wsdl.xml.WSDLReader in project jbossws-cxf by jbossws.

the class JBWS2150TestCase method getWSDLDefinition.

private Definition getWSDLDefinition(String wsdlLocation) throws Exception {
    WSDLFactory wsdlFactory = WSDLFactory.newInstance();
    WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
    wsdlReader.setFeature("javax.wsdl.importDocuments", false);
    wsdlReader.setFeature("javax.wsdl.verbose", false);
    Definition definition = wsdlReader.readWSDL(null, wsdlLocation);
    return definition;
}
Also used : WSDLFactory(javax.wsdl.factory.WSDLFactory) Definition(javax.wsdl.Definition) WSDLReader(javax.wsdl.xml.WSDLReader)

Example 53 with WSDLReader

use of javax.wsdl.xml.WSDLReader in project jbossws-cxf by jbossws.

the class EndpointTestCase method readWSDL.

private void readWSDL(URL wsdlURL) throws Exception {
    WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
    Definition wsdlDefinition = wsdlReader.readWSDL(wsdlURL.toString());
    assertNotNull(wsdlDefinition);
}
Also used : Definition(javax.wsdl.Definition) WSDLReader(javax.wsdl.xml.WSDLReader)

Example 54 with WSDLReader

use of javax.wsdl.xml.WSDLReader in project jbossws-cxf by jbossws.

the class JBWS944TestCase method assertWSDLAccess.

private void assertWSDLAccess() throws Exception {
    URL wsdlURL = new URL(baseURL + "/jaxws-jbws944/FooBean01?wsdl");
    WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
    Definition wsdlDefinition = wsdlReader.readWSDL(wsdlURL.toString());
    assertNotNull(wsdlDefinition);
}
Also used : Definition(javax.wsdl.Definition) URL(java.net.URL) WSDLReader(javax.wsdl.xml.WSDLReader)

Example 55 with WSDLReader

use of javax.wsdl.xml.WSDLReader in project jbossws-cxf by jbossws.

the class JBWS860TestCase method testAccessInventoryServiceWsdl.

@Test
@RunAsClient
public void testAccessInventoryServiceWsdl() throws Exception {
    URL wsdlURL = new URL(baseURL + "/InventoryWebService?wsdl");
    WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
    Definition wsdlDefinition = wsdlReader.readWSDL(wsdlURL.toString());
    assertNotNull(wsdlDefinition);
}
Also used : Definition(javax.wsdl.Definition) URL(java.net.URL) WSDLReader(javax.wsdl.xml.WSDLReader) RunAsClient(org.jboss.arquillian.container.test.api.RunAsClient) Test(org.junit.Test) JBossWSTest(org.jboss.wsf.test.JBossWSTest)

Aggregations

WSDLReader (javax.wsdl.xml.WSDLReader)60 Definition (javax.wsdl.Definition)35 WSDLFactory (javax.wsdl.factory.WSDLFactory)25 WSDLException (javax.wsdl.WSDLException)16 URL (java.net.URL)15 Test (org.junit.Test)13 Service (javax.wsdl.Service)8 File (java.io.File)7 RunAsClient (org.jboss.arquillian.container.test.api.RunAsClient)7 JBossWSTest (org.jboss.wsf.test.JBossWSTest)7 Document (org.w3c.dom.Document)7 QName (javax.xml.namespace.QName)6 InputSource (org.xml.sax.InputSource)6 ByteArrayInputStream (java.io.ByteArrayInputStream)5 Bus (org.apache.cxf.Bus)5 APIManagementException (org.wso2.carbon.apimgt.api.APIManagementException)5 APIMgtWSDLException (org.wso2.carbon.apimgt.impl.wsdl.exceptions.APIMgtWSDLException)5 IOException (java.io.IOException)4 ArrayList (java.util.ArrayList)4 HashMap (java.util.HashMap)4