⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resourcemanagerwssei_stub.java

📁 这是一个基于计算网格的web service。它用java编写。一旦安装完成
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
            if (_responseObj instanceof SOAPDeserializationState) {                _result = (jwsgrid.ws.resourcemanager.SearchJobHostsResponse)((SOAPDeserializationState) _responseObj).getInstance();            } else {                _result = (jwsgrid.ws.resourcemanager.SearchJobHostsResponse)_responseObj;            }                        return _result.getResult();                    } catch (jwsgrid.ws.resourcemanager.ConstraintDistanceException e) {            throw e;        } catch (jwsgrid.ws.resourcemanager.ConstraintMatchException e) {            throw e;        } catch (RemoteException e) {            if (e.detail instanceof com.sun.xml.rpc.util.HeaderFaultException) {                com.sun.xml.rpc.util.HeaderFaultException hfe = (com.sun.xml.rpc.util.HeaderFaultException) e.detail;                SOAPHeaderBlockInfo headerBlock = (SOAPHeaderBlockInfo) hfe.getObject();                Object obj = headerBlock.getValue();            }            // let this one through unchanged            throw e;        } catch (JAXRPCException e) {            throw new RemoteException(e.getMessage(), e);        } catch (Exception e) {            if (e instanceof RuntimeException) {                throw (RuntimeException)e;            } else {                throw new RemoteException(e.getMessage(), e);            }        }    }            /*     *  this method deserializes the request/response structure in the body     */    protected void _readFirstBodyElement(XMLReader bodyReader, SOAPDeserializationContext deserializationContext, StreamingSenderState  state) throws Exception {        int opcode = state.getRequest().getOperationCode();        switch (opcode) {            case ping_OPCODE:                _deserialize_ping(bodyReader, deserializationContext, state);                break;            case unregisterJobHost_OPCODE:                _deserialize_unregisterJobHost(bodyReader, deserializationContext, state);                break;            case registerJobHost_OPCODE:                _deserialize_registerJobHost(bodyReader, deserializationContext, state);                break;            case searchJobHosts_OPCODE:                _deserialize_searchJobHosts(bodyReader, deserializationContext, state);                break;            default:                throw new SenderException("sender.response.unrecognizedOperation", Integer.toString(opcode));        }    }                /*     * This method deserializes the body of the ping operation.     */    private void _deserialize_ping(XMLReader bodyReader, SOAPDeserializationContext deserializationContext, StreamingSenderState state) throws Exception {        Object myPingResponseObj =            ns1_myPingResponse_LiteralSerializer.deserialize(ns1_ping_pingResponse_QNAME,                bodyReader, deserializationContext);                SOAPBlockInfo bodyBlock = new SOAPBlockInfo(ns1_ping_pingResponse_QNAME);        bodyBlock.setValue(myPingResponseObj);        state.getResponse().setBody(bodyBlock);    }        /*     * This method deserializes the body of the unregisterJobHost operation.     */    private void _deserialize_unregisterJobHost(XMLReader bodyReader, SOAPDeserializationContext deserializationContext, StreamingSenderState state) throws Exception {        Object myUnregisterJobHostResponseObj =            ns1_myUnregisterJobHostResponse_LiteralSerializer.deserialize(ns1_unregisterJobHost_unregisterJobHostResponse_QNAME,                bodyReader, deserializationContext);                SOAPBlockInfo bodyBlock = new SOAPBlockInfo(ns1_unregisterJobHost_unregisterJobHostResponse_QNAME);        bodyBlock.setValue(myUnregisterJobHostResponseObj);        state.getResponse().setBody(bodyBlock);    }        /*     * This method deserializes the body of the registerJobHost operation.     */    private void _deserialize_registerJobHost(XMLReader bodyReader, SOAPDeserializationContext deserializationContext, StreamingSenderState state) throws Exception {        Object myRegisterJobHostResponseObj =            ns1_myRegisterJobHostResponse_LiteralSerializer.deserialize(ns1_registerJobHost_registerJobHostResponse_QNAME,                bodyReader, deserializationContext);                SOAPBlockInfo bodyBlock = new SOAPBlockInfo(ns1_registerJobHost_registerJobHostResponse_QNAME);        bodyBlock.setValue(myRegisterJobHostResponseObj);        state.getResponse().setBody(bodyBlock);    }        /*     * This method deserializes the body of the searchJobHosts operation.     */    private void _deserialize_searchJobHosts(XMLReader bodyReader, SOAPDeserializationContext deserializationContext, StreamingSenderState state) throws Exception {        Object mySearchJobHostsResponseObj =            ns1_mySearchJobHostsResponse_LiteralSerializer.deserialize(ns1_searchJobHosts_searchJobHostsResponse_QNAME,                bodyReader, deserializationContext);                SOAPBlockInfo bodyBlock = new SOAPBlockInfo(ns1_searchJobHosts_searchJobHostsResponse_QNAME);        bodyBlock.setValue(mySearchJobHostsResponseObj);        state.getResponse().setBody(bodyBlock);    }        /*     *  this method deserializes fault responses     */    protected Object _readBodyFaultElement(XMLReader bodyReader, SOAPDeserializationContext deserializationContext, StreamingSenderState state) throws Exception {        Object faultInfo = null;        int opcode = state.getRequest().getOperationCode();        switch (opcode) {            case searchJobHosts_OPCODE:                faultInfo = myResourceManagerWSSEI_searchJobHosts_Fault_SOAPSerializer.deserialize(null, bodyReader, deserializationContext);                break;            default:                return super._readBodyFaultElement(bodyReader, deserializationContext, state);        }        return faultInfo;    }            protected String _getDefaultEnvelopeEncodingStyle() {        return null;    }        public String _getImplicitEnvelopeEncodingStyle() {        return "";    }        public String _getEncodingStyle() {        return SOAPNamespaceConstants.ENCODING;    }        public void _setEncodingStyle(String encodingStyle) {        throw new UnsupportedOperationException("cannot set encoding style");    }                        /*     * This method returns an array containing (prefix, nsURI) pairs.     */    protected String[] _getNamespaceDeclarations() {        return myNamespace_declarations;    }        /*     * This method returns an array containing the names of the headers we understand.     */    public QName[] _getUnderstoodHeaders() {        return understoodHeaderNames;    }        public void _initialize(InternalTypeMappingRegistry registry) throws Exception {        super._initialize(registry);        ns1_myUnregisterJobHostResponse_LiteralSerializer = (CombinedSerializer)registry.getSerializer("", jwsgrid.ws.resourcemanager.UnregisterJobHostResponse.class, ns1_unregisterJobHostResponse_TYPE_QNAME);        ns1_myRegisterJobHost_LiteralSerializer = (CombinedSerializer)registry.getSerializer("", jwsgrid.ws.resourcemanager.RegisterJobHost.class, ns1_registerJobHost_TYPE_QNAME);        ns1_mySearchJobHosts_LiteralSerializer = (CombinedSerializer)registry.getSerializer("", jwsgrid.ws.resourcemanager.SearchJobHosts.class, ns1_searchJobHosts_TYPE_QNAME);        ns1_mySearchJobHostsResponse_LiteralSerializer = (CombinedSerializer)registry.getSerializer("", jwsgrid.ws.resourcemanager.SearchJobHostsResponse.class, ns1_searchJobHostsResponse_TYPE_QNAME);        ns1_myUnregisterJobHost_LiteralSerializer = (CombinedSerializer)registry.getSerializer("", jwsgrid.ws.resourcemanager.UnregisterJobHost.class, ns1_unregisterJobHost_TYPE_QNAME);        ns1_myPing_LiteralSerializer = (CombinedSerializer)registry.getSerializer("", jwsgrid.ws.resourcemanager.Ping.class, ns1_ping_TYPE_QNAME);        ns1_myPingResponse_LiteralSerializer = (CombinedSerializer)registry.getSerializer("", jwsgrid.ws.resourcemanager.PingResponse.class, ns1_pingResponse_TYPE_QNAME);        ns1_myRegisterJobHostResponse_LiteralSerializer = (CombinedSerializer)registry.getSerializer("", jwsgrid.ws.resourcemanager.RegisterJobHostResponse.class, ns1_registerJobHostResponse_TYPE_QNAME);        ((Initializable)myResourceManagerWSSEI_searchJobHosts_Fault_SOAPSerializer).initialize(registry);    }        private static final QName _portName = new QName("urn:ResourceManagerWS/wsdl", "ResourceManagerWSSEIPort");    private static final int ping_OPCODE = 0;    private static final int unregisterJobHost_OPCODE = 1;    private static final int registerJobHost_OPCODE = 2;    private static final int searchJobHosts_OPCODE = 3;    private final CombinedSerializer myResourceManagerWSSEI_searchJobHosts_Fault_SOAPSerializer = new ReferenceableSerializerImpl(DONT_SERIALIZE_AS_REF,        new jwsgrid.ws.resourcemanager.ResourceManagerWSSEI_searchJobHosts_Fault_SOAPSerializer(ENCODE_TYPE, NOT_NULLABLE));    private static final QName ns1_ping_ping_QNAME = new QName("urn:ResourceManagerWS/types", "ping");    private static final QName ns1_ping_TYPE_QNAME = new QName("urn:ResourceManagerWS/types", "ping");    private CombinedSerializer ns1_myPing_LiteralSerializer;    private static final QName ns1_ping_pingResponse_QNAME = new QName("urn:ResourceManagerWS/types", "pingResponse");    private static final QName ns1_pingResponse_TYPE_QNAME = new QName("urn:ResourceManagerWS/types", "pingResponse");    private CombinedSerializer ns1_myPingResponse_LiteralSerializer;    private static final QName ns1_unregisterJobHost_unregisterJobHost_QNAME = new QName("urn:ResourceManagerWS/types", "unregisterJobHost");    private static final QName ns1_unregisterJobHost_TYPE_QNAME = new QName("urn:ResourceManagerWS/types", "unregisterJobHost");    private CombinedSerializer ns1_myUnregisterJobHost_LiteralSerializer;    private static final QName ns1_unregisterJobHost_unregisterJobHostResponse_QNAME = new QName("urn:ResourceManagerWS/types", "unregisterJobHostResponse");    private static final QName ns1_unregisterJobHostResponse_TYPE_QNAME = new QName("urn:ResourceManagerWS/types", "unregisterJobHostResponse");    private CombinedSerializer ns1_myUnregisterJobHostResponse_LiteralSerializer;    private static final QName ns1_registerJobHost_registerJobHost_QNAME = new QName("urn:ResourceManagerWS/types", "registerJobHost");    private static final QName ns1_registerJobHost_TYPE_QNAME = new QName("urn:ResourceManagerWS/types", "registerJobHost");    private CombinedSerializer ns1_myRegisterJobHost_LiteralSerializer;    private static final QName ns1_registerJobHost_registerJobHostResponse_QNAME = new QName("urn:ResourceManagerWS/types", "registerJobHostResponse");    private static final QName ns1_registerJobHostResponse_TYPE_QNAME = new QName("urn:ResourceManagerWS/types", "registerJobHostResponse");    private CombinedSerializer ns1_myRegisterJobHostResponse_LiteralSerializer;    private static final QName ns1_searchJobHosts_searchJobHosts_QNAME = new QName("urn:ResourceManagerWS/types", "searchJobHosts");    private static final QName ns1_searchJobHosts_TYPE_QNAME = new QName("urn:ResourceManagerWS/types", "searchJobHosts");    private CombinedSerializer ns1_mySearchJobHosts_LiteralSerializer;    private static final QName ns1_searchJobHosts_searchJobHostsResponse_QNAME = new QName("urn:ResourceManagerWS/types", "searchJobHostsResponse");    private static final QName ns1_searchJobHostsResponse_TYPE_QNAME = new QName("urn:ResourceManagerWS/types", "searchJobHostsResponse");    private CombinedSerializer ns1_mySearchJobHostsResponse_LiteralSerializer;    private static final String[] myNamespace_declarations =                                        new String[] {                                            "ns0", "urn:ResourceManagerWS/types"                                        };        private static final QName[] understoodHeaderNames = new QName[] {  };}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -