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: package org.apache.axis2.jaxws.description;
20:
21: import org.apache.axis2.jaxws.util.Constants;
22:
23: import javax.wsdl.Binding;
24: import javax.wsdl.Port;
25: import javax.wsdl.Service;
26: import javax.xml.namespace.QName;
27:
28: /**
29: *
30: */
31: public interface EndpointDescriptionWSDL {
32: /**
33: * Strings representing the SOAP Binding. These correspond to the namespace of the binding
34: * extensibility element under the WSDL binding. This could be SOAP or HTTP
35: */
36: public static final String SOAP11_WSDL_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/";
37: public static final String SOAP12_WSDL_BINDING = "http://schemas.xmlsoap.org/wsdl/soap12/";
38: public static final String HTTP_WSDL_BINDING = "http://schemas.xmlsoap.org/wsdl/http/";
39: /** QNames for the SOAP address extensiblity element under the WSDL Port element */
40: public static final QName SOAP_11_ADDRESS_ELEMENT = new QName(
41: Constants.URI_WSDL_SOAP11, "address");
42: public static final QName SOAP_12_ADDRESS_ELEMENT = new QName(
43: Constants.URI_WSDL_SOAP12, "address");
44:
45: public Service getWSDLService();
46:
47: public Port getWSDLPort();
48:
49: public Binding getWSDLBinding();
50:
51: /**
52: * Returns the namespace for the specific wsdl:binding extensibility element. Typically, this is
53: * the <soap:binding> element that defines either a SOAP 1.1 or a SOAP 1.2 binding.
54: *
55: * @return String constants defined in javax.xml.ws.soap.SOAPBinding
56: */
57: public String getWSDLBindingType();
58:
59: public String getWSDLSOAPAddress();
60:
61: /**
62: * Is the WSDL definition fully specified for the endpoint (WSDL 1.1 port) represented by this
63: * EndpointDescription. If the WSDL is Partial, that means the Endpoint could not be created
64: * with the infomation contained in the WSDL file, and annotations were used.
65: *
66: * @return true if the WSDL was fully specified; false if it was partial WSDL
67: */
68: public boolean isWSDLFullySpecified();
69:
70: }
|