Search in sources :

Example 1 with HeaderService

use of org.apache.headers.HeaderService in project cxf by apache.

the class Client method main.

public static void main(String[] args) throws Exception {
    if (args.length == 0) {
        System.out.println("please specify wsdl");
        System.exit(1);
    }
    URL wsdlURL;
    File wsdlFile = new File(args[0]);
    if (wsdlFile.exists()) {
        wsdlURL = wsdlFile.toURI().toURL();
    } else {
        wsdlURL = new URL(args[0]);
    }
    HeaderService hs = new HeaderService(wsdlURL, SERVICE_NAME);
    HeaderTester proxy = hs.getSoapPort();
    invokeInHeader(proxy);
    invokeOutHeader(proxy);
    invokeInOutHeader(proxy);
}
Also used : HeaderService(org.apache.headers.HeaderService) HeaderTester(org.apache.headers.HeaderTester) File(java.io.File) URL(java.net.URL)

Aggregations

File (java.io.File)1 URL (java.net.URL)1 HeaderService (org.apache.headers.HeaderService)1 HeaderTester (org.apache.headers.HeaderTester)1