Maybe you are right but the file Zeitansageservislocator was generated by
WSDL2Java.
Indeed there was a problem: WSDL2Java was not able to write the string
Zeitansage_Service_address
, see the listing bellow, correctly. I had to edtit the string
Zeitansage_Service_address. It was necessary
to write two slashes for a slash to be able to compile
Zeitansageservislocator with eclipse or javac without error.
Maybe there anything wrong now.

Thanks in advance
Hans

/**
* ZeitansageServiceLocator.java
*
* This file was auto-generated from WSDL
* by the Apache Axis WSDL2Java emitter.
*/
package kapitel8.zeitansage_wsdl;
public class ZeitansageServiceLocator extends org.apache.axis.client.Service
implements kapitel8.zeitansage_wsdl.ZeitansageService {
// Use to get a proxy class for Zeitansage_Service
private final java.lang.String Zeitansage_Service_address =
"http:\\\\localhost:8080\\axis\\services\\Zeitansage_Service";
public java.lang.String getZeitansage_ServiceAddress() {
return Zeitansage_Service_address;
}
// The WSDD service name defaults to the port name.
private java.lang.String Zeitansage_ServiceWSDDServiceName =
"Zeitansage_Service";
public java.lang.String getZeitansage_ServiceWSDDServiceName() {
return Zeitansage_ServiceWSDDServiceName;
}
public void setZeitansage_ServiceWSDDServiceName(java.lang.String name) {
Zeitansage_ServiceWSDDServiceName = name;
}
public kapitel8.zeitansage_wsdl.Zeitansage getZeitansage_Service() throws
javax.xml.rpc.ServiceException {
java.net.URL endpoint;
try {
endpoint = new java.net.URL(Zeitansage_Service_address);
}
catch (java.net.MalformedURLException e) {
return null; // unlikely as URL was validated in WSDL2Java
}
return getZeitansage_Service(endpoint);
}
public kapitel8.zeitansage_wsdl.Zeitansage
getZeitansage_Service(java.net.URL portAddress) throws
javax.xml.rpc.ServiceException {
try {
kapitel8.zeitansage_wsdl.Zeitansage_ServiceSoapBindingStub _stub = new
kapitel8.zeitansage_wsdl.Zeitansage_ServiceSoapBindingStub(portAddress,
this);
_stub.setPortName(getZeitansage_ServiceWSDDServiceName());
return _stub;
}
catch (org.apache.axis.AxisFault e) {
return null;
}
}
/**
* For the given interface, get the stub implementation.
* If this service has no port for the given interface,
* then ServiceException is thrown.
*/
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws
javax.xml.rpc.ServiceException {
try {
if
(kapitel8.zeitansage_wsdl.Zeitansage.class.isAssignableFrom(serviceEndpointI
nterface)) {
kapitel8.zeitansage_wsdl.Zeitansage_ServiceSoapBindingStub _stub = new
kapitel8.zeitansage_wsdl.Zeitansage_ServiceSoapBindingStub(new
java.net.URL(Zeitansage_Service_address), this);
_stub.setPortName(getZeitansage_ServiceWSDDServiceName());
return _stub;
}
}
catch (java.lang.Throwable t) {
throw new javax.xml.rpc.ServiceException(t);
}
throw new javax.xml.rpc.ServiceException("There is no stub implementation
for the interface: " + (serviceEndpointInterface == null ? "null" :
serviceEndpointInterface.getName()));
}
/**
* For the given interface, get the stub implementation.
* If this service has no port for the given interface,
* then ServiceException is thrown.
*/
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class
serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
java.rmi.Remote _stub = getPort(serviceEndpointInterface);
((org.apache.axis.client.Stub) _stub).setPortName(portName);
return _stub;
}
public javax.xml.namespace.QName getServiceName() {
return new javax.xml.namespace.QName("services:Zeitansage",
"ZeitansageService");
}
private java.util.HashSet ports = null;
public java.util.Iterator getPorts() {
if (ports == null) {
ports = new java.util.HashSet();
ports.add(new javax.xml.namespace.QName("Zeitansage_Service"));
}
return ports.iterator();
}
}

Reply via email to