/Users/detro/workspace-nb/JAEBI-BlueToothJ2MEClient/src/org/jaebi/midlet/WSClient/JAEBIWSSEI_Stub.java

Vai alla documentazione di questo file.
00001 // This class was generated by 172 StubGenerator.
00002 // Contents subject to change without notice.
00003 // @generated
00004 
00005 package org.jaebi.midlet.WSClient;
00006 
00007 import javax.xml.rpc.JAXRPCException;
00008 import javax.xml.namespace.QName;
00009 import javax.microedition.xml.rpc.Operation;
00010 import javax.microedition.xml.rpc.Type;
00011 import javax.microedition.xml.rpc.ComplexType;
00012 import javax.microedition.xml.rpc.Element;
00013 
00014 public class JAEBIWSSEI_Stub implements org.jaebi.midlet.WSClient.JAEBIWSSEI, javax.xml.rpc.Stub {
00015         private String[] _propertyNames;
00016         private Object[] _propertyValues;
00017 
00018         public JAEBIWSSEI_Stub() {
00019                 _propertyNames = new String[] {ENDPOINT_ADDRESS_PROPERTY};
00020                 _propertyValues = new Object[] {"http://192.168.1.11:8080/JAEBI/JAEBIWS"};
00021         }
00022 
00023         public void _setProperty(String name, Object value) {
00024                 int size = _propertyNames.length;
00025                 for (int i = 0; i < size; ++i) {
00026                         if (_propertyNames[i].equals(name)) {
00027                                 _propertyValues[i] = value;
00028                                 return;
00029                         }
00030                 }
00031                 // Need to expand our array for a new property
00032                 String[] newPropNames = new String[size + 1];
00033                 System.arraycopy(_propertyNames, 0, newPropNames, 0, size);
00034                 _propertyNames = newPropNames;
00035                 Object[] newPropValues = new Object[size + 1];
00036                 System.arraycopy(_propertyValues, 0, newPropValues, 0, size);
00037                 _propertyValues = newPropValues;
00038 
00039                 _propertyNames[size] = name;
00040                 _propertyValues[size] = value;
00041         }
00042 
00043         public Object _getProperty(String name) {
00044                 for (int i = 0; i < _propertyNames.length; ++i) {
00045                         if (_propertyNames[i].equals(name)) {
00046                                 return _propertyValues[i];
00047                         }
00048                 }
00049                 if (ENDPOINT_ADDRESS_PROPERTY.equals(name) || USERNAME_PROPERTY.equals(name) || PASSWORD_PROPERTY.equals(name)) {
00050                         return null;
00051                 }
00052                 if (SESSION_MAINTAIN_PROPERTY.equals(name)) {
00053                         return new java.lang.Boolean(false);
00054                 }
00055                 throw new JAXRPCException("Stub does not recognize property: "+name);
00056         }
00057 
00058         protected void _prepOperation(Operation op) {
00059                 for (int i = 0; i < _propertyNames.length; ++i) {
00060                         op.setProperty(_propertyNames[i], _propertyValues[i].toString());
00061                 }
00062         }
00063 
00064         // 
00065         //  Begin user methods
00066         // 
00067 
00068         public java.lang.String executeRequest(int int_1, java.lang.String string_2) throws java.rmi.RemoteException {
00069                 // Copy the incoming values into an Object array if needed.
00070                 Object[] inputObject = new Object[2];
00071                 inputObject[0] = new java.lang.Integer(int_1);
00072                 inputObject[1] = string_2;
00073 
00074                 Operation op = Operation.newInstance(_qname_wsdl_executeRequest, _type_executeRequest, _type_executeRequestResponse);
00075                 _prepOperation(op);
00076                 op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "");
00077                 Object resultObj;
00078                 try {
00079                         resultObj = op.invoke(inputObject);
00080                 } catch (JAXRPCException e) {
00081                         Throwable cause = e.getLinkedCause();
00082                         if (cause instanceof java.rmi.RemoteException) {
00083                                 throw (java.rmi.RemoteException) cause;
00084                         }
00085                         throw e;
00086                 }
00087                 java.lang.String result;
00088                 // Convert the result into the right Java type.
00089                 // Unwrapped return value
00090                 Object resultObj2 = ((Object[])resultObj)[0];
00091                 result = (java.lang.String)resultObj2;
00092                 return result;
00093         }
00094 
00095         public java.lang.String getLastError() throws java.rmi.RemoteException {
00096                 // Copy the incoming values into an Object array if needed.
00097                 Object[] inputObject = new Object[0];
00098 
00099                 Operation op = Operation.newInstance(_qname_wsdl_getLastError, _type_getLastError, _type_getLastErrorResponse);
00100                 _prepOperation(op);
00101                 op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "");
00102                 Object resultObj;
00103                 try {
00104                         resultObj = op.invoke(inputObject);
00105                 } catch (JAXRPCException e) {
00106                         Throwable cause = e.getLinkedCause();
00107                         if (cause instanceof java.rmi.RemoteException) {
00108                                 throw (java.rmi.RemoteException) cause;
00109                         }
00110                         throw e;
00111                 }
00112                 java.lang.String result;
00113                 // Convert the result into the right Java type.
00114                 // Unwrapped return value
00115                 Object resultObj2 = ((Object[])resultObj)[0];
00116                 result = (java.lang.String)resultObj2;
00117                 return result;
00118         }
00119 
00120         public java.lang.String getUsersList() throws java.rmi.RemoteException {
00121                 // Copy the incoming values into an Object array if needed.
00122                 Object[] inputObject = new Object[0];
00123 
00124                 Operation op = Operation.newInstance(_qname_wsdl_getUsersList, _type_getUsersList, _type_getUsersListResponse);
00125                 _prepOperation(op);
00126                 op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "");
00127                 Object resultObj;
00128                 try {
00129                         resultObj = op.invoke(inputObject);
00130                 } catch (JAXRPCException e) {
00131                         Throwable cause = e.getLinkedCause();
00132                         if (cause instanceof java.rmi.RemoteException) {
00133                                 throw (java.rmi.RemoteException) cause;
00134                         }
00135                         throw e;
00136                 }
00137                 java.lang.String result;
00138                 // Convert the result into the right Java type.
00139                 // Unwrapped return value
00140                 Object resultObj2 = ((Object[])resultObj)[0];
00141                 result = (java.lang.String)resultObj2;
00142                 return result;
00143         }
00144 
00145         public int getUsersNumber() throws java.rmi.RemoteException {
00146                 // Copy the incoming values into an Object array if needed.
00147                 Object[] inputObject = new Object[0];
00148 
00149                 Operation op = Operation.newInstance(_qname_wsdl_getUsersNumber, _type_getUsersNumber, _type_getUsersNumberResponse);
00150                 _prepOperation(op);
00151                 op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "");
00152                 Object resultObj;
00153                 try {
00154                         resultObj = op.invoke(inputObject);
00155                 } catch (JAXRPCException e) {
00156                         Throwable cause = e.getLinkedCause();
00157                         if (cause instanceof java.rmi.RemoteException) {
00158                                 throw (java.rmi.RemoteException) cause;
00159                         }
00160                         throw e;
00161                 }
00162                 int result;
00163                 // Convert the result into the right Java type.
00164                 // Unwrapped return value
00165                 Object resultObj2 = ((Object[])resultObj)[0];
00166                 result = ((java.lang.Integer)resultObj2).intValue();
00167                 return result;
00168         }
00169 
00170         public int login(java.lang.String string_1, java.lang.String string_2) throws java.rmi.RemoteException {
00171                 // Copy the incoming values into an Object array if needed.
00172                 Object[] inputObject = new Object[2];
00173                 inputObject[0] = string_1;
00174                 inputObject[1] = string_2;
00175 
00176                 Operation op = Operation.newInstance(_qname_wsdl_login, _type_login, _type_loginResponse);
00177                 _prepOperation(op);
00178                 op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "");
00179                 Object resultObj;
00180                 try {
00181                         resultObj = op.invoke(inputObject);
00182                 } catch (JAXRPCException e) {
00183                         Throwable cause = e.getLinkedCause();
00184                         if (cause instanceof java.rmi.RemoteException) {
00185                                 throw (java.rmi.RemoteException) cause;
00186                         }
00187                         throw e;
00188                 }
00189                 int result;
00190                 // Convert the result into the right Java type.
00191                 // Unwrapped return value
00192                 Object resultObj2 = ((Object[])resultObj)[0];
00193                 result = ((java.lang.Integer)resultObj2).intValue();
00194                 return result;
00195         }
00196 
00197         public java.lang.String logout(int int_1) throws java.rmi.RemoteException {
00198                 // Copy the incoming values into an Object array if needed.
00199                 Object[] inputObject = new Object[1];
00200                 inputObject[0] = new java.lang.Integer(int_1);
00201 
00202                 Operation op = Operation.newInstance(_qname_wsdl_logout, _type_logout, _type_logoutResponse);
00203                 _prepOperation(op);
00204                 op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "");
00205                 Object resultObj;
00206                 try {
00207                         resultObj = op.invoke(inputObject);
00208                 } catch (JAXRPCException e) {
00209                         Throwable cause = e.getLinkedCause();
00210                         if (cause instanceof java.rmi.RemoteException) {
00211                                 throw (java.rmi.RemoteException) cause;
00212                         }
00213                         throw e;
00214                 }
00215                 java.lang.String result;
00216                 // Convert the result into the right Java type.
00217                 // Unwrapped return value
00218                 Object resultObj2 = ((Object[])resultObj)[0];
00219                 result = (java.lang.String)resultObj2;
00220                 return result;
00221         }
00222         // 
00223         //  End user methods
00224         // 
00225 
00226         protected static final QName _qname_String_1 = new QName("", "String_1");
00227         protected static final QName _qname_String_2 = new QName("", "String_2");
00228         protected static final QName _qname_int_1 = new QName("", "int_1");
00229         protected static final QName _qname_result = new QName("", "result");
00230         protected static final QName _qname_executeRequest = new QName("urn:JAEBIWS/types", "executeRequest");
00231         protected static final QName _qname_executeRequestResponse = new QName("urn:JAEBIWS/types", "executeRequestResponse");
00232         protected static final QName _qname_getLastError = new QName("urn:JAEBIWS/types", "getLastError");
00233         protected static final QName _qname_getLastErrorResponse = new QName("urn:JAEBIWS/types", "getLastErrorResponse");
00234         protected static final QName _qname_getUsersList = new QName("urn:JAEBIWS/types", "getUsersList");
00235         protected static final QName _qname_getUsersListResponse = new QName("urn:JAEBIWS/types", "getUsersListResponse");
00236         protected static final QName _qname_getUsersNumber = new QName("urn:JAEBIWS/types", "getUsersNumber");
00237         protected static final QName _qname_getUsersNumberResponse = new QName("urn:JAEBIWS/types", "getUsersNumberResponse");
00238         protected static final QName _qname_login = new QName("urn:JAEBIWS/types", "login");
00239         protected static final QName _qname_loginResponse = new QName("urn:JAEBIWS/types", "loginResponse");
00240         protected static final QName _qname_logout = new QName("urn:JAEBIWS/types", "logout");
00241         protected static final QName _qname_logoutResponse = new QName("urn:JAEBIWS/types", "logoutResponse");
00242         protected static final QName _qname_wsdl_executeRequest = new QName("urn:JAEBIWS/wsdl", "executeRequest");
00243         protected static final QName _qname_wsdl_getLastError = new QName("urn:JAEBIWS/wsdl", "getLastError");
00244         protected static final QName _qname_wsdl_getUsersList = new QName("urn:JAEBIWS/wsdl", "getUsersList");
00245         protected static final QName _qname_wsdl_getUsersNumber = new QName("urn:JAEBIWS/wsdl", "getUsersNumber");
00246         protected static final QName _qname_wsdl_login = new QName("urn:JAEBIWS/wsdl", "login");
00247         protected static final QName _qname_wsdl_logout = new QName("urn:JAEBIWS/wsdl", "logout");
00248         protected static final Element _type_executeRequest;
00249         protected static final Element _type_executeRequestResponse;
00250         protected static final Element _type_getLastError;
00251         protected static final Element _type_getLastErrorResponse;
00252         protected static final Element _type_getUsersList;
00253         protected static final Element _type_getUsersListResponse;
00254         protected static final Element _type_getUsersNumber;
00255         protected static final Element _type_getUsersNumberResponse;
00256         protected static final Element _type_login;
00257         protected static final Element _type_loginResponse;
00258         protected static final Element _type_logout;
00259         protected static final Element _type_logoutResponse;
00260         static {
00261                 // Create all of the Type's that this stub uses, once.
00262                 Element _type_int_1;
00263                 _type_int_1 = new Element(_qname_int_1, Type.INT);
00264                 Element _type_String_2;
00265                 _type_String_2 = new Element(_qname_String_2, Type.STRING, 1, 1, true);
00266                 ComplexType _complexType_executeRequest;
00267                 _complexType_executeRequest = new ComplexType();
00268                 _complexType_executeRequest.elements = new Element[2];
00269                 _complexType_executeRequest.elements[0] = _type_int_1;
00270                 _complexType_executeRequest.elements[1] = _type_String_2;
00271                 _type_executeRequest = new Element(_qname_executeRequest, _complexType_executeRequest);
00272                 Element _type_result;
00273                 _type_result = new Element(_qname_result, Type.STRING, 1, 1, true);
00274                 ComplexType _complexType_executeRequestResponse;
00275                 _complexType_executeRequestResponse = new ComplexType();
00276                 _complexType_executeRequestResponse.elements = new Element[1];
00277                 _complexType_executeRequestResponse.elements[0] = _type_result;
00278                 _type_executeRequestResponse = new Element(_qname_executeRequestResponse, _complexType_executeRequestResponse);
00279                 ComplexType _complexType_getLastError;
00280                 _complexType_getLastError = new ComplexType();
00281                 _complexType_getLastError.elements = new Element[0];
00282                 _type_getLastError = new Element(_qname_getLastError, _complexType_getLastError);
00283                 _type_getLastErrorResponse = new Element(_qname_getLastErrorResponse, _complexType_executeRequestResponse);
00284                 _type_getUsersList = new Element(_qname_getUsersList, _complexType_getLastError);
00285                 _type_getUsersListResponse = new Element(_qname_getUsersListResponse, _complexType_executeRequestResponse);
00286                 _type_getUsersNumber = new Element(_qname_getUsersNumber, _complexType_getLastError);
00287                 Element _type_result2;
00288                 _type_result2 = new Element(_qname_result, Type.INT);
00289                 ComplexType _complexType_getUsersNumberResponse;
00290                 _complexType_getUsersNumberResponse = new ComplexType();
00291                 _complexType_getUsersNumberResponse.elements = new Element[1];
00292                 _complexType_getUsersNumberResponse.elements[0] = _type_result2;
00293                 _type_getUsersNumberResponse = new Element(_qname_getUsersNumberResponse, _complexType_getUsersNumberResponse);
00294                 Element _type_String_1;
00295                 _type_String_1 = new Element(_qname_String_1, Type.STRING, 1, 1, true);
00296                 ComplexType _complexType_login;
00297                 _complexType_login = new ComplexType();
00298                 _complexType_login.elements = new Element[2];
00299                 _complexType_login.elements[0] = _type_String_1;
00300                 _complexType_login.elements[1] = _type_String_2;
00301                 _type_login = new Element(_qname_login, _complexType_login);
00302                 _type_loginResponse = new Element(_qname_loginResponse, _complexType_getUsersNumberResponse);
00303                 ComplexType _complexType_logout;
00304                 _complexType_logout = new ComplexType();
00305                 _complexType_logout.elements = new Element[1];
00306                 _complexType_logout.elements[0] = _type_int_1;
00307                 _type_logout = new Element(_qname_logout, _complexType_logout);
00308                 _type_logoutResponse = new Element(_qname_logoutResponse, _complexType_executeRequestResponse);
00309         }
00310 
00311 }

Generato il Thu Jun 23 00:03:00 2005 per JAEBI - BlueTooth J2ME Midlet Client da  doxygen 1.4.3