1
2 package org.whatsitcalled.webflange.service;
3
4
5
6
7
8
9 import java.io.File;
10 import java.net.MalformedURLException;
11 import java.net.URL;
12 import javax.xml.namespace.QName;
13 import javax.jws.WebMethod;
14 import javax.jws.WebResult;
15 import javax.xml.ws.RequestWrapper;
16 import javax.xml.ws.ResponseWrapper;
17
18
19
20
21
22
23
24
25 public final class TestService_TestServicePort_Client {
26
27 private static final QName SERVICE_NAME = new QName("http://service.webflange.whatsitcalled.org/", "TestServiceService");
28
29 private TestService_TestServicePort_Client() {
30 }
31
32 public static void main(String args[]) throws Exception {
33
34 if (args.length == 0) {
35 System.out.println("please specify wsdl");
36 System.exit(1);
37 }
38 URL wsdlURL = null;
39 File wsdlFile = new File(args[0]);
40 try {
41 if (wsdlFile.exists()) {
42 wsdlURL = wsdlFile.toURL();
43 } else {
44 wsdlURL = new URL(args[0]);
45 }
46 } catch (MalformedURLException e) {
47 e.printStackTrace();
48 }
49
50 TestServiceService ss = new TestServiceService(wsdlURL, SERVICE_NAME);
51 TestService port = ss.getTestServicePort();
52
53 {
54 System.out.println("Invoking init...");
55 port.init();
56
57
58 }
59 {
60 System.out.println("Invoking createAndRun...");
61 org.whatsitcalled.webflange.service.TestTO _createAndRun_arg0 = null;
62 java.lang.Long _createAndRun__return = port.createAndRun(_createAndRun_arg0);
63 System.out.println("createAndRun.result=" + _createAndRun__return);
64
65
66 }
67 {
68 System.out.println("Invoking createLoadTest...");
69 org.whatsitcalled.webflange.service.TestTO _createLoadTest_arg0 = null;
70 java.lang.Long _createLoadTest__return = port.createLoadTest(_createLoadTest_arg0);
71 System.out.println("createLoadTest.result=" + _createLoadTest__return);
72
73
74 }
75
76 System.exit(0);
77 }
78
79 }