Commit 5749c03010cf262d8d34081a751a3e4e0ff0f8c9

Authored by 王通
1 parent b7414acf

1.青浦区运管所接口地址变更

src/main/java/com/bsth/webService/trafficManage/qp/WebServiceLocator.java
1   -/**
2   - * WebServiceLocator.java
3   - *
4   - * This file was auto-generated from WSDL
5   - * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6   - */
7   -
8   -package com.bsth.webService.trafficManage.qp;
9   -
10   -public class WebServiceLocator extends org.apache.axis.client.Service implements WebService {
11   -
12   - public WebServiceLocator() {
13   - }
14   -
15   -
16   - public WebServiceLocator(org.apache.axis.EngineConfiguration config) {
17   - super(config);
18   - }
19   -
20   - public WebServiceLocator(String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
21   - super(wsdlLoc, sName);
22   - }
23   -
24   - // Use to get a proxy class for WebServiceSoap
25   - private String WebServiceSoap_address = "http://qpgj.tanway.net:15335/yyws/services/WebServiceSoap";
26   -
27   - public String getWebServiceSoapAddress() {
28   - return WebServiceSoap_address;
29   - }
30   -
31   - // The WSDD service name defaults to the port name.
32   - private String WebServiceSoapWSDDServiceName = "WebServiceSoap";
33   -
34   - public String getWebServiceSoapWSDDServiceName() {
35   - return WebServiceSoapWSDDServiceName;
36   - }
37   -
38   - public void setWebServiceSoapWSDDServiceName(String name) {
39   - WebServiceSoapWSDDServiceName = name;
40   - }
41   -
42   - public com.bsth.webService.trafficManage.qp.WebServiceSoap_PortType getWebServiceSoap() throws javax.xml.rpc.ServiceException {
43   - java.net.URL endpoint;
44   - try {
45   - endpoint = new java.net.URL(WebServiceSoap_address);
46   - }
47   - catch (java.net.MalformedURLException e) {
48   - throw new javax.xml.rpc.ServiceException(e);
49   - }
50   - return getWebServiceSoap(endpoint);
51   - }
52   -
53   - public com.bsth.webService.trafficManage.qp.WebServiceSoap_PortType getWebServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
54   - try {
55   - com.bsth.webService.trafficManage.qp.WebServiceSoapSoapBindingStub _stub = new com.bsth.webService.trafficManage.qp.WebServiceSoapSoapBindingStub(portAddress, this);
56   - _stub.setPortName(getWebServiceSoapWSDDServiceName());
57   - return _stub;
58   - }
59   - catch (org.apache.axis.AxisFault e) {
60   - return null;
61   - }
62   - }
63   -
64   - public void setWebServiceSoapEndpointAddress(String address) {
65   - WebServiceSoap_address = address;
66   - }
67   -
68   - /**
69   - * For the given interface, get the stub implementation.
70   - * If this service has no port for the given interface,
71   - * then ServiceException is thrown.
72   - */
73   - public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
74   - try {
75   - if (com.bsth.webService.trafficManage.qp.WebServiceSoap_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
76   - com.bsth.webService.trafficManage.qp.WebServiceSoapSoapBindingStub _stub = new com.bsth.webService.trafficManage.qp.WebServiceSoapSoapBindingStub(new java.net.URL(WebServiceSoap_address), this);
77   - _stub.setPortName(getWebServiceSoapWSDDServiceName());
78   - return _stub;
79   - }
80   - }
81   - catch (Throwable t) {
82   - throw new javax.xml.rpc.ServiceException(t);
83   - }
84   - throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
85   - }
86   -
87   - /**
88   - * For the given interface, get the stub implementation.
89   - * If this service has no port for the given interface,
90   - * then ServiceException is thrown.
91   - */
92   - public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
93   - if (portName == null) {
94   - return getPort(serviceEndpointInterface);
95   - }
96   - String inputPortName = portName.getLocalPart();
97   - if ("WebServiceSoap".equals(inputPortName)) {
98   - return getWebServiceSoap();
99   - }
100   - else {
101   - java.rmi.Remote _stub = getPort(serviceEndpointInterface);
102   - ((org.apache.axis.client.Stub) _stub).setPortName(portName);
103   - return _stub;
104   - }
105   - }
106   -
107   - public javax.xml.namespace.QName getServiceName() {
108   - return new javax.xml.namespace.QName("http://tempuri.org/", "WebService");
109   - }
110   -
111   - private java.util.HashSet ports = null;
112   -
113   - public java.util.Iterator getPorts() {
114   - if (ports == null) {
115   - ports = new java.util.HashSet();
116   - ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "WebServiceSoap"));
117   - }
118   - return ports.iterator();
119   - }
120   -
121   - /**
122   - * Set the endpoint address for the specified port name.
123   - */
124   - public void setEndpointAddress(String portName, String address) throws javax.xml.rpc.ServiceException {
125   -
126   -if ("WebServiceSoap".equals(portName)) {
127   - setWebServiceSoapEndpointAddress(address);
128   - }
129   - else
130   -{ // Unknown Port Name
131   - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
132   - }
133   - }
134   -
135   - /**
136   - * Set the endpoint address for the specified port name.
137   - */
138   - public void setEndpointAddress(javax.xml.namespace.QName portName, String address) throws javax.xml.rpc.ServiceException {
139   - setEndpointAddress(portName.getLocalPart(), address);
140   - }
141   -
142   -}
  1 +/**
  2 + * WebServiceLocator.java
  3 + *
  4 + * This file was auto-generated from WSDL
  5 + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6 + */
  7 +
  8 +package com.bsth.webService.trafficManage.qp;
  9 +
  10 +public class WebServiceLocator extends org.apache.axis.client.Service implements WebService {
  11 +
  12 + public WebServiceLocator() {
  13 + }
  14 +
  15 +
  16 + public WebServiceLocator(org.apache.axis.EngineConfiguration config) {
  17 + super(config);
  18 + }
  19 +
  20 + public WebServiceLocator(String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
  21 + super(wsdlLoc, sName);
  22 + }
  23 +
  24 + // Use to get a proxy class for WebServiceSoap
  25 + private String WebServiceSoap_address = "http://qpgj.tanway.net:18906/yyws/services/WebServiceSoap";
  26 +
  27 + public String getWebServiceSoapAddress() {
  28 + return WebServiceSoap_address;
  29 + }
  30 +
  31 + // The WSDD service name defaults to the port name.
  32 + private String WebServiceSoapWSDDServiceName = "WebServiceSoap";
  33 +
  34 + public String getWebServiceSoapWSDDServiceName() {
  35 + return WebServiceSoapWSDDServiceName;
  36 + }
  37 +
  38 + public void setWebServiceSoapWSDDServiceName(String name) {
  39 + WebServiceSoapWSDDServiceName = name;
  40 + }
  41 +
  42 + public com.bsth.webService.trafficManage.qp.WebServiceSoap_PortType getWebServiceSoap() throws javax.xml.rpc.ServiceException {
  43 + java.net.URL endpoint;
  44 + try {
  45 + endpoint = new java.net.URL(WebServiceSoap_address);
  46 + }
  47 + catch (java.net.MalformedURLException e) {
  48 + throw new javax.xml.rpc.ServiceException(e);
  49 + }
  50 + return getWebServiceSoap(endpoint);
  51 + }
  52 +
  53 + public com.bsth.webService.trafficManage.qp.WebServiceSoap_PortType getWebServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
  54 + try {
  55 + com.bsth.webService.trafficManage.qp.WebServiceSoapSoapBindingStub _stub = new com.bsth.webService.trafficManage.qp.WebServiceSoapSoapBindingStub(portAddress, this);
  56 + _stub.setPortName(getWebServiceSoapWSDDServiceName());
  57 + return _stub;
  58 + }
  59 + catch (org.apache.axis.AxisFault e) {
  60 + return null;
  61 + }
  62 + }
  63 +
  64 + public void setWebServiceSoapEndpointAddress(String address) {
  65 + WebServiceSoap_address = address;
  66 + }
  67 +
  68 + /**
  69 + * For the given interface, get the stub implementation.
  70 + * If this service has no port for the given interface,
  71 + * then ServiceException is thrown.
  72 + */
  73 + public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
  74 + try {
  75 + if (com.bsth.webService.trafficManage.qp.WebServiceSoap_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
  76 + com.bsth.webService.trafficManage.qp.WebServiceSoapSoapBindingStub _stub = new com.bsth.webService.trafficManage.qp.WebServiceSoapSoapBindingStub(new java.net.URL(WebServiceSoap_address), this);
  77 + _stub.setPortName(getWebServiceSoapWSDDServiceName());
  78 + return _stub;
  79 + }
  80 + }
  81 + catch (Throwable t) {
  82 + throw new javax.xml.rpc.ServiceException(t);
  83 + }
  84 + throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
  85 + }
  86 +
  87 + /**
  88 + * For the given interface, get the stub implementation.
  89 + * If this service has no port for the given interface,
  90 + * then ServiceException is thrown.
  91 + */
  92 + public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
  93 + if (portName == null) {
  94 + return getPort(serviceEndpointInterface);
  95 + }
  96 + String inputPortName = portName.getLocalPart();
  97 + if ("WebServiceSoap".equals(inputPortName)) {
  98 + return getWebServiceSoap();
  99 + }
  100 + else {
  101 + java.rmi.Remote _stub = getPort(serviceEndpointInterface);
  102 + ((org.apache.axis.client.Stub) _stub).setPortName(portName);
  103 + return _stub;
  104 + }
  105 + }
  106 +
  107 + public javax.xml.namespace.QName getServiceName() {
  108 + return new javax.xml.namespace.QName("http://tempuri.org/", "WebService");
  109 + }
  110 +
  111 + private java.util.HashSet ports = null;
  112 +
  113 + public java.util.Iterator getPorts() {
  114 + if (ports == null) {
  115 + ports = new java.util.HashSet();
  116 + ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "WebServiceSoap"));
  117 + }
  118 + return ports.iterator();
  119 + }
  120 +
  121 + /**
  122 + * Set the endpoint address for the specified port name.
  123 + */
  124 + public void setEndpointAddress(String portName, String address) throws javax.xml.rpc.ServiceException {
  125 +
  126 +if ("WebServiceSoap".equals(portName)) {
  127 + setWebServiceSoapEndpointAddress(address);
  128 + }
  129 + else
  130 +{ // Unknown Port Name
  131 + throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
  132 + }
  133 + }
  134 +
  135 + /**
  136 + * Set the endpoint address for the specified port name.
  137 + */
  138 + public void setEndpointAddress(javax.xml.namespace.QName portName, String address) throws javax.xml.rpc.ServiceException {
  139 + setEndpointAddress(portName.getLocalPart(), address);
  140 + }
  141 +
  142 +}
... ...
src/main/java/com/bsth/webService/trafficManage/qp/WebServiceSoap.wsdl
... ... @@ -711,7 +711,7 @@ Built on Apr 22, 2006 (06:55:48 PDT)-->
711 711  
712 712 <wsdl:port binding="impl:WebServiceSoapSoapBinding" name="WebServiceSoap">
713 713  
714   - <wsdlsoap:address location="http://qpgj.tanway.net:15335/yyws/services/WebServiceSoap"/>
  714 + <wsdlsoap:address location="http://qpgj.tanway.net:18906/yyws/services/WebServiceSoap"/>
715 715  
716 716 </wsdl:port>
717 717  
... ...