|
@@ -0,0 +1,121 @@
|
|
|
+
|
|
|
+package com.xt.jygl.gkjsgl.jsjdcbsj.client;
|
|
|
+
|
|
|
+import java.net.MalformedURLException;
|
|
|
+import java.net.URL;
|
|
|
+import java.util.logging.Logger;
|
|
|
+
|
|
|
+import javax.xml.namespace.QName;
|
|
|
+import javax.xml.ws.Service;
|
|
|
+import javax.xml.ws.WebEndpoint;
|
|
|
+import javax.xml.ws.WebServiceClient;
|
|
|
+import javax.xml.ws.WebServiceException;
|
|
|
+import javax.xml.ws.WebServiceFeature;
|
|
|
+
|
|
|
+import com.xt.jygl.gkjcxx.ax.client.AxService;
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * This class was generated by the JAX-WS RI.
|
|
|
+ * JAX-WS RI 2.2.4-b01
|
|
|
+ * Generated source version: 2.2
|
|
|
+ *
|
|
|
+ */
|
|
|
+@WebServiceClient(name = "jsjdcbsjService", targetNamespace = "http://webService.jsjy.com/", wsdlLocation = "http://localhost:18088/jsjdcbsjService?wsdl")
|
|
|
+public class JsjdcbsjService
|
|
|
+ extends Service
|
|
|
+{
|
|
|
+
|
|
|
+ private final static URL JSJDCBSJSERVICE_WSDL_LOCATION;
|
|
|
+ private final static WebServiceException JSJDCBSJSERVICE_EXCEPTION;
|
|
|
+ public final static QName JSJDCBSJSERVICE_QNAME = new QName("http://webService.jsjy.com/", "jsjdcbsjService");
|
|
|
+ private final static Logger logger = Logger.getLogger(com.xt.jygl.gkjsgl.jsjdcbsj.client.JsjdcbsjService.class.getName());
|
|
|
+
|
|
|
+ static {
|
|
|
+ URL url = null;
|
|
|
+ WebServiceException e = null;
|
|
|
+ try {
|
|
|
+ url = new URL("http://localhost:18088/jsjdcbsjService?wsdl");
|
|
|
+ } catch (MalformedURLException ex) {
|
|
|
+ e = new WebServiceException(ex);
|
|
|
+ }
|
|
|
+ JSJDCBSJSERVICE_WSDL_LOCATION = url;
|
|
|
+ JSJDCBSJSERVICE_EXCEPTION = e;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param ip
|
|
|
+ * :ip地址,如 192.168.0.1 或 www.webxml.com.cn
|
|
|
+ * @param port
|
|
|
+ * :端口号
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static URL getWsdlLocationByIp(String ip, String port) {
|
|
|
+ URL url = null;
|
|
|
+ String wsdl = "http://" + ip + ":" + port + "/JsjdcbsjService?wsdl";
|
|
|
+ try {
|
|
|
+ URL baseUrl;
|
|
|
+ baseUrl = AxService.class.getResource(".");
|
|
|
+ url = new URL(baseUrl, wsdl);
|
|
|
+ } catch (MalformedURLException e) {
|
|
|
+ logger.warning("Failed to create URL for the wsdl Location: '" + wsdl + "', retrying as a local file");
|
|
|
+ logger.warning(e.getMessage());
|
|
|
+ }
|
|
|
+ return url;
|
|
|
+ }
|
|
|
+
|
|
|
+ public JsjdcbsjService() {
|
|
|
+ super(__getWsdlLocation(), JSJDCBSJSERVICE_QNAME);
|
|
|
+ }
|
|
|
+
|
|
|
+ public JsjdcbsjService(WebServiceFeature... features) {
|
|
|
+ super(__getWsdlLocation(), JSJDCBSJSERVICE_QNAME, features);
|
|
|
+ }
|
|
|
+
|
|
|
+ public JsjdcbsjService(URL wsdlLocation) {
|
|
|
+ super(wsdlLocation, JSJDCBSJSERVICE_QNAME);
|
|
|
+ }
|
|
|
+
|
|
|
+ public JsjdcbsjService(URL wsdlLocation, WebServiceFeature... features) {
|
|
|
+ super(wsdlLocation, JSJDCBSJSERVICE_QNAME, features);
|
|
|
+ }
|
|
|
+
|
|
|
+ public JsjdcbsjService(URL wsdlLocation, QName serviceName) {
|
|
|
+ super(wsdlLocation, serviceName);
|
|
|
+ }
|
|
|
+
|
|
|
+ public JsjdcbsjService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
|
|
|
+ super(wsdlLocation, serviceName, features);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ * returns JsjdcbsjWebService
|
|
|
+ */
|
|
|
+ @WebEndpoint(name = "JsjdcbsjWebServicePort")
|
|
|
+ public JsjdcbsjWebService getJsjdcbsjWebServicePort() {
|
|
|
+ return super.getPort(new QName("http://webService.jsjy.com/", "JsjdcbsjWebServicePort"), JsjdcbsjWebService.class);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param features
|
|
|
+ * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
|
|
|
+ * @return
|
|
|
+ * returns JsjdcbsjWebService
|
|
|
+ */
|
|
|
+ @WebEndpoint(name = "JsjdcbsjWebServicePort")
|
|
|
+ public JsjdcbsjWebService getJsjdcbsjWebServicePort(WebServiceFeature... features) {
|
|
|
+ return super.getPort(new QName("http://webService.jsjy.com/", "JsjdcbsjWebServicePort"), JsjdcbsjWebService.class, features);
|
|
|
+ }
|
|
|
+
|
|
|
+ private static URL __getWsdlLocation() {
|
|
|
+ if (JSJDCBSJSERVICE_EXCEPTION!= null) {
|
|
|
+ throw JSJDCBSJSERVICE_EXCEPTION;
|
|
|
+ }
|
|
|
+ return JSJDCBSJSERVICE_WSDL_LOCATION;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|