// This class was generated by 172 StubGenerator. // Contents subject to change without notice. // @generated package com.balbes.web; import javax.xml.rpc.JAXRPCException; import javax.xml.namespace.QName; import javax.microedition.xml.rpc.Operation; import javax.microedition.xml.rpc.Type; import javax.microedition.xml.rpc.ComplexType; import javax.microedition.xml.rpc.Element; public class ComicServiceJ2MESoap_Stub implements com.balbes.web.ComicServiceJ2MESoap, javax.xml.rpc.Stub { private String[] _propertyNames; private Object[] _propertyValues; public ComicServiceJ2MESoap_Stub() { _propertyNames = new String[] {ENDPOINT_ADDRESS_PROPERTY}; _propertyValues = new Object[] {"http://localhost/ComicServiceCF/ComicServiceJ2ME.asmx"}; } public void _setProperty(String name, Object value) { int size = _propertyNames.length; for (int i = 0; i < size; ++i) { if (_propertyNames[i].equals(name)) { _propertyValues[i] = value; return; } } // Need to expand our array for a new property String[] newPropNames = new String[size + 1]; System.arraycopy(_propertyNames, 0, newPropNames, 0, size); _propertyNames = newPropNames; Object[] newPropValues = new Object[size + 1]; System.arraycopy(_propertyValues, 0, newPropValues, 0, size); _propertyValues = newPropValues; _propertyNames[size] = name; _propertyValues[size] = value; } public Object _getProperty(String name) { for (int i = 0; i < _propertyNames.length; ++i) { if (_propertyNames[i].equals(name)) { return _propertyValues[i]; } } if (ENDPOINT_ADDRESS_PROPERTY.equals(name) || USERNAME_PROPERTY.equals(name) || PASSWORD_PROPERTY.equals(name)) { return null; } if (SESSION_MAINTAIN_PROPERTY.equals(name)) { return new java.lang.Boolean(false); } throw new JAXRPCException("Stub does not recognize property: "+name); } protected void _prepOperation(Operation op) { for (int i = 0; i < _propertyNames.length; ++i) { op.setProperty(_propertyNames[i], _propertyValues[i].toString()); } } // // Begin user methods // public com.balbes.web.ArrayOfString getTitles(int ownerID) throws java.rmi.RemoteException { // Copy the incoming values into an Object array if needed. Object[] inputObject = new Object[1]; inputObject[0] = new java.lang.Integer(ownerID); Operation op = Operation.newInstance(_qname_GetTitles, _type_GetTitles, _type_GetTitlesResponse); _prepOperation(op); op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "http://www.ociweb.com/jnb/GetTitles"); Object resultObj; try { resultObj = op.invoke(inputObject); } catch (JAXRPCException e) { Throwable cause = e.getLinkedCause(); if (cause instanceof java.rmi.RemoteException) { throw (java.rmi.RemoteException) cause; } throw e; } com.balbes.web.ArrayOfString result; // Convert the result into the right Java type. // Unwrapped return value Object[] getTitlesResultObj = (Object[]) ((Object[])resultObj)[0]; if (getTitlesResultObj == null) { result = null; } else { result = new com.balbes.web.ArrayOfString(); java.lang.String[] stringArray; Object stringObj = getTitlesResultObj[0]; stringArray = (java.lang.String[]) stringObj; result.setString(stringArray); } return result; } public com.balbes.web.ArrayOfString getConditions(java.lang.String title) throws java.rmi.RemoteException { // Copy the incoming values into an Object array if needed. Object[] inputObject = new Object[1]; inputObject[0] = title; Operation op = Operation.newInstance(_qname_GetConditions, _type_GetConditions, _type_GetConditionsResponse); _prepOperation(op); op.setProperty(Operation.SOAPACTION_URI_PROPERTY, "http://www.ociweb.com/jnb/GetConditions"); Object resultObj; try { resultObj = op.invoke(inputObject); } catch (JAXRPCException e) { Throwable cause = e.getLinkedCause(); if (cause instanceof java.rmi.RemoteException) { throw (java.rmi.RemoteException) cause; } throw e; } com.balbes.web.ArrayOfString result; // Convert the result into the right Java type. // Unwrapped return value Object[] getConditionsResultObj = (Object[]) ((Object[])resultObj)[0]; if (getConditionsResultObj == null) { result = null; } else { result = new com.balbes.web.ArrayOfString(); java.lang.String[] stringArray; Object stringObj = getConditionsResultObj[0]; stringArray = (java.lang.String[]) stringObj; result.setString(stringArray); } return result; } // // End user methods // protected static final QName _qname_GetConditions = new QName("http://www.ociweb.com/jnb/", "GetConditions"); protected static final QName _qname_GetConditionsResponse = new QName("http://www.ociweb.com/jnb/", "GetConditionsResponse"); protected static final QName _qname_GetConditionsResult = new QName("http://www.ociweb.com/jnb/", "GetConditionsResult"); protected static final QName _qname_GetTitles = new QName("http://www.ociweb.com/jnb/", "GetTitles"); protected static final QName _qname_GetTitlesResponse = new QName("http://www.ociweb.com/jnb/", "GetTitlesResponse"); protected static final QName _qname_GetTitlesResult = new QName("http://www.ociweb.com/jnb/", "GetTitlesResult"); protected static final QName _qname_ownerID = new QName("http://www.ociweb.com/jnb/", "ownerID"); protected static final QName _qname_string = new QName("http://www.ociweb.com/jnb/", "string"); protected static final QName _qname_title = new QName("http://www.ociweb.com/jnb/", "title"); protected static final Element _type_GetTitles; protected static final Element _type_GetTitlesResponse; protected static final Element _type_GetConditions; protected static final Element _type_GetConditionsResponse; static { // Create all of the Type's that this stub uses, once. Element _type_ownerID; _type_ownerID = new Element(_qname_ownerID, Type.INT); ComplexType _complexType_getTitles; _complexType_getTitles = new ComplexType(); _complexType_getTitles.elements = new Element[1]; _complexType_getTitles.elements[0] = _type_ownerID; _type_GetTitles = new Element(_qname_GetTitles, _complexType_getTitles); Element _type_string; _type_string = new Element(_qname_string, Type.STRING, 0, -1, true); ComplexType _complexType_arrayOfString; _complexType_arrayOfString = new ComplexType(); _complexType_arrayOfString.elements = new Element[1]; _complexType_arrayOfString.elements[0] = _type_string; Element _type_GetTitlesResult; _type_GetTitlesResult = new Element(_qname_GetTitlesResult, _complexType_arrayOfString, 0, 1, false); ComplexType _complexType_getTitlesResponse; _complexType_getTitlesResponse = new ComplexType(); _complexType_getTitlesResponse.elements = new Element[1]; _complexType_getTitlesResponse.elements[0] = _type_GetTitlesResult; _type_GetTitlesResponse = new Element(_qname_GetTitlesResponse, _complexType_getTitlesResponse); Element _type_title; _type_title = new Element(_qname_title, Type.STRING, 0, 1, false); ComplexType _complexType_getConditions; _complexType_getConditions = new ComplexType(); _complexType_getConditions.elements = new Element[1]; _complexType_getConditions.elements[0] = _type_title; _type_GetConditions = new Element(_qname_GetConditions, _complexType_getConditions); Element _type_GetConditionsResult; _type_GetConditionsResult = new Element(_qname_GetConditionsResult, _complexType_arrayOfString, 0, 1, false); ComplexType _complexType_getConditionsResponse; _complexType_getConditionsResponse = new ComplexType(); _complexType_getConditionsResponse.elements = new Element[1]; _complexType_getConditionsResponse.elements[0] = _type_GetConditionsResult; _type_GetConditionsResponse = new Element(_qname_GetConditionsResponse, _complexType_getConditionsResponse); } }