01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19:
20: package org.apache.axis2.jaxws.sample.parallelasync.common;
21:
22: import javax.xml.namespace.QName;
23:
24: /**
25: * This class holds constant strings such as endpoint addresses and common
26: * conversion methods
27: */
28: public class Constants {
29:
30: // server hostName and WC port
31: private static final String SERVER = "localhost:8080";
32:
33: //public static final String WSDL_NAMESPACE = "http://common.wsfvt.async.jaxws";
34: public static final String WSDL_NAMESPACE = "http://org/test/parallelasync";
35:
36: public static final String SOAP11_NAMESPACE = "http://schemas.xmlsoap.org/soap/envelope";
37:
38: public static final String SOAP12_NAMESPACE = "http://www.w3.org/2003/05/soap-envelope";
39:
40: public static final QName SERVICE_QNAME = new QName(WSDL_NAMESPACE,
41: "AsyncService");
42:
43: public static final QName PORT_QNAME = new QName(WSDL_NAMESPACE,
44: "AsyncPort");
45:
46: // Endpoint addresses
47: public static final String BASE_ENDPOINT = "http://" + SERVER
48: + "/axis2/services/";
49:
50: public static final String DOCLITWR_ASYNC_ENDPOINT = BASE_ENDPOINT
51: + "AsyncService"; //+ "AsyncDocLitWrappedService";
52:
53: public static final String DOCLIT_ASYNC_ENDPOINT = BASE_ENDPOINT
54: + "AsyncService"; //+ "AsyncDocLitService";
55:
56: public static final String RPCLIT_ASYNC_ENDPOINT = BASE_ENDPOINT
57: + "AsyncService"; //+ "AsyncRpcLitService";
58:
59: public static final String THE_STRING = "This Is Just A Test";
60:
61: // how long the server should seep for before returning a response
62: public static final long SERVER_SLEEP_SEC = 120;
63:
64: // maximum amount of time to wait for async operation to complete
65: public static final int CLIENT_MAX_SLEEP_SEC = 120;
66:
67: // maximum amount of time to wait for async operation to complete
68: public static final int CLIENT_SHORT_SLEEP_SEC = 15;
69:
70: // maximum number of times the client should check to see if
71: // the server received sleep request
72: public static final int MAX_ISASLEEP_CHECK = 10;
73:
74: // number of sec to sleep in between isAsleep checks
75: public static final int SLEEP_ISASLEEP_SEC = 1;
76:
77: }
|