/**
* StudentsInfoQuerySoapBindingStub.java
*
* This file was auto-generated from WSDL
* by the IBM Web services WSDL2Java emitter.
* o0444.10 v11404193627
*/
package net.soho.test.webservices.complex;
public class StudentsInfoQuerySoapBindingStub extends com.ibm.ws.webservices.engine.client.Stub implements net.soho.test.webservices.complex.StudentsInfoQuery {
public StudentsInfoQuerySoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws com.ibm.ws.webservices.engine.WebServicesFault {
if (service == null) {
super.service = new com.ibm.ws.webservices.engine.client.Service();
}
else {
super.service = service;
}
super.engine = ((com.ibm.ws.webservices.engine.client.Service) super.service).getEngine();
initTypeMapping();
super.cachedEndpoint = endpointURL;
super.connection = ((com.ibm.ws.webservices.engine.client.Service) super.service).getConnection(endpointURL);
super.messageContexts = new com.ibm.ws.webservices.engine.MessageContext[2];
}
private void initTypeMapping() {
javax.xml.rpc.encoding.TypeMapping tm = super.getTypeMapping(com.ibm.ws.webservices.engine.Constants.URI_LITERAL_ENC);
java.lang.Class javaType = null;
javax.xml.namespace.QName xmlType = null;
javax.xml.namespace.QName compQName = null;
javax.xml.namespace.QName compTypeQName = null;
com.ibm.ws.webservices.engine.encoding.SerializerFactory sf = null;
com.ibm.ws.webservices.engine.encoding.DeserializerFactory df = null;
javaType = net.soho.test.webservices.complex.StudentBean[].class;
xmlType = com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://complex.webservices.test.soho.net", "ArrayOfStudentBean");
compQName = com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "StudentBean");
compTypeQName = com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://complex.webservices.test.soho.net", "StudentBean");
sf = com.ibm.ws.webservices.engine.encoding.ser.BaseSerializerFactory.createFactory(com.ibm.ws.webservices.engine.encoding.ser.ArraySerializerFactory.class, javaType, xmlType, compQName, compTypeQName);
df = com.ibm.ws.webservices.engine.encoding.ser.BaseDeserializerFactory.createFactory(com.ibm.ws.webservices.engine.encoding.ser.ArrayDeserializerFactory.class, javaType, xmlType, compQName, compTypeQName);
if (sf != null || df != null) {
tm.register(javaType, xmlType, sf, df);
}
javaType = net.soho.test.webservices.complex.StudentBean.class;
xmlType = com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://complex.webservices.test.soho.net", "StudentBean");
sf = com.ibm.ws.webservices.engine.encoding.ser.BaseSerializerFactory.createFactory(com.ibm.ws.webservices.engine.encoding.ser.BeanSerializerFactory.class, javaType, xmlType);
df = com.ibm.ws.webservices.engine.encoding.ser.BaseDeserializerFactory.createFactory(com.ibm.ws.webservices.engine.encoding.ser.BeanDeserializerFactory.class, javaType, xmlType);
if (sf != null || df != null) {
tm.register(javaType, xmlType, sf, df);
}
}
private static final com.ibm.ws.webservices.engine.description.OperationDesc _getAllStudentsOperation0;
static {
com.ibm.ws.webservices.engine.description.ParameterDesc[] _params0 = new com.ibm.ws.webservices.engine.description.ParameterDesc[] {
};
com.ibm.ws.webservices.engine.description.ParameterDesc _returnDesc0 = new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "getAllStudentsReturn"), com.ibm.ws.webservices.engine.description.ParameterDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://complex.webservices.test.soho.net", "ArrayOfStudentBean"), net.soho.test.webservices.complex.StudentBean[].class, true, false, false, false, true, false);
com.ibm.ws.webservices.engine.description.FaultDesc[] _faults0 = new com.ibm.ws.webservices.engine.description.FaultDesc[] {
};
_getAllStudentsOperation0 = new com.ibm.ws.webservices.engine.description.OperationDesc("getAllStudents", com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://complex.webservices.test.soho.net", "getAllStudents"), _params0, _returnDesc0, _faults0, "");
if (_getAllStudentsOperation0 instanceof com.ibm.ws.webservices.engine.configurable.Configurable) {
((com.ibm.ws.webservices.engine.configurable.Configurable)_getAllStudentsOperation0).setOption("targetNamespace","http://complex.webservices.test.soho.net");
((com.ibm.ws.webservices.engine.configurable.Configurable)_getAllStudentsOperation0).setOption("portTypeQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://complex.webservices.test.soho.net", "StudentsInfoQuery"));
((com.ibm.ws.webservices.engine.configurable.Configurable)_getAllStudentsOperation0).setOption("outputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://complex.webservices.test.soho.net", "getAllStudentsResponse"));
((com.ibm.ws.webservices.engine.configurable.Configurable)_getAllStudentsOperation0).setOption("inputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://complex.webservices.test.soho.net", "getAllStudentsRequest"));
((com.ibm.ws.webservices.engine.configurable.Configurable)_getAllStudentsOperation0).setOption("outputName","getAllStudentsResponse");
((com.ibm.ws.webservices.engine.configurable.Configurable)_getAllStudentsOperation0).setOption("inputName","getAllStudentsRequest");
((com.ibm.ws.webservices.engine.configurable.Configurable)_getAllStudentsOperation0).setOption("buildNum","o0444.10");
}
_getAllStudentsOperation0.setUse(com.ibm.ws.webservices.engine.enum.Use.LITERAL);
_getAllStudentsOperation0.setStyle(com.ibm.ws.webservices.engine.enum.Style.WRAPPED);
}
private int _getAllStudentsIndex0 = 0;
private synchronized com.ibm.ws.webservices.engine.client.Stub.Invoke _getgetAllStudentsInvoke0(Object[] parameters) throws com.ibm.ws.webservices.engine.WebServicesFault {
com.ibm.ws.webservices.engine.MessageContext mc = super.messageContexts[_getAllStudentsIndex0];
if (mc == null) {
mc = new com.ibm.ws.webservices.engine.MessageContext(super.engine);
mc.setOperation(StudentsInfoQuerySoapBindingStub._getAllStudentsOperation0);
mc.setUseSOAPAction(true);
mc.setSOAPActionURI("");
mc.setEncodingStyle(com.ibm.ws.webservices.engine.Constants.URI_LITERAL_ENC);
mc.setProperty(com.ibm.ws.webservices.engine.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
mc.setProperty(com.ibm.ws.webservices.engine.WebServicesEngine.PROP_DOMULTIREFS, Boolean.FALSE);
super.primeMessageContext(mc);
super.messageContexts[_getAllStudentsIndex0] = mc;
}
try {
mc = (com.ibm.ws.webservices.engine.MessageContext) mc.clone();
}
catch (CloneNotSupportedException cnse) {
throw com.ibm.ws.webservices.engine.WebServicesFault.makeFault(cnse);
}
return new com.ibm.ws.webservices.engine.client.Stub.Invoke(connection, mc, parameters);
}
public net.soho.test.webservices.complex.StudentBean[] getAllStudents() throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new com.ibm.ws.webservices.engine.NoEndPointException();
}
java.util.Vector _resp = null;
try {
_resp = _getgetAllStudentsInvoke0(new java.lang.Object[] {}).invoke();
} catch (
评论0