Revision 3215
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.71/org.gvsig.busquedacatastral.lib/pom.xml | ||
---|---|---|
1 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.busquedacatastral</artifactId> |
|
6 |
<version>1.0.71</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.busquedacatastral.lib</artifactId> |
|
9 |
<packaging>pom</packaging> |
|
10 |
<name>org.gvsig.busquedacatastral.lib</name> |
|
11 |
<modules> |
|
12 |
<module>org.gvsig.busquedacatastral.lib.api</module> |
|
13 |
<module>org.gvsig.busquedacatastral.lib.impl</module> |
|
14 |
</modules> |
|
15 |
</project> |
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.71/org.gvsig.busquedacatastral.lib/org.gvsig.busquedacatastral.lib.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library | ||
---|---|---|
1 |
org.gvsig.busquedacatastral.lib.impl.DefaultBusquedaCatastralLibrary |
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.71/org.gvsig.busquedacatastral.lib/org.gvsig.busquedacatastral.lib.impl/src/main/java/org/gvsig/busquedacatastral/lib/impl/DefaultReferenciaCatastral.java | ||
---|---|---|
1 |
package org.gvsig.busquedacatastral.lib.impl; |
|
2 |
|
|
3 |
import org.apache.commons.lang3.StringUtils; |
|
4 |
import org.gvsig.busquedacatastral.lib.api.ReferenciaCatastral; |
|
5 |
import org.gvsig.busquedacatastral.lib.api.TipoVia; |
|
6 |
import org.gvsig.tools.ToolsLocator; |
|
7 |
import org.gvsig.tools.i18n.I18nManager; |
|
8 |
|
|
9 |
public class DefaultReferenciaCatastral implements ReferenciaCatastral{ |
|
10 |
|
|
11 |
String pc1;//Posiciones 1-7 |
|
12 |
String pc2;//Posiciones 8-14 |
|
13 |
String car;//Posiciones 15-18 |
|
14 |
String dc1;//19 |
|
15 |
String dc2;//20 |
|
16 |
|
|
17 |
String via; |
|
18 |
TipoVia tipoVia; |
|
19 |
String patio; |
|
20 |
String km; |
|
21 |
String bloque; |
|
22 |
String escalera; |
|
23 |
String planta; |
|
24 |
String puerta; |
|
25 |
String poligono; |
|
26 |
String parcela; |
|
27 |
String provincia; |
|
28 |
String municipio; |
|
29 |
String paraje; |
|
30 |
|
|
31 |
@Override |
|
32 |
public String getRC() { |
|
33 |
return getPc1()+getPc2()+getCar()+getDc1()+getDc2(); |
|
34 |
} |
|
35 |
|
|
36 |
@Override |
|
37 |
public String getRCParcial() { |
|
38 |
return getPc1()+getPc2(); |
|
39 |
} |
|
40 |
|
|
41 |
@Override |
|
42 |
public String getLocalizacion() { |
|
43 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
44 |
String localizacion=""; |
|
45 |
if (getTipoVia()!=null){ |
|
46 |
localizacion+=getTipoVia().getAbrev(); |
|
47 |
} |
|
48 |
if (getVia()!=null){ |
|
49 |
if (StringUtils.isNotEmpty(localizacion)){ |
|
50 |
localizacion+=" "; |
|
51 |
} |
|
52 |
localizacion+=getVia(); |
|
53 |
} |
|
54 |
if (getPatio()!=null){ |
|
55 |
if (StringUtils.isNotEmpty(localizacion)){ |
|
56 |
localizacion+=" "; |
|
57 |
} |
|
58 |
localizacion+=getPatio(); |
|
59 |
} |
|
60 |
if (getKm()!=null){ |
|
61 |
if (StringUtils.isNotEmpty(localizacion)){ |
|
62 |
localizacion+=" "; |
|
63 |
} |
|
64 |
String km=i18nManager.getTranslation("_km"); |
|
65 |
localizacion+=km+" "+getKm(); |
|
66 |
} |
|
67 |
if (getBloque()!=null){ |
|
68 |
if (StringUtils.isNotEmpty(localizacion)){ |
|
69 |
localizacion+=" "; |
|
70 |
} |
|
71 |
String bloque=i18nManager.getTranslation("_bloque"); |
|
72 |
localizacion+=bloque+" "+getBloque(); |
|
73 |
} |
|
74 |
if (getEscalera()!=null){ |
|
75 |
if (StringUtils.isNotEmpty(localizacion)){ |
|
76 |
localizacion+=" "; |
|
77 |
} |
|
78 |
String escalera=i18nManager.getTranslation("_escalera"); |
|
79 |
localizacion+=escalera+" "+getEscalera(); |
|
80 |
} |
|
81 |
if (getPlanta()!=null){ |
|
82 |
if (StringUtils.isNotEmpty(localizacion)){ |
|
83 |
localizacion+=" "; |
|
84 |
} |
|
85 |
String planta=i18nManager.getTranslation("_planta"); |
|
86 |
localizacion+=planta+" "+getPlanta(); |
|
87 |
} |
|
88 |
if (getPuerta()!=null){ |
|
89 |
if (StringUtils.isNotEmpty(localizacion)){ |
|
90 |
localizacion+=" "; |
|
91 |
} |
|
92 |
String puerta=i18nManager.getTranslation("_puerta"); |
|
93 |
localizacion+=puerta+" "+getPuerta(); |
|
94 |
} |
|
95 |
if (getPoligono()!=null){ |
|
96 |
if (StringUtils.isNotEmpty(localizacion)){ |
|
97 |
localizacion+=" "; |
|
98 |
} |
|
99 |
String poligono=i18nManager.getTranslation("_poligono"); |
|
100 |
localizacion+=poligono+" "+getPoligono(); |
|
101 |
} |
|
102 |
if (getParcela()!=null){ |
|
103 |
if (StringUtils.isNotEmpty(localizacion)){ |
|
104 |
localizacion+=" "; |
|
105 |
} |
|
106 |
String parcela=i18nManager.getTranslation("_parcela"); |
|
107 |
localizacion+=parcela+" "+getParcela(); |
|
108 |
} |
|
109 |
if (getParaje()!=null){ |
|
110 |
if (StringUtils.isNotEmpty(localizacion)){ |
|
111 |
localizacion+=" "; |
|
112 |
} |
|
113 |
String paraje=i18nManager.getTranslation("_paraje"); |
|
114 |
localizacion+=paraje+" "+getParaje(); |
|
115 |
} |
|
116 |
if (getMunicipio()!=null){ |
|
117 |
if (StringUtils.isNotEmpty(localizacion)){ |
|
118 |
localizacion+=" "; |
|
119 |
} |
|
120 |
localizacion+=getMunicipio(); |
|
121 |
} |
|
122 |
if (getProvincia()!=null){ |
|
123 |
localizacion+="("+getProvincia()+")"; |
|
124 |
} |
|
125 |
return localizacion; |
|
126 |
|
|
127 |
} |
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
132 |
|
|
133 |
@Override |
|
134 |
public boolean equals(Object obj) { |
|
135 |
if (this == obj) |
|
136 |
return true; |
|
137 |
if (obj == null) |
|
138 |
return false; |
|
139 |
if (getClass() != obj.getClass()) |
|
140 |
return false; |
|
141 |
DefaultReferenciaCatastral other = (DefaultReferenciaCatastral) obj; |
|
142 |
if (getLocalizacion() == null) { |
|
143 |
if (other.getLocalizacion() != null) |
|
144 |
return false; |
|
145 |
} else if (!getLocalizacion().equals(other.getLocalizacion())) |
|
146 |
return false; |
|
147 |
if (getRC() == null) { |
|
148 |
if (other.getRC() != null) |
|
149 |
return false; |
|
150 |
} else if (!getRC().equals(other.getRC())) |
|
151 |
return false; |
|
152 |
return true; |
|
153 |
} |
|
154 |
|
|
155 |
|
|
156 |
public String getPc1() { |
|
157 |
return pc1; |
|
158 |
} |
|
159 |
|
|
160 |
|
|
161 |
public void setPc1(String pc1) { |
|
162 |
this.pc1 = pc1; |
|
163 |
} |
|
164 |
|
|
165 |
|
|
166 |
public String getPc2() { |
|
167 |
return pc2; |
|
168 |
} |
|
169 |
|
|
170 |
|
|
171 |
public void setPc2(String pc2) { |
|
172 |
this.pc2 = pc2; |
|
173 |
} |
|
174 |
|
|
175 |
|
|
176 |
public String getCar() { |
|
177 |
return car; |
|
178 |
} |
|
179 |
|
|
180 |
|
|
181 |
public void setCar(String car) { |
|
182 |
this.car = car; |
|
183 |
} |
|
184 |
|
|
185 |
|
|
186 |
public String getDc1() { |
|
187 |
return dc1; |
|
188 |
} |
|
189 |
|
|
190 |
|
|
191 |
public void setDc1(String dc1) { |
|
192 |
this.dc1 = dc1; |
|
193 |
} |
|
194 |
|
|
195 |
|
|
196 |
public String getDc2() { |
|
197 |
return dc2; |
|
198 |
} |
|
199 |
|
|
200 |
|
|
201 |
public void setDc2(String dc2) { |
|
202 |
this.dc2 = dc2; |
|
203 |
} |
|
204 |
|
|
205 |
|
|
206 |
public String getVia() { |
|
207 |
return via; |
|
208 |
} |
|
209 |
|
|
210 |
|
|
211 |
public void setVia(String via) { |
|
212 |
this.via = via; |
|
213 |
} |
|
214 |
|
|
215 |
|
|
216 |
public TipoVia getTipoVia() { |
|
217 |
return tipoVia; |
|
218 |
} |
|
219 |
|
|
220 |
|
|
221 |
public void setTipoVia(TipoVia tipoVia) { |
|
222 |
this.tipoVia = tipoVia; |
|
223 |
} |
|
224 |
|
|
225 |
|
|
226 |
public String getPatio() { |
|
227 |
return patio; |
|
228 |
} |
|
229 |
|
|
230 |
|
|
231 |
public void setPatio(String patio) { |
|
232 |
this.patio = patio; |
|
233 |
} |
|
234 |
|
|
235 |
|
|
236 |
public String getKm() { |
|
237 |
return km; |
|
238 |
} |
|
239 |
|
|
240 |
|
|
241 |
public void setKm(String km) { |
|
242 |
this.km = km; |
|
243 |
} |
|
244 |
|
|
245 |
|
|
246 |
public String getBloque() { |
|
247 |
return bloque; |
|
248 |
} |
|
249 |
|
|
250 |
|
|
251 |
public void setBloque(String bloque) { |
|
252 |
this.bloque = bloque; |
|
253 |
} |
|
254 |
|
|
255 |
|
|
256 |
public String getEscalera() { |
|
257 |
return escalera; |
|
258 |
} |
|
259 |
|
|
260 |
|
|
261 |
public void setEscalera(String escalera) { |
|
262 |
this.escalera = escalera; |
|
263 |
} |
|
264 |
|
|
265 |
|
|
266 |
public String getPlanta() { |
|
267 |
return planta; |
|
268 |
} |
|
269 |
|
|
270 |
|
|
271 |
public void setPlanta(String planta) { |
|
272 |
this.planta = planta; |
|
273 |
} |
|
274 |
|
|
275 |
|
|
276 |
public String getPuerta() { |
|
277 |
return puerta; |
|
278 |
} |
|
279 |
|
|
280 |
|
|
281 |
public void setPuerta(String puerta) { |
|
282 |
this.puerta = puerta; |
|
283 |
} |
|
284 |
|
|
285 |
|
|
286 |
public String getPoligono() { |
|
287 |
return poligono; |
|
288 |
} |
|
289 |
|
|
290 |
|
|
291 |
public void setPoligono(String poligono) { |
|
292 |
this.poligono = poligono; |
|
293 |
} |
|
294 |
|
|
295 |
|
|
296 |
public String getParcela() { |
|
297 |
return parcela; |
|
298 |
} |
|
299 |
|
|
300 |
|
|
301 |
public void setParcela(String parcela) { |
|
302 |
this.parcela = parcela; |
|
303 |
} |
|
304 |
|
|
305 |
|
|
306 |
public String getProvincia() { |
|
307 |
return provincia; |
|
308 |
} |
|
309 |
|
|
310 |
|
|
311 |
public void setProvincia(String provincia) { |
|
312 |
this.provincia = provincia; |
|
313 |
} |
|
314 |
|
|
315 |
|
|
316 |
public String getMunicipio() { |
|
317 |
return municipio; |
|
318 |
} |
|
319 |
|
|
320 |
|
|
321 |
public void setMunicipio(String municipio) { |
|
322 |
this.municipio = municipio; |
|
323 |
} |
|
324 |
|
|
325 |
|
|
326 |
public String getParaje() { |
|
327 |
return paraje; |
|
328 |
} |
|
329 |
|
|
330 |
|
|
331 |
public void setParaje(String paraje) { |
|
332 |
this.paraje = paraje; |
|
333 |
} |
|
334 |
|
|
335 |
} |
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.71/org.gvsig.busquedacatastral.lib/org.gvsig.busquedacatastral.lib.impl/src/main/java/org/gvsig/busquedacatastral/lib/impl/MunicipiosFactory.java | ||
---|---|---|
1 |
package org.gvsig.busquedacatastral.lib.impl; |
|
2 |
|
|
3 |
import java.io.ByteArrayInputStream; |
|
4 |
import java.io.File; |
|
5 |
import java.io.InputStream; |
|
6 |
import java.rmi.RemoteException; |
|
7 |
import java.util.List; |
|
8 |
|
|
9 |
import javax.xml.bind.JAXBContext; |
|
10 |
import javax.xml.bind.Unmarshaller; |
|
11 |
|
|
12 |
import org.apache.axis.message.MessageElement; |
|
13 |
import org.apache.commons.lang3.StringUtils; |
|
14 |
|
|
15 |
import org.gvsig.busquedacatastral.lib.api.BusquedaCatastralManager; |
|
16 |
import org.gvsig.busquedacatastral.lib.api.QueryCatastral; |
|
17 |
import org.gvsig.busquedacatastral.lib.api.exceptions.BusquedaCatastralException; |
|
18 |
import org.gvsig.busquedacatastral.lib.api.exceptions.BusquedaCatastralGettingParamsException; |
|
19 |
import org.gvsig.busquedacatastral.lib.api.exceptions.BusquedaCatastralRemoteServiceException; |
|
20 |
import org.gvsig.busquedacatastral.lib.impl.ws.classes.MunicipiosWSResponse; |
|
21 |
import org.gvsig.busquedacatastral.lib.impl.ws.classes.cxf.ConsultaMunicipieror; |
|
22 |
import org.gvsig.busquedacatastral.lib.impl.ws.classes.cxf.Muni; |
|
23 |
import org.gvsig.busquedacatastral.lib.impl.ws.classes.cxf.Municipiero; |
|
24 |
import org.gvsig.fmap.dal.DataTypes; |
|
25 |
import org.gvsig.fmap.dal.exception.DataException; |
|
26 |
import org.gvsig.fmap.dal.feature.EditableFeature; |
|
27 |
import org.gvsig.fmap.dal.feature.EditableFeatureType; |
|
28 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
29 |
import org.gvsig.tools.ToolsLocator; |
|
30 |
import org.gvsig.tools.dynobject.DynObject; |
|
31 |
import org.gvsig.tools.exception.BaseException; |
|
32 |
import org.gvsig.tools.i18n.I18nManager; |
|
33 |
|
|
34 |
import org.slf4j.Logger; |
|
35 |
import org.slf4j.LoggerFactory; |
|
36 |
|
|
37 |
public class MunicipiosFactory extends WSObjectsFactory{ |
|
38 |
|
|
39 |
private static final Logger logger = LoggerFactory |
|
40 |
.getLogger(MunicipiosFactory.class); |
|
41 |
|
|
42 |
private final static String MUNICIPIOS_FILENAME="municipios.dbf"; |
|
43 |
|
|
44 |
|
|
45 |
public MunicipiosFactory(BusquedaCatastralManager manager){ |
|
46 |
super(manager); |
|
47 |
} |
|
48 |
|
|
49 |
private Municipiero municipiero=null; |
|
50 |
private QueryCatastral query; |
|
51 |
private String filtro; |
|
52 |
public List<DynObject> getMunicipios(QueryCatastral query) throws BusquedaCatastralException{ |
|
53 |
this.query=query; |
|
54 |
this.filtro=null; |
|
55 |
return getMunicipios(); |
|
56 |
} |
|
57 |
|
|
58 |
public List<DynObject> getMunicipios(QueryCatastral query, String filtro) throws BusquedaCatastralException{ |
|
59 |
this.query=query; |
|
60 |
this.filtro=filtro; |
|
61 |
return getMunicipios(); |
|
62 |
} |
|
63 |
|
|
64 |
private List<DynObject> getMunicipios() throws BusquedaCatastralException{ |
|
65 |
File municipiosFile=null; |
|
66 |
|
|
67 |
try { |
|
68 |
if (query==null||query.getProvincia()==null){ |
|
69 |
logger.error("Provincia no informada"); |
|
70 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
71 |
throw new BusquedaCatastralGettingParamsException(i18nManager.getTranslation("_error_provincia_not_informed"), null); |
|
72 |
} |
|
73 |
|
|
74 |
DynObject provincia=query.getProvincia(); |
|
75 |
String codProvincia=(String) provincia.getDynValue(BusquedaCatastralManager.CAMPO_PROVINCIA_CODIGO); |
|
76 |
File provinciaFolder=new File(manager.getCacheFolder(),codProvincia); |
|
77 |
if (!provinciaFolder.exists()){ |
|
78 |
provinciaFolder.mkdirs(); |
|
79 |
} |
|
80 |
municipiosFile = new File(provinciaFolder,MUNICIPIOS_FILENAME); |
|
81 |
if (!municipiosFile.exists()){ |
|
82 |
createDBF(municipiosFile); |
|
83 |
} |
|
84 |
return this.getListFromDBF(municipiosFile); |
|
85 |
} catch ( BusquedaCatastralException e) { |
|
86 |
throw e; |
|
87 |
} catch ( Exception e) { |
|
88 |
logger.warn("Error getting municipios from file '"+municipiosFile.getAbsolutePath()+"'.",e); |
|
89 |
throw new BusquedaCatastralGettingParamsException(e); |
|
90 |
} |
|
91 |
} |
|
92 |
|
|
93 |
@Override |
|
94 |
protected void defineType(EditableFeatureType type) throws BusquedaCatastralException { |
|
95 |
municipiero=getMunicipiero(query); |
|
96 |
int maxNombre=0; |
|
97 |
int maxCodProvINE=0; |
|
98 |
int maxCodMuniINE=0; |
|
99 |
|
|
100 |
for( Muni muni:municipiero.getMuni()){ |
|
101 |
if(StringUtils.isNotEmpty(muni.getNm()) && muni.getNm().length()>maxNombre){ |
|
102 |
maxNombre=muni.getNm().length(); |
|
103 |
} |
|
104 |
if(StringUtils.isNotEmpty(muni.getLoine().getCp()) && muni.getLoine().getCp().length()>maxCodProvINE){ |
|
105 |
maxCodProvINE=muni.getLoine().getCp().length(); |
|
106 |
} |
|
107 |
if(StringUtils.isNotEmpty(muni.getLoine().getCm()) && muni.getLoine().getCm().length()>maxCodMuniINE){ |
|
108 |
maxCodMuniINE=muni.getLoine().getCm().length(); |
|
109 |
} |
|
110 |
|
|
111 |
} |
|
112 |
type.add(BusquedaCatastralManager.CAMPO_MUNICIPIO_NOMBRE, DataTypes.STRING, |
|
113 |
maxNombre); |
|
114 |
type.add(BusquedaCatastralManager.CAMPO_MUNICIPIO_DELEGACION_MEH, DataTypes.LONG).setAllowNull(true); |
|
115 |
type.add(BusquedaCatastralManager.CAMPO_MUNICIPIO_CODIGO_MEH, DataTypes.LONG).setAllowNull(true); |
|
116 |
type.add(BusquedaCatastralManager.CAMPO_MUNICIPIO_PROVINCIA_INE, DataTypes.STRING, |
|
117 |
maxCodProvINE).setAllowNull(true); |
|
118 |
type.add(BusquedaCatastralManager.CAMPO_MUNICIPIO_MUNICIPIO_INE, DataTypes.STRING, |
|
119 |
maxCodMuniINE).setAllowNull(true); |
|
120 |
|
|
121 |
} |
|
122 |
|
|
123 |
@Override |
|
124 |
protected void writeFileData(FeatureStore featureStore) throws BusquedaCatastralException, DataException { |
|
125 |
municipiero=getMunicipiero(query); |
|
126 |
for(Muni muni:municipiero.getMuni()){ |
|
127 |
EditableFeature ef; |
|
128 |
ef = featureStore.createNewFeature().getEditable(); |
|
129 |
ef.set(BusquedaCatastralManager.CAMPO_MUNICIPIO_NOMBRE, muni.getNm()); |
|
130 |
ef.set(BusquedaCatastralManager.CAMPO_MUNICIPIO_DELEGACION_MEH, muni.getLocat().getCd()); |
|
131 |
ef.set(BusquedaCatastralManager.CAMPO_MUNICIPIO_CODIGO_MEH, muni.getLocat().getCmc()); |
|
132 |
ef.set(BusquedaCatastralManager.CAMPO_MUNICIPIO_PROVINCIA_INE, muni.getLoine().getCp()); |
|
133 |
ef.set(BusquedaCatastralManager.CAMPO_MUNICIPIO_MUNICIPIO_INE, muni.getLoine().getCm()); |
|
134 |
featureStore.insert(ef); |
|
135 |
} |
|
136 |
municipiero = null; |
|
137 |
} |
|
138 |
|
|
139 |
private Municipiero getMunicipiero(QueryCatastral query) throws BusquedaCatastralException{ |
|
140 |
if( municipiero == null ) { |
|
141 |
try { |
|
142 |
DynObject provincia=query.getProvincia(); |
|
143 |
String nombreProvincia=(String) provincia.getDynValue(BusquedaCatastralManager.CAMPO_PROVINCIA_NOMBRE); |
|
144 |
MunicipiosWSResponse municipios = getCatastroWS().obtenerMunicipios(nombreProvincia, ""); |
|
145 |
if (municipios!=null){ |
|
146 |
MessageElement[] any = municipios.get_any(); |
|
147 |
MessageElement me=any[0]; |
|
148 |
JAXBContext jaxbContext = JAXBContext.newInstance(ConsultaMunicipieror.class); |
|
149 |
|
|
150 |
Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller(); |
|
151 |
InputStream input = new ByteArrayInputStream(me.getAsString().getBytes()); |
|
152 |
ConsultaMunicipieror cm = (ConsultaMunicipieror) jaxbUnmarshaller.unmarshal(input); |
|
153 |
|
|
154 |
if (cm!=null && cm.getLerr()!=null){ |
|
155 |
webserviceErrors(cm.getLerr().getErr()); |
|
156 |
} |
|
157 |
|
|
158 |
municipiero = cm.getMunicipiero(); |
|
159 |
}else{ |
|
160 |
logger.error("Webservice response is empty"); |
|
161 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
162 |
throw new BusquedaCatastralGettingParamsException(i18nManager.getTranslation("_error_reading_response_from_ws"),null); |
|
163 |
} |
|
164 |
|
|
165 |
} catch (RemoteException e) { |
|
166 |
logger.error("Error accesing webservice",e); |
|
167 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
168 |
throw new BusquedaCatastralRemoteServiceException(i18nManager.getTranslation("_error_obtaining_catastro_webservice"), e); |
|
169 |
} catch (Exception e) { |
|
170 |
logger.error("Error marshalling response from webservice",e); |
|
171 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
172 |
throw new BusquedaCatastralGettingParamsException(i18nManager.getTranslation("_error_reading_response_from_ws"), e); |
|
173 |
} |
|
174 |
} |
|
175 |
return municipiero; |
|
176 |
} |
|
177 |
|
|
178 |
@Override |
|
179 |
protected String getExpressionQuery() { |
|
180 |
if (StringUtils.isNotEmpty(filtro)){ |
|
181 |
StringBuilder strb=new StringBuilder(); |
|
182 |
strb.append(BusquedaCatastralManager.CAMPO_MUNICIPIO_NOMBRE); |
|
183 |
strb.append(" like '%"); |
|
184 |
strb.append(filtro.toUpperCase()+"%'"); |
|
185 |
return strb.toString(); |
|
186 |
} |
|
187 |
return null; |
|
188 |
} |
|
189 |
|
|
190 |
|
|
191 |
} |
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.71/org.gvsig.busquedacatastral.lib/org.gvsig.busquedacatastral.lib.impl/src/main/java/org/gvsig/busquedacatastral/lib/impl/DefaultBusquedaCatastralManager.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 gvSIG Association |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.busquedacatastral.lib.impl; |
|
24 |
|
|
25 |
import java.io.File; |
|
26 |
import java.util.ArrayList; |
|
27 |
import java.util.Arrays; |
|
28 |
import java.util.List; |
|
29 |
|
|
30 |
import org.gvsig.busquedacatastral.lib.api.BusquedaCatastralManager; |
|
31 |
import org.gvsig.busquedacatastral.lib.api.QueryCatastral; |
|
32 |
import org.gvsig.busquedacatastral.lib.api.ReferenciaCatastral; |
|
33 |
import org.gvsig.busquedacatastral.lib.api.SRSCatastro; |
|
34 |
import org.gvsig.busquedacatastral.lib.api.TipoVia; |
|
35 |
import org.gvsig.busquedacatastral.lib.api.exceptions.BusquedaCatastralException; |
|
36 |
import org.gvsig.busquedacatastral.lib.api.exceptions.BusquedaCatastralGettingDataException; |
|
37 |
import org.gvsig.busquedacatastral.lib.api.exceptions.BusquedaCatastralGettingParamsException; |
|
38 |
import org.gvsig.busquedacatastral.lib.api.exceptions.BusquedaCatastralInvalidSRSException; |
|
39 |
import org.gvsig.fmap.geom.primitive.Point; |
|
40 |
import org.gvsig.tools.dynobject.DynObject; |
|
41 |
|
|
42 |
import org.slf4j.Logger; |
|
43 |
import org.slf4j.LoggerFactory; |
|
44 |
|
|
45 |
|
|
46 |
/** |
|
47 |
* Busqueda catastral manager |
|
48 |
* |
|
49 |
*/ |
|
50 |
public class DefaultBusquedaCatastralManager implements BusquedaCatastralManager{ |
|
51 |
|
|
52 |
private static final Logger logger = LoggerFactory |
|
53 |
.getLogger(DefaultBusquedaCatastralManager.class); |
|
54 |
|
|
55 |
private ProvinciasFactory provinciasFactory=null; |
|
56 |
private MunicipiosFactory municipiosFactory=null; |
|
57 |
private ViasFactory viasFactory=null; |
|
58 |
private NumerosFactory numerosFactory=null; |
|
59 |
private ReferenciasCatastralesFactory referenciasCatastralesFactory=null; |
|
60 |
private PointFactory pointFactory=null; |
|
61 |
private File cacheFolder; |
|
62 |
|
|
63 |
@Override |
|
64 |
public void deleteCache() { |
|
65 |
deleteFolder(cacheFolder); |
|
66 |
} |
|
67 |
|
|
68 |
private static void deleteFolder(File folder) { |
|
69 |
File[] files = folder.listFiles(); |
|
70 |
if(files!=null) { //some JVMs return null for empty dirs |
|
71 |
for(File f: files) { |
|
72 |
if(f.isDirectory()) { |
|
73 |
deleteFolder(f); |
|
74 |
} else { |
|
75 |
f.delete(); |
|
76 |
} |
|
77 |
} |
|
78 |
} |
|
79 |
folder.delete(); |
|
80 |
} |
|
81 |
|
|
82 |
@Override |
|
83 |
public QueryCatastral createQuery() { |
|
84 |
return new QueryCatastralImpl(); |
|
85 |
} |
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
@Override |
|
90 |
public List<DynObject> getProvincias() |
|
91 |
throws BusquedaCatastralException { |
|
92 |
if (provinciasFactory==null){ |
|
93 |
provinciasFactory=new ProvinciasFactory(this); |
|
94 |
} |
|
95 |
return provinciasFactory.getProvincias(); |
|
96 |
} |
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
@Override |
|
101 |
public List<DynObject> getMunicipios(QueryCatastral query) |
|
102 |
throws BusquedaCatastralException { |
|
103 |
if (municipiosFactory==null){ |
|
104 |
municipiosFactory=new MunicipiosFactory(this); |
|
105 |
} |
|
106 |
return municipiosFactory.getMunicipios(query); |
|
107 |
} |
|
108 |
|
|
109 |
|
|
110 |
|
|
111 |
@Override |
|
112 |
public List<DynObject> getMunicipios(QueryCatastral query, String municipio) |
|
113 |
throws BusquedaCatastralException { |
|
114 |
if (municipiosFactory==null){ |
|
115 |
municipiosFactory=new MunicipiosFactory(this); |
|
116 |
} |
|
117 |
return municipiosFactory.getMunicipios(query, municipio); |
|
118 |
} |
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
@Override |
|
123 |
public List<TipoVia> getTiposDeVia() |
|
124 |
throws BusquedaCatastralException { |
|
125 |
List<TipoVia> tipoVias=new ArrayList<TipoVia>(Arrays.asList(TipoVia.values())); |
|
126 |
return tipoVias; |
|
127 |
} |
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
@Override |
|
132 |
public List<DynObject> getVias(QueryCatastral query) |
|
133 |
throws BusquedaCatastralException { |
|
134 |
if (viasFactory==null){ |
|
135 |
viasFactory=new ViasFactory(this); |
|
136 |
} |
|
137 |
return viasFactory.getVias(query); |
|
138 |
} |
|
139 |
|
|
140 |
|
|
141 |
|
|
142 |
@Override |
|
143 |
public List<DynObject> getVias(QueryCatastral query, String via) |
|
144 |
throws BusquedaCatastralException { |
|
145 |
if (viasFactory==null){ |
|
146 |
viasFactory=new ViasFactory(this); |
|
147 |
} |
|
148 |
return viasFactory.getVias(query, via); |
|
149 |
} |
|
150 |
|
|
151 |
|
|
152 |
|
|
153 |
@Override |
|
154 |
public List<String> getNumeros(QueryCatastral query, String inicio, |
|
155 |
String fin) throws BusquedaCatastralException { |
|
156 |
if (numerosFactory==null){ |
|
157 |
numerosFactory=new NumerosFactory(this); |
|
158 |
} |
|
159 |
return numerosFactory.getNumeros(query, inicio, fin); |
|
160 |
} |
|
161 |
|
|
162 |
|
|
163 |
|
|
164 |
@Override |
|
165 |
public List<ReferenciaCatastral> getReferenciasCatastrales( |
|
166 |
QueryCatastral query) throws BusquedaCatastralException { |
|
167 |
if (referenciasCatastralesFactory==null){ |
|
168 |
referenciasCatastralesFactory=new ReferenciasCatastralesFactory(this); |
|
169 |
} |
|
170 |
return referenciasCatastralesFactory.getReferencias(query); |
|
171 |
} |
|
172 |
|
|
173 |
|
|
174 |
|
|
175 |
@Override |
|
176 |
public Point getPoint(String referenciacatastral, SRSCatastro srs) |
|
177 |
throws BusquedaCatastralException, |
|
178 |
BusquedaCatastralInvalidSRSException { |
|
179 |
if (pointFactory==null){ |
|
180 |
pointFactory=new PointFactory(); |
|
181 |
} |
|
182 |
return pointFactory.getPoint(referenciacatastral, srs); |
|
183 |
} |
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
@Override |
|
188 |
public Point getPoint(ReferenciaCatastral referenciacatastral, |
|
189 |
SRSCatastro srs) throws BusquedaCatastralException { |
|
190 |
if (pointFactory==null){ |
|
191 |
pointFactory=new PointFactory(); |
|
192 |
} |
|
193 |
return pointFactory.getPoint(referenciacatastral, srs); |
|
194 |
} |
|
195 |
|
|
196 |
|
|
197 |
|
|
198 |
@Override |
|
199 |
public DynObject getDatosCatastrales(Point p, SRSCatastro srs) |
|
200 |
throws BusquedaCatastralException, |
|
201 |
BusquedaCatastralInvalidSRSException { |
|
202 |
throw new UnsupportedOperationException("Not supported yet."); |
|
203 |
} |
|
204 |
|
|
205 |
|
|
206 |
|
|
207 |
@Override |
|
208 |
public DynObject getDatosCatastrales(String rc) |
|
209 |
throws BusquedaCatastralException { |
|
210 |
throw new UnsupportedOperationException("Not supported yet."); |
|
211 |
} |
|
212 |
|
|
213 |
public File getCacheFolder(){ |
|
214 |
return this.cacheFolder; |
|
215 |
} |
|
216 |
|
|
217 |
public void setCacheFolder(File cacheFolder){ |
|
218 |
this.cacheFolder=cacheFolder; |
|
219 |
} |
|
220 |
} |
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.71/org.gvsig.busquedacatastral.lib/org.gvsig.busquedacatastral.lib.impl/src/main/java/org/gvsig/busquedacatastral/lib/impl/ws/OVCCoordenadas.java | ||
---|---|---|
1 |
/** |
|
2 |
* OVCCoordenadas.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 org.gvsig.busquedacatastral.lib.impl.ws; |
|
9 |
|
|
10 |
public interface OVCCoordenadas extends javax.xml.rpc.Service { |
|
11 |
public java.lang.String getOVCCoordenadasSoapAddress(); |
|
12 |
|
|
13 |
public OVCCoordenadasSoap getOVCCoordenadasSoap() throws javax.xml.rpc.ServiceException; |
|
14 |
|
|
15 |
public OVCCoordenadasSoap getOVCCoordenadasSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; |
|
16 |
} |
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.71/org.gvsig.busquedacatastral.lib/org.gvsig.busquedacatastral.lib.impl/src/main/java/org/gvsig/busquedacatastral/lib/impl/ws/CallejeroCatastroWS.java | ||
---|---|---|
1 |
/** |
|
2 |
* Callejero_x0020_de_x0020_la_x0020_sede_x0020_electronica_x0020_del_x0020_catastro.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 org.gvsig.busquedacatastral.lib.impl.ws; |
|
9 |
|
|
10 |
public interface CallejeroCatastroWS extends javax.xml.rpc.Service { |
|
11 |
|
|
12 |
/** |
|
13 |
* Servicios de consulta del callejero de la sede electronica del |
|
14 |
* catastro. |
|
15 |
*/ |
|
16 |
public java.lang.String getCallejeroCatastroSoapAddress(); |
|
17 |
|
|
18 |
public org.gvsig.busquedacatastral.lib.impl.ws.CallejeroCatastroWSSoap getCallejeroCatastroSoap() throws javax.xml.rpc.ServiceException; |
|
19 |
|
|
20 |
public org.gvsig.busquedacatastral.lib.impl.ws.CallejeroCatastroWSSoap getCallejeroCcatastroSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; |
|
21 |
} |
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.71/org.gvsig.busquedacatastral.lib/org.gvsig.busquedacatastral.lib.impl/src/main/java/org/gvsig/busquedacatastral/lib/impl/ws/OVCCoordenadasSoapStub.java | ||
---|---|---|
1 |
/** |
|
2 |
* OVCCoordenadasSoapStub.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 org.gvsig.busquedacatastral.lib.impl.ws; |
|
9 |
|
|
10 |
import org.gvsig.busquedacatastral.lib.impl.ws.classes.Consulta_Coordenadas; |
|
11 |
import org.gvsig.busquedacatastral.lib.impl.ws.classes.Consulta_Coordenadas_Distancia; |
|
12 |
|
|
13 |
public class OVCCoordenadasSoapStub extends org.apache.axis.client.Stub implements OVCCoordenadasSoap { |
|
14 |
private java.util.Vector cachedSerClasses = new java.util.Vector(); |
|
15 |
private java.util.Vector cachedSerQNames = new java.util.Vector(); |
|
16 |
private java.util.Vector cachedSerFactories = new java.util.Vector(); |
|
17 |
private java.util.Vector cachedDeserFactories = new java.util.Vector(); |
|
18 |
|
|
19 |
static org.apache.axis.description.OperationDesc [] _operations; |
|
20 |
|
|
21 |
static { |
|
22 |
_operations = new org.apache.axis.description.OperationDesc[3]; |
|
23 |
_initOperationDesc1(); |
|
24 |
} |
|
25 |
|
|
26 |
private static void _initOperationDesc1(){ |
|
27 |
org.apache.axis.description.OperationDesc oper; |
|
28 |
org.apache.axis.description.ParameterDesc param; |
|
29 |
oper = new org.apache.axis.description.OperationDesc(); |
|
30 |
oper.setName("Consulta_CPMRC"); |
|
31 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Provincia"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
32 |
oper.addParameter(param); |
|
33 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Municipio"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
34 |
oper.addParameter(param); |
|
35 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "SRS"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
36 |
oper.addParameter(param); |
|
37 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "RefCat"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
38 |
oper.addParameter(param); |
|
39 |
oper.setReturnType(new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Consulta_Coordenadas")); |
|
40 |
oper.setReturnClass(Consulta_Coordenadas.class); |
|
41 |
oper.setReturnQName(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Consulta_Coordenadas")); |
|
42 |
oper.setStyle(org.apache.axis.constants.Style.DOCUMENT); |
|
43 |
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
|
44 |
_operations[0] = oper; |
|
45 |
|
|
46 |
oper = new org.apache.axis.description.OperationDesc(); |
|
47 |
oper.setName("Consulta_RCCOOR"); |
|
48 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "SRS"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
49 |
oper.addParameter(param); |
|
50 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "CoorX"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
51 |
oper.addParameter(param); |
|
52 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "CoorY"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
53 |
oper.addParameter(param); |
|
54 |
oper.setReturnType(new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Consulta_Coordenadas")); |
|
55 |
oper.setReturnClass(Consulta_Coordenadas.class); |
|
56 |
oper.setReturnQName(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Consulta_Coordenadas")); |
|
57 |
oper.setStyle(org.apache.axis.constants.Style.DOCUMENT); |
|
58 |
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
|
59 |
_operations[1] = oper; |
|
60 |
|
|
61 |
oper = new org.apache.axis.description.OperationDesc(); |
|
62 |
oper.setName("Consulta_RCCOOR_Distancia"); |
|
63 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "SRS"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
64 |
oper.addParameter(param); |
|
65 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "CoorX"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
66 |
oper.addParameter(param); |
|
67 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "CoorY"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
68 |
oper.addParameter(param); |
|
69 |
oper.setReturnType(new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Consulta_Coordenadas_Distancia")); |
|
70 |
oper.setReturnClass(Consulta_Coordenadas_Distancia.class); |
|
71 |
oper.setReturnQName(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Consulta_Coordenadas_Distancia")); |
|
72 |
oper.setStyle(org.apache.axis.constants.Style.DOCUMENT); |
|
73 |
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
|
74 |
_operations[2] = oper; |
|
75 |
|
|
76 |
} |
|
77 |
|
|
78 |
public OVCCoordenadasSoapStub() throws org.apache.axis.AxisFault { |
|
79 |
this(null); |
|
80 |
} |
|
81 |
|
|
82 |
public OVCCoordenadasSoapStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { |
|
83 |
this(service); |
|
84 |
super.cachedEndpoint = endpointURL; |
|
85 |
} |
|
86 |
|
|
87 |
public OVCCoordenadasSoapStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { |
|
88 |
if (service == null) { |
|
89 |
super.service = new org.apache.axis.client.Service(); |
|
90 |
} else { |
|
91 |
super.service = service; |
|
92 |
} |
|
93 |
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2"); |
|
94 |
java.lang.Class cls; |
|
95 |
javax.xml.namespace.QName qName; |
|
96 |
javax.xml.namespace.QName qName2; |
|
97 |
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class; |
|
98 |
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class; |
|
99 |
java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class; |
|
100 |
java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class; |
|
101 |
java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class; |
|
102 |
java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class; |
|
103 |
java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class; |
|
104 |
java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class; |
|
105 |
java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class; |
|
106 |
java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class; |
|
107 |
qName = new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Consulta_Coordenadas"); |
|
108 |
cachedSerQNames.add(qName); |
|
109 |
cls = Consulta_Coordenadas.class; |
|
110 |
cachedSerClasses.add(cls); |
|
111 |
cachedSerFactories.add(beansf); |
|
112 |
cachedDeserFactories.add(beandf); |
|
113 |
|
|
114 |
qName = new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Consulta_Coordenadas_Distancia"); |
|
115 |
cachedSerQNames.add(qName); |
|
116 |
cls = Consulta_Coordenadas_Distancia.class; |
|
117 |
cachedSerClasses.add(cls); |
|
118 |
cachedSerFactories.add(beansf); |
|
119 |
cachedDeserFactories.add(beandf); |
|
120 |
|
|
121 |
} |
|
122 |
|
|
123 |
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { |
|
124 |
try { |
|
125 |
org.apache.axis.client.Call _call = super._createCall(); |
|
126 |
if (super.maintainSessionSet) { |
|
127 |
_call.setMaintainSession(super.maintainSession); |
|
128 |
} |
|
129 |
if (super.cachedUsername != null) { |
|
130 |
_call.setUsername(super.cachedUsername); |
|
131 |
} |
|
132 |
if (super.cachedPassword != null) { |
|
133 |
_call.setPassword(super.cachedPassword); |
|
134 |
} |
|
135 |
if (super.cachedEndpoint != null) { |
|
136 |
_call.setTargetEndpointAddress(super.cachedEndpoint); |
|
137 |
} |
|
138 |
if (super.cachedTimeout != null) { |
|
139 |
_call.setTimeout(super.cachedTimeout); |
|
140 |
} |
|
141 |
if (super.cachedPortName != null) { |
|
142 |
_call.setPortName(super.cachedPortName); |
|
143 |
} |
|
144 |
java.util.Enumeration keys = super.cachedProperties.keys(); |
|
145 |
while (keys.hasMoreElements()) { |
|
146 |
java.lang.String key = (java.lang.String) keys.nextElement(); |
|
147 |
_call.setProperty(key, super.cachedProperties.get(key)); |
|
148 |
} |
|
149 |
// All the type mapping information is registered |
|
150 |
// when the first call is made. |
|
151 |
// The type mapping information is actually registered in |
|
152 |
// the TypeMappingRegistry of the service, which |
|
153 |
// is the reason why registration is only needed for the first call. |
|
154 |
synchronized (this) { |
|
155 |
if (firstCall()) { |
|
156 |
// must set encoding style before registering serializers |
|
157 |
_call.setEncodingStyle(null); |
|
158 |
for (int i = 0; i < cachedSerFactories.size(); ++i) { |
|
159 |
java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i); |
|
160 |
javax.xml.namespace.QName qName = |
|
161 |
(javax.xml.namespace.QName) cachedSerQNames.get(i); |
|
162 |
java.lang.Object x = cachedSerFactories.get(i); |
|
163 |
if (x instanceof Class) { |
|
164 |
java.lang.Class sf = (java.lang.Class) |
|
165 |
cachedSerFactories.get(i); |
|
166 |
java.lang.Class df = (java.lang.Class) |
|
167 |
cachedDeserFactories.get(i); |
|
168 |
_call.registerTypeMapping(cls, qName, sf, df, false); |
|
169 |
} |
|
170 |
else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) { |
|
171 |
org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory) |
|
172 |
cachedSerFactories.get(i); |
|
173 |
org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory) |
|
174 |
cachedDeserFactories.get(i); |
|
175 |
_call.registerTypeMapping(cls, qName, sf, df, false); |
|
176 |
} |
|
177 |
} |
|
178 |
} |
|
179 |
} |
|
180 |
return _call; |
|
181 |
} |
|
182 |
catch (java.lang.Throwable _t) { |
|
183 |
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t); |
|
184 |
} |
|
185 |
} |
|
186 |
|
|
187 |
public Consulta_Coordenadas consulta_CPMRC(java.lang.String provincia, java.lang.String municipio, java.lang.String SRS, java.lang.String RC) throws java.rmi.RemoteException { |
|
188 |
if (super.cachedEndpoint == null) { |
|
189 |
throw new org.apache.axis.NoEndPointException(); |
|
190 |
} |
|
191 |
org.apache.axis.client.Call _call = createCall(); |
|
192 |
_call.setOperation(_operations[0]); |
|
193 |
_call.setUseSOAPAction(true); |
|
194 |
_call.setSOAPActionURI("http://tempuri.org/OVCServWeb/OVCCoordenadas/Consulta_CPMRC"); |
|
195 |
_call.setEncodingStyle(null); |
|
196 |
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
|
197 |
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
|
198 |
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
|
199 |
_call.setOperationName(new javax.xml.namespace.QName("", "Consulta_CPMRC")); |
|
200 |
|
|
201 |
setRequestHeaders(_call); |
|
202 |
setAttachments(_call); |
|
203 |
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {provincia, municipio, SRS, RC}); |
|
204 |
|
|
205 |
if (_resp instanceof java.rmi.RemoteException) { |
|
206 |
throw (java.rmi.RemoteException)_resp; |
|
207 |
} |
|
208 |
else { |
|
209 |
extractAttachments(_call); |
|
210 |
try { |
|
211 |
return (Consulta_Coordenadas) _resp; |
|
212 |
} catch (java.lang.Exception _exception) { |
|
213 |
return (Consulta_Coordenadas) org.apache.axis.utils.JavaUtils.convert(_resp, Consulta_Coordenadas.class); |
|
214 |
} |
|
215 |
} |
|
216 |
} catch (org.apache.axis.AxisFault axisFaultException) { |
|
217 |
throw axisFaultException; |
|
218 |
} |
|
219 |
} |
|
220 |
|
|
221 |
public Consulta_Coordenadas consulta_RCCOOR(java.lang.String SRS, java.lang.String coordenada_X, java.lang.String coordenada_Y) throws java.rmi.RemoteException { |
|
222 |
if (super.cachedEndpoint == null) { |
|
223 |
throw new org.apache.axis.NoEndPointException(); |
|
224 |
} |
|
225 |
org.apache.axis.client.Call _call = createCall(); |
|
226 |
_call.setOperation(_operations[1]); |
|
227 |
_call.setUseSOAPAction(true); |
|
228 |
_call.setSOAPActionURI("http://tempuri.org/OVCServWeb/OVCCoordenadas/Consulta_RCCOOR"); |
|
229 |
_call.setEncodingStyle(null); |
|
230 |
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
|
231 |
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
|
232 |
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
|
233 |
_call.setOperationName(new javax.xml.namespace.QName("", "Consulta_RCCOOR")); |
|
234 |
|
|
235 |
setRequestHeaders(_call); |
|
236 |
setAttachments(_call); |
|
237 |
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {SRS, coordenada_X, coordenada_Y}); |
|
238 |
|
|
239 |
if (_resp instanceof java.rmi.RemoteException) { |
|
240 |
throw (java.rmi.RemoteException)_resp; |
|
241 |
} |
|
242 |
else { |
|
243 |
extractAttachments(_call); |
|
244 |
try { |
|
245 |
return (Consulta_Coordenadas) _resp; |
|
246 |
} catch (java.lang.Exception _exception) { |
|
247 |
return (Consulta_Coordenadas) org.apache.axis.utils.JavaUtils.convert(_resp, Consulta_Coordenadas.class); |
|
248 |
} |
|
249 |
} |
|
250 |
} catch (org.apache.axis.AxisFault axisFaultException) { |
|
251 |
throw axisFaultException; |
|
252 |
} |
|
253 |
} |
|
254 |
|
|
255 |
public Consulta_Coordenadas_Distancia consulta_RCCOOR_Distancia(java.lang.String SRS, java.lang.String coordenada_X, java.lang.String coordenada_Y) throws java.rmi.RemoteException { |
|
256 |
if (super.cachedEndpoint == null) { |
|
257 |
throw new org.apache.axis.NoEndPointException(); |
|
258 |
} |
|
259 |
org.apache.axis.client.Call _call = createCall(); |
|
260 |
_call.setOperation(_operations[2]); |
|
261 |
_call.setUseSOAPAction(true); |
|
262 |
_call.setSOAPActionURI("http://tempuri.org/OVCServWeb/OVCCoordenadas/Consulta_RCCOOR_Distancia"); |
|
263 |
_call.setEncodingStyle(null); |
|
264 |
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
|
265 |
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
|
266 |
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
|
267 |
_call.setOperationName(new javax.xml.namespace.QName("", "Consulta_RCCOOR_Distancia")); |
|
268 |
|
|
269 |
setRequestHeaders(_call); |
|
270 |
setAttachments(_call); |
|
271 |
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {SRS, coordenada_X, coordenada_Y}); |
|
272 |
|
|
273 |
if (_resp instanceof java.rmi.RemoteException) { |
|
274 |
throw (java.rmi.RemoteException)_resp; |
|
275 |
} |
|
276 |
else { |
|
277 |
extractAttachments(_call); |
|
278 |
try { |
|
279 |
return (Consulta_Coordenadas_Distancia) _resp; |
|
280 |
} catch (java.lang.Exception _exception) { |
|
281 |
return (Consulta_Coordenadas_Distancia) org.apache.axis.utils.JavaUtils.convert(_resp, Consulta_Coordenadas_Distancia.class); |
|
282 |
} |
|
283 |
} |
|
284 |
} catch (org.apache.axis.AxisFault axisFaultException) { |
|
285 |
throw axisFaultException; |
|
286 |
} |
|
287 |
} |
|
288 |
|
|
289 |
} |
org.gvsig.busquedacatastral/tags/org.gvsig.busquedacatastral-1.0.71/org.gvsig.busquedacatastral.lib/org.gvsig.busquedacatastral.lib.impl/src/main/java/org/gvsig/busquedacatastral/lib/impl/ws/CallejeroCatastroWSSoapStub.java | ||
---|---|---|
1 |
/** |
|
2 |
* Callejero_x0020_de_x0020_la_x0020_sede_x0020_electrónica_x0020_del_x0020_catastroSoapStub.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 org.gvsig.busquedacatastral.lib.impl.ws; |
|
9 |
|
|
10 |
public class CallejeroCatastroWSSoapStub extends org.apache.axis.client.Stub implements org.gvsig.busquedacatastral.lib.impl.ws.CallejeroCatastroWSSoap { |
|
11 |
private java.util.Vector cachedSerClasses = new java.util.Vector(); |
|
12 |
private java.util.Vector cachedSerQNames = new java.util.Vector(); |
|
13 |
private java.util.Vector cachedSerFactories = new java.util.Vector(); |
|
14 |
private java.util.Vector cachedDeserFactories = new java.util.Vector(); |
|
15 |
|
|
16 |
static org.apache.axis.description.OperationDesc [] _operations; |
|
17 |
|
|
18 |
static { |
|
19 |
_operations = new org.apache.axis.description.OperationDesc[7]; |
|
20 |
_initOperationDesc1(); |
|
21 |
} |
|
22 |
|
|
23 |
private static void _initOperationDesc1(){ |
|
24 |
org.apache.axis.description.OperationDesc oper; |
|
25 |
org.apache.axis.description.ParameterDesc param; |
|
26 |
oper = new org.apache.axis.description.OperationDesc(); |
|
27 |
oper.setName("Consulta_DNPRC"); |
|
28 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Provincia"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
29 |
oper.addParameter(param); |
|
30 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Municipio"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
31 |
oper.addParameter(param); |
|
32 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "RefCat"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
33 |
oper.addParameter(param); |
|
34 |
oper.setReturnType(new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Consulta_DNP")); |
|
35 |
oper.setReturnClass(org.gvsig.busquedacatastral.lib.impl.ws.classes.ConsultaDNPWSResponse.class); |
|
36 |
oper.setReturnQName(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Consulta_DNP")); |
|
37 |
oper.setStyle(org.apache.axis.constants.Style.DOCUMENT); |
|
38 |
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
|
39 |
_operations[0] = oper; |
|
40 |
|
|
41 |
oper = new org.apache.axis.description.OperationDesc(); |
|
42 |
oper.setName("ObtenerProvincias"); |
|
43 |
oper.setReturnType(new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Provincias")); |
|
44 |
oper.setReturnClass(org.gvsig.busquedacatastral.lib.impl.ws.classes.ProvinciasWSResponse.class); |
|
45 |
oper.setReturnQName(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Provincias")); |
|
46 |
oper.setStyle(org.apache.axis.constants.Style.DOCUMENT); |
|
47 |
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
|
48 |
_operations[1] = oper; |
|
49 |
|
|
50 |
oper = new org.apache.axis.description.OperationDesc(); |
|
51 |
oper.setName("ObtenerMunicipios"); |
|
52 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Provincia"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
53 |
oper.addParameter(param); |
|
54 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Municipio"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
55 |
oper.addParameter(param); |
|
56 |
oper.setReturnType(new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Municipios")); |
|
57 |
oper.setReturnClass(org.gvsig.busquedacatastral.lib.impl.ws.classes.MunicipiosWSResponse.class); |
|
58 |
oper.setReturnQName(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Municipios")); |
|
59 |
oper.setStyle(org.apache.axis.constants.Style.DOCUMENT); |
|
60 |
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
|
61 |
_operations[2] = oper; |
|
62 |
|
|
63 |
oper = new org.apache.axis.description.OperationDesc(); |
|
64 |
oper.setName("ObtenerCallejero"); |
|
65 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Provincia"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
66 |
oper.addParameter(param); |
|
67 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Municipio"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
68 |
oper.addParameter(param); |
|
69 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "TipoVia"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
70 |
oper.addParameter(param); |
|
71 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "NombreVia"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
72 |
oper.addParameter(param); |
|
73 |
oper.setReturnType(new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Callejero")); |
|
74 |
oper.setReturnClass(org.gvsig.busquedacatastral.lib.impl.ws.classes.CallejeroWSResponse.class); |
|
75 |
oper.setReturnQName(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Callejero")); |
|
76 |
oper.setStyle(org.apache.axis.constants.Style.DOCUMENT); |
|
77 |
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
|
78 |
_operations[3] = oper; |
|
79 |
|
|
80 |
oper = new org.apache.axis.description.OperationDesc(); |
|
81 |
oper.setName("ObtenerNumerero"); |
|
82 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Provincia"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
83 |
oper.addParameter(param); |
|
84 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Municipio"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
85 |
oper.addParameter(param); |
|
86 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "TipoVia"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
87 |
oper.addParameter(param); |
|
88 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "NomVia"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
89 |
oper.addParameter(param); |
|
90 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Numero"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
91 |
oper.addParameter(param); |
|
92 |
oper.setReturnType(new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Callejero")); |
|
93 |
oper.setReturnClass(org.gvsig.busquedacatastral.lib.impl.ws.classes.CallejeroWSResponse.class); |
|
94 |
oper.setReturnQName(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Callejero")); |
|
95 |
oper.setStyle(org.apache.axis.constants.Style.DOCUMENT); |
|
96 |
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
|
97 |
_operations[4] = oper; |
|
98 |
|
|
99 |
oper = new org.apache.axis.description.OperationDesc(); |
|
100 |
oper.setName("Consulta_DNPLOC"); |
|
101 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Provincia"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
102 |
oper.addParameter(param); |
|
103 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Municipio"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
104 |
oper.addParameter(param); |
|
105 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Sigla"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
106 |
oper.addParameter(param); |
|
107 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Calle"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
108 |
oper.addParameter(param); |
|
109 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Numero"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
110 |
oper.addParameter(param); |
|
111 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Bloque"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
112 |
oper.addParameter(param); |
|
113 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Escalera"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
114 |
oper.addParameter(param); |
|
115 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Planta"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
116 |
oper.addParameter(param); |
|
117 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Puerta"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
118 |
oper.addParameter(param); |
|
119 |
oper.setReturnType(new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Consulta_DNP")); |
|
120 |
oper.setReturnClass(org.gvsig.busquedacatastral.lib.impl.ws.classes.ConsultaDNPWSResponse.class); |
|
121 |
oper.setReturnQName(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Consulta_DNP")); |
|
122 |
oper.setStyle(org.apache.axis.constants.Style.DOCUMENT); |
|
123 |
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
|
124 |
_operations[5] = oper; |
|
125 |
|
|
126 |
oper = new org.apache.axis.description.OperationDesc(); |
|
127 |
oper.setName("Consulta_DNPPP"); |
|
128 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Provincia"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
129 |
oper.addParameter(param); |
|
130 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Municipio"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
131 |
oper.addParameter(param); |
|
132 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Poligono"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
133 |
oper.addParameter(param); |
|
134 |
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Parcela"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false); |
|
135 |
oper.addParameter(param); |
|
136 |
oper.setReturnType(new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Consulta_DNPPP")); |
|
137 |
oper.setReturnClass(org.gvsig.busquedacatastral.lib.impl.ws.classes.ConsultaDNPPPWSResponse.class); |
|
138 |
oper.setReturnQName(new javax.xml.namespace.QName("http://www.catastro.meh.es/", "Consulta_DNPPP")); |
|
139 |
oper.setStyle(org.apache.axis.constants.Style.DOCUMENT); |
|
140 |
oper.setUse(org.apache.axis.constants.Use.LITERAL); |
|
141 |
_operations[6] = oper; |
|
142 |
|
|
143 |
} |
|
144 |
|
|
145 |
public CallejeroCatastroWSSoapStub() throws org.apache.axis.AxisFault { |
|
146 |
this(null); |
|
147 |
} |
|
148 |
|
|
149 |
public CallejeroCatastroWSSoapStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { |
|
150 |
this(service); |
|
151 |
super.cachedEndpoint = endpointURL; |
|
152 |
} |
|
153 |
|
|
154 |
public CallejeroCatastroWSSoapStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { |
|
155 |
if (service == null) { |
|
156 |
super.service = new org.apache.axis.client.Service(); |
|
157 |
} else { |
|
158 |
super.service = service; |
|
159 |
} |
|
160 |
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2"); |
|
161 |
java.lang.Class cls; |
|
162 |
javax.xml.namespace.QName qName; |
|
163 |
javax.xml.namespace.QName qName2; |
|
164 |
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class; |
|
165 |
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class; |
|
166 |
java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class; |
|
167 |
java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class; |
|
168 |
java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class; |
|
169 |
java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class; |
|
170 |
java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class; |
|
171 |
java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class; |
|
172 |
java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class; |
|
173 |
java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class; |
|
174 |
qName = new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Callejero"); |
|
175 |
cachedSerQNames.add(qName); |
|
176 |
cls = org.gvsig.busquedacatastral.lib.impl.ws.classes.CallejeroWSResponse.class; |
|
177 |
cachedSerClasses.add(cls); |
|
178 |
cachedSerFactories.add(beansf); |
|
179 |
cachedDeserFactories.add(beandf); |
|
180 |
|
|
181 |
qName = new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Consulta_DNP"); |
|
182 |
cachedSerQNames.add(qName); |
|
183 |
cls = org.gvsig.busquedacatastral.lib.impl.ws.classes.ConsultaDNPWSResponse.class; |
|
184 |
cachedSerClasses.add(cls); |
|
185 |
cachedSerFactories.add(beansf); |
|
186 |
cachedDeserFactories.add(beandf); |
|
187 |
|
|
188 |
qName = new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Consulta_DNPPP"); |
|
189 |
cachedSerQNames.add(qName); |
|
190 |
cls = org.gvsig.busquedacatastral.lib.impl.ws.classes.ConsultaDNPPPWSResponse.class; |
|
191 |
cachedSerClasses.add(cls); |
|
192 |
cachedSerFactories.add(beansf); |
|
193 |
cachedDeserFactories.add(beandf); |
|
194 |
|
|
195 |
qName = new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Municipios"); |
|
196 |
cachedSerQNames.add(qName); |
|
197 |
cls = org.gvsig.busquedacatastral.lib.impl.ws.classes.MunicipiosWSResponse.class; |
|
198 |
cachedSerClasses.add(cls); |
|
199 |
cachedSerFactories.add(beansf); |
|
200 |
cachedDeserFactories.add(beandf); |
|
201 |
|
|
202 |
qName = new javax.xml.namespace.QName("http://www.catastro.meh.es/", ">Provincias"); |
|
203 |
cachedSerQNames.add(qName); |
|
204 |
cls = org.gvsig.busquedacatastral.lib.impl.ws.classes.ProvinciasWSResponse.class; |
|
205 |
cachedSerClasses.add(cls); |
|
206 |
cachedSerFactories.add(beansf); |
|
207 |
cachedDeserFactories.add(beandf); |
|
208 |
|
|
209 |
} |
|
210 |
|
|
211 |
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { |
|
212 |
try { |
|
213 |
org.apache.axis.client.Call _call = super._createCall(); |
|
214 |
if (super.maintainSessionSet) { |
|
215 |
_call.setMaintainSession(super.maintainSession); |
|
216 |
} |
|
217 |
if (super.cachedUsername != null) { |
|
218 |
_call.setUsername(super.cachedUsername); |
|
219 |
} |
|
220 |
if (super.cachedPassword != null) { |
|
221 |
_call.setPassword(super.cachedPassword); |
|
222 |
} |
|
223 |
if (super.cachedEndpoint != null) { |
|
224 |
_call.setTargetEndpointAddress(super.cachedEndpoint); |
|
225 |
} |
|
226 |
if (super.cachedTimeout != null) { |
|
227 |
_call.setTimeout(super.cachedTimeout); |
|
228 |
} |
|
229 |
if (super.cachedPortName != null) { |
|
230 |
_call.setPortName(super.cachedPortName); |
|
231 |
} |
|
232 |
java.util.Enumeration keys = super.cachedProperties.keys(); |
|
233 |
while (keys.hasMoreElements()) { |
|
234 |
java.lang.String key = (java.lang.String) keys.nextElement(); |
|
235 |
_call.setProperty(key, super.cachedProperties.get(key)); |
|
236 |
} |
|
237 |
// All the type mapping information is registered |
|
238 |
// when the first call is made. |
|
239 |
// The type mapping information is actually registered in |
|
240 |
// the TypeMappingRegistry of the service, which |
|
241 |
// is the reason why registration is only needed for the first call. |
|
242 |
synchronized (this) { |
|
243 |
if (firstCall()) { |
|
244 |
// must set encoding style before registering serializers |
|
245 |
_call.setEncodingStyle(null); |
|
246 |
for (int i = 0; i < cachedSerFactories.size(); ++i) { |
|
247 |
java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i); |
|
248 |
javax.xml.namespace.QName qName = |
|
249 |
(javax.xml.namespace.QName) cachedSerQNames.get(i); |
|
250 |
java.lang.Object x = cachedSerFactories.get(i); |
|
251 |
if (x instanceof Class) { |
|
252 |
java.lang.Class sf = (java.lang.Class) |
|
253 |
cachedSerFactories.get(i); |
|
254 |
java.lang.Class df = (java.lang.Class) |
|
255 |
cachedDeserFactories.get(i); |
|
256 |
_call.registerTypeMapping(cls, qName, sf, df, false); |
|
257 |
} |
|
258 |
else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) { |
|
259 |
org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory) |
|
260 |
cachedSerFactories.get(i); |
|
261 |
org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory) |
|
262 |
cachedDeserFactories.get(i); |
|
263 |
_call.registerTypeMapping(cls, qName, sf, df, false); |
|
264 |
} |
|
265 |
} |
|
266 |
} |
|
267 |
} |
|
268 |
return _call; |
|
269 |
} |
|
270 |
catch (java.lang.Throwable _t) { |
|
271 |
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t); |
|
272 |
} |
|
273 |
} |
|
274 |
|
|
275 |
public org.gvsig.busquedacatastral.lib.impl.ws.classes.ConsultaDNPWSResponse consulta_DNPRC(java.lang.String provincia, java.lang.String municipio, java.lang.String RC) throws java.rmi.RemoteException { |
|
276 |
if (super.cachedEndpoint == null) { |
|
277 |
throw new org.apache.axis.NoEndPointException(); |
|
278 |
} |
|
279 |
org.apache.axis.client.Call _call = createCall(); |
|
280 |
_call.setOperation(_operations[0]); |
|
281 |
_call.setUseSOAPAction(true); |
|
282 |
_call.setSOAPActionURI("http://tempuri.org/OVCServWeb/OVCCallejero/Consulta_DNPRC"); |
|
283 |
_call.setEncodingStyle(null); |
|
284 |
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
|
285 |
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
|
286 |
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
|
287 |
_call.setOperationName(new javax.xml.namespace.QName("", "Consulta_DNPRC")); |
|
288 |
|
|
289 |
setRequestHeaders(_call); |
|
290 |
setAttachments(_call); |
|
291 |
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {provincia, municipio, RC}); |
|
292 |
|
|
293 |
if (_resp instanceof java.rmi.RemoteException) { |
|
294 |
throw (java.rmi.RemoteException)_resp; |
|
295 |
} |
|
296 |
else { |
|
297 |
extractAttachments(_call); |
|
298 |
try { |
|
299 |
return (org.gvsig.busquedacatastral.lib.impl.ws.classes.ConsultaDNPWSResponse) _resp; |
|
300 |
} catch (java.lang.Exception _exception) { |
|
301 |
return (org.gvsig.busquedacatastral.lib.impl.ws.classes.ConsultaDNPWSResponse) org.apache.axis.utils.JavaUtils.convert(_resp, org.gvsig.busquedacatastral.lib.impl.ws.classes.ConsultaDNPWSResponse.class); |
|
302 |
} |
|
303 |
} |
|
304 |
} catch (org.apache.axis.AxisFault axisFaultException) { |
|
305 |
throw axisFaultException; |
|
306 |
} |
|
307 |
} |
|
308 |
|
|
309 |
public org.gvsig.busquedacatastral.lib.impl.ws.classes.ProvinciasWSResponse obtenerProvincias() throws java.rmi.RemoteException { |
|
310 |
if (super.cachedEndpoint == null) { |
|
311 |
throw new org.apache.axis.NoEndPointException(); |
|
312 |
} |
|
313 |
org.apache.axis.client.Call _call = createCall(); |
|
314 |
_call.setOperation(_operations[1]); |
|
315 |
_call.setUseSOAPAction(true); |
|
316 |
_call.setSOAPActionURI("http://tempuri.org/OVCServWeb/OVCCallejero/ConsultaProvincia"); |
|
317 |
_call.setEncodingStyle(null); |
|
318 |
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
|
319 |
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
|
320 |
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
|
321 |
_call.setOperationName(new javax.xml.namespace.QName("", "ObtenerProvincias")); |
|
322 |
|
|
323 |
setRequestHeaders(_call); |
|
324 |
setAttachments(_call); |
|
325 |
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {}); |
|
326 |
|
|
327 |
if (_resp instanceof java.rmi.RemoteException) { |
|
328 |
throw (java.rmi.RemoteException)_resp; |
|
329 |
} |
|
330 |
else { |
|
331 |
extractAttachments(_call); |
|
332 |
try { |
|
333 |
return (org.gvsig.busquedacatastral.lib.impl.ws.classes.ProvinciasWSResponse) _resp; |
|
334 |
} catch (java.lang.Exception _exception) { |
|
335 |
return (org.gvsig.busquedacatastral.lib.impl.ws.classes.ProvinciasWSResponse) org.apache.axis.utils.JavaUtils.convert(_resp, org.gvsig.busquedacatastral.lib.impl.ws.classes.ProvinciasWSResponse.class); |
|
336 |
} |
|
337 |
} |
|
338 |
} catch (org.apache.axis.AxisFault axisFaultException) { |
|
339 |
throw axisFaultException; |
|
340 |
} |
|
341 |
} |
|
342 |
|
|
343 |
public org.gvsig.busquedacatastral.lib.impl.ws.classes.MunicipiosWSResponse obtenerMunicipios(java.lang.String provincia, java.lang.String municipio) throws java.rmi.RemoteException { |
|
344 |
if (super.cachedEndpoint == null) { |
|
345 |
throw new org.apache.axis.NoEndPointException(); |
|
346 |
} |
|
347 |
org.apache.axis.client.Call _call = createCall(); |
|
348 |
_call.setOperation(_operations[2]); |
|
349 |
_call.setUseSOAPAction(true); |
|
350 |
_call.setSOAPActionURI("http://tempuri.org/OVCServWeb/OVCCallejero/ConsultaMunicipio"); |
|
351 |
_call.setEncodingStyle(null); |
|
352 |
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
|
353 |
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
|
354 |
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
|
355 |
_call.setOperationName(new javax.xml.namespace.QName("", "ObtenerMunicipios")); |
|
356 |
|
|
357 |
setRequestHeaders(_call); |
|
358 |
setAttachments(_call); |
|
359 |
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {provincia, municipio}); |
|
360 |
|
|
361 |
if (_resp instanceof java.rmi.RemoteException) { |
|
362 |
throw (java.rmi.RemoteException)_resp; |
|
363 |
} |
|
364 |
else { |
|
365 |
extractAttachments(_call); |
|
366 |
try { |
Also available in: Unified diff