1 7 8 package org.objectweb.jonas.jtests.hello; 9 10 import javax.xml.namespace.QName ; 11 12 public class HelloWsServiceLocator extends org.objectweb.jonas.ws.axis.JService implements org.objectweb.jonas.jtests.hello.HelloWsService { 13 14 public HelloWsServiceLocator(String name, QName qname) { 15 16 } 17 18 private final java.lang.String HelloPortComponent_address = "http://dummy_location/HelloPortComponent"; 20 21 public java.lang.String getHelloPortComponentAddress() { 22 return HelloPortComponent_address; 23 } 24 25 private java.lang.String HelloPortComponentWSDDServiceName = "HelloPortComponent"; 27 28 public java.lang.String getHelloPortComponentWSDDServiceName() { 29 return HelloPortComponentWSDDServiceName; 30 } 31 32 public void setHelloPortComponentWSDDServiceName(java.lang.String name) { 33 HelloPortComponentWSDDServiceName = name; 34 } 35 36 public org.objectweb.jonas.jtests.hello.HelloWs getHelloPortComponent() throws javax.xml.rpc.ServiceException { 37 java.net.URL endpoint; 38 try { 39 endpoint = new java.net.URL (HelloPortComponent_address); 40 } 41 catch (java.net.MalformedURLException e) { 42 throw new javax.xml.rpc.ServiceException (e); 43 } 44 return getHelloPortComponent(endpoint); 45 } 46 47 public org.objectweb.jonas.jtests.hello.HelloWs getHelloPortComponent(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { 48 try { 49 org.objectweb.jonas.jtests.hello.HelloPortComponentSoapBindingStub _stub = new org.objectweb.jonas.jtests.hello.HelloPortComponentSoapBindingStub(portAddress, this); 50 _stub.setPortName(getHelloPortComponentWSDDServiceName()); 51 return _stub; 52 } 53 catch (org.apache.axis.AxisFault e) { 54 return null; 55 } 56 } 57 58 63 public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 64 try { 65 if (org.objectweb.jonas.jtests.hello.HelloWs.class.isAssignableFrom(serviceEndpointInterface)) { 66 org.objectweb.jonas.jtests.hello.HelloPortComponentSoapBindingStub _stub = new org.objectweb.jonas.jtests.hello.HelloPortComponentSoapBindingStub(new java.net.URL (HelloPortComponent_address), this); 67 _stub.setPortName(getHelloPortComponentWSDDServiceName()); 68 return _stub; 69 } 70 } 71 catch (java.lang.Throwable t) { 72 throw new javax.xml.rpc.ServiceException (t); 73 } 74 throw new javax.xml.rpc.ServiceException ("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); 75 } 76 77 82 public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { 83 if (portName == null) { 84 return getPort(serviceEndpointInterface); 85 } 86 String inputPortName = portName.getLocalPart(); 87 if ("HelloPortComponent".equals(inputPortName)) { 88 return getHelloPortComponent(); 89 } 90 else { 91 java.rmi.Remote _stub = getPort(serviceEndpointInterface); 92 ((org.apache.axis.client.Stub) _stub).setPortName(portName); 93 return _stub; 94 } 95 } 96 97 public javax.xml.namespace.QName getServiceName() { 98 return new javax.xml.namespace.QName ("http://hello.simple", "HelloWsService"); 99 } 100 101 private java.util.HashSet ports = null; 102 103 public java.util.Iterator getPorts() { 104 if (ports == null) { 105 ports = new java.util.HashSet (); 106 ports.add(new javax.xml.namespace.QName ("HelloPortComponent")); 107 } 108 return ports.iterator(); 109 } 110 111 } 112 | Popular Tags |