public void connect() throws Exception {
connect(factParams, identity);
// Building the Call object for sending the requests:
SOAPMappingRegistry mappingReg = new SOAPMappingRegistry();
BeanSerializer beanSer = new BeanSerializer();
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "AbstractJmsRequest"),
AbstractJmsRequest.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "CnxConnectRequest"),
CnxConnectRequest.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "CnxStartRequest"),
CnxStartRequest.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "CnxStopRequest"),
CnxStopRequest.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "CnxCloseRequest"),
CnxCloseRequest.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "ConsumerAckRequest"),
ConsumerAckRequest.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "ConsumerDenyRequest"),
ConsumerDenyRequest.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService",
"ConsumerReceiveRequest"),
ConsumerReceiveRequest.class, beanSer,
beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService",
"ConsumerSetListRequest"),
ConsumerSetListRequest.class, beanSer,
beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService",
"ConsumerUnsetListRequest"),
ConsumerUnsetListRequest.class, beanSer,
beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "ConsumerSubRequest"),
ConsumerSubRequest.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "ConsumerUnsubRequest"),
ConsumerUnsubRequest.class,
beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService",
"ConsumerCloseSubRequest"),
ConsumerCloseSubRequest.class, beanSer,
beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "QBrowseRequest"),
QBrowseRequest.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "SessAckRequest"),
SessAckRequest.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "SessDenyRequest"),
SessDenyRequest.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "SessCreateDestRequest"),
SessCreateDestRequest.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "TempDestDeleteRequest"),
TempDestDeleteRequest.class, beanSer,
beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "GetAdminTopicRequest"),
GetAdminTopicRequest.class, beanSer,
beanSer);
sendCall = new Call();
sendCall.setSOAPMappingRegistry(mappingReg);
sendCall.setTargetObjectURI("urn:ProxyService");
sendCall.setMethodName("send");
sendCall.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
mappingReg = new SOAPMappingRegistry();
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "AbstractJmsReply"),
AbstractJmsReply.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "CnxConnectReply"),
CnxConnectReply.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "ServerReply"),
ServerReply.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "SessCreateTDReply"),
SessCreateDestReply.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "CnxCloseReply"),
CnxCloseReply.class, beanSer, beanSer);
mappingReg.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName("urn:ProxyService", "GetAdminTopicReply"),
GetAdminTopicReply.class, beanSer, beanSer);
receiveCall = new Call();
receiveCall.setSOAPMappingRegistry(mappingReg);