|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Exception in WebService connector |
« View previous topic :: View next topic » |
Author |
Message
|
Thripura Sundari |
Posted: Fri Sep 23, 2005 5:18 am Post subject: Exception in WebService connector |
|
|
Acolyte
Joined: 13 Jun 2005 Posts: 57 Location: Bangalore, India
|
Hi,
I am getting an exception with the webservice connector.
I am trying to expose my collaboration as a webservice and inturn call an external webservice within my collaboration. I have two web service connectors and 4 Maps, TLO1 to GBO, GBO to TLO2, for the entire request process and TLO2 to GBo and GBo to TLO1 for the entire response process.
When I send the request from XML Spy, I can see that the mapping of TLO1 to GBO and GBO to TLO2 are over complete. I have printed the triggeringBusObj in the collaboration whihc is tht GBO and after which I am getting the following as TLO2:
-----------------------------------
[Time: 2005/09/23 18:14:06.813] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Getting the following business object from the map:
<StartHeader>
<Version = 3.0>
<EndHeader>
<StartBO:SOAP_shipDetails_P0163225544_TLO>
BusinessObject = SOAP_shipDetails_P0163225544_TLO
Verb = Create
Locale = en_US
Handler = soap/http
MimeType = CxIgnore
Charset = CxIgnore
BOPrefix = CxIgnore
<StartChild>
Request = 1
<StartBO:SOAP_shipDetails_P0163225544_Request>
BusinessObject = SOAP_shipDetails_P0163225544_Request
Verb = CxBlank
Locale = en_US
<StartChild>
shipDetails = 1
<StartBO:SOAP_shipDetails_P0163225544_N1482454177_shipDetails>
BusinessObject = SOAP_shipDetails_P0163225544_N1482454177_shipDetails
Verb = CxBlank
Locale = en_US
ishipId = 8
ObjectEventId = CxIgnore
<EndBO:SOAP_shipDetails_P0163225544_N1482454177_shipDetails>
<EndChild>
<StartChild>
SOAPConfigMO = CxBlank
<StartBO:SOAPConfigMO>
<EndBO:SOAPConfigMO>
<EndChild>
<StartChild>
ProtocolConfigMO = CxBlank
<StartBO:ProtocolConfigMO>
<EndBO:ProtocolConfigMO>
<EndChild>
ObjectEventId = CxIgnore
<EndBO:SOAP_shipDetails_P0163225544_Request>
<EndChild>
<StartChild>
Response = CxBlank
<StartBO:Response>
<EndBO:Response>
<EndChild>
ObjectEventId = WebServicesConnector_1127479446750_1
<EndBO:SOAP_shipDetails_P0163225544_TLO>]
-----------------------------------
But after this, I am getting the exception,
------------------------------------------
[Time: 2005/09/23 18:14:06.813] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: addPendList Cookie: ]
[Time: 2005/09/23 18:14:06.813] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: addPendList Cookie: Fri Sep 23 18:12:37 IST 2005]
[Time: 2005/09/23 18:14:06.813] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: synchronizedWait]
[Time: 2005/09/23 18:14:06.813] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: posting business object with cookie Fri Sep 23 18:12:37 IST 2005]
[Time: 2005/09/23 18:14:06.813] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: [9543] postingBusObj name=SOAP_shipDetails_P0163225544_TLO verb=Create cookie=Fri Sep 23 18:12:37 IST 2005]
[Time: 2005/09/23 18:14:06.813] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Agent process is running, Processing postBusObj]
[Time: 2005/09/23 18:14:07.391] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: [9543] deliverAcknowledge status=-1 cookie=Fri Sep 23 18:12:37 IST 2005 rtnObj.status=-1 rtnObj.message=[Type: Error] [MsgID: 45010] [Mesg: Failure in transforming response of tlo "SOAP_shipDetails_P0163225544_TLO" into bo. Reason: Error: BusinessObject Name cannot be determined from the DOCTYPE in the data sream.
Stack Trace:
com.crossworlds.cwconnectorapi.exceptions.ParseException: Error: BusinessObject Name cannot be determined from the DOCTYPE in the data sream.
at com.crossworlds.cwconnectorapi.CWConnectorUtil.byteArrayToBO(CWConnectorUtil.java:2443)
at com.ibm.adapters.protocol.protocolhandlers.http.PABaseHandler.generateResponseBo(PABaseHandler.java:908)
at com.ibm.adapters.protocol.protocolhandlers.http.PABaseHandler.processResponse(PABaseHandler.java:589)
at com.ibm.adapters.protocol.protocolhandlers.http.PABaseHandler.processRequest(PABaseHandler.java:206)
at com.ibm.adapters.protocol.PAProtocolHandlerFramework.doVerbFor(PAProtocolHandlerFramework.java:555)
at com.ibm.adapters.protocol.PAEngine.doVerbFor(PAEngine.java:382)
at com.ibm.adapters.protocol.PABOHandler.doVerbFor(PABOHandler.java:141)
at com.crossworlds.cwconnectorapi.CWConnectorBOHandler.doVerbFor(CWConnectorBOHandler.java:130)
at CxCommon.BusinessObject.doVerbFor(BusinessObject.java:2128)
at AppSide_Connector.BusObjJavaInterface.DoVerbFor(BusObjJavaInterface.java:194)
at AppSide_Connector.AppCalls.DoVerbFor(AppCalls.java:265)
at AppSide_Connector.AgentBusinessObjectManager.DoVerbFor(AgentBusinessObjectManager.java:1398)
at CxCommon.Messaging.IIOP.IDLAgent.IpostBusObj(IDLAgent.java:209)
at IdlStubs.IConnAgentPOA._invoke(IConnAgentPOA.java:197)
at com.ibm.rmi.poa.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:398)
at com.ibm.rmi.poa.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:252)
at com.ibm.rmi.poa.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:158)
at com.ibm.rmi.iiop.ORB.process(ORB.java:396)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1608)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2164)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)
at com.ibm.rmi.iiop.WorkerThread.run(ThreadPoolImpl.java:182)
at java.lang.Thread.run(Thread.java:513)
.] ]
[Time: 2005/09/23 18:14:07.391] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Received Ack response in lieu of BusObj. Status: -1 Cookie: Fri Sep 23 18:12:37 IST 2005]
[Time: 2005/09/23 18:14:07.391] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Delivering Acknowledgement for Business Object: CruiseSearch_GBO to co_SearchCruiseSuppliers]
[Time: 2005/09/23 18:14:07.391] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Connector:ExternalWebServiceConnectorreceived message from application[Type: Error] [MsgID: 45010] [Mesg: Failure in transforming response of tlo "SOAP_shipDetails_P0163225544_TLO" into bo. Reason: Error: BusinessObject Name cannot be determined from the DOCTYPE in the data sream.
Stack Trace:
com.crossworlds.cwconnectorapi.exceptions.ParseException: Error: BusinessObject Name cannot be determined from the DOCTYPE in the data sream.
at com.crossworlds.cwconnectorapi.CWConnectorUtil.byteArrayToBO(CWConnectorUtil.java:2443)
at com.ibm.adapters.protocol.protocolhandlers.http.PABaseHandler.generateResponseBo(PABaseHandler.java:908)
at com.ibm.adapters.protocol.protocolhandlers.http.PABaseHandler.processResponse(PABaseHandler.java:589)
at com.ibm.adapters.protocol.protocolhandlers.http.PABaseHandler.processRequest(PABaseHandler.java:206)
at com.ibm.adapters.protocol.PAProtocolHandlerFramework.doVerbFor(PAProtocolHandlerFramework.java:555)
at com.ibm.adapters.protocol.PAEngine.doVerbFor(PAEngine.java:382)
at com.ibm.adapters.protocol.PABOHandler.doVerbFor(PABOHandler.java:141)
at com.crossworlds.cwconnectorapi.CWConnectorBOHandler.doVerbFor(CWConnectorBOHandler.java:130)
at CxCommon.BusinessObject.doVerbFor(BusinessObject.java:2128)
at AppSide_Connector.BusObjJavaInterface.DoVerbFor(BusObjJavaInterface.java:194)
at AppSide_Connector.AppCalls.DoVerbFor(AppCalls.java:265)
at AppSide_Connector.AgentBusinessObjectManager.DoVerbFor(AgentBusinessObjectManager.java:1398)
at CxCommon.Messaging.IIOP.IDLAgent.IpostBusObj(IDLAgent.java:209)
at IdlStubs.IConnAgentPOA._invoke(IConnAgentPOA.java:197)
at com.ibm.rmi.poa.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:398)
at com.ibm.rmi.poa.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:252)
at com.ibm.rmi.poa.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:158)
at com.ibm.rmi.iiop.ORB.process(ORB.java:396)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1608)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2164)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)
at com.ibm.rmi.iiop.WorkerThread.run(ThreadPoolImpl.java:182)
at java.lang.Thread.run(Thread.java:513)
.] ]
[Time: 2005/09/23 18:14:07.406] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Passing the following business object into the map:
<StartHeader>
<Version = 3.0>
<EndHeader>
<StartBO:CruiseSearch_GBO>
BusinessObject = CruiseSearch_GBO
Verb = Create
Locale = en_US
ishipId = 8
<StartChild>
CruiseSailingDetails = CxBlank
<StartBO:CruiseSailingDetails>
<EndBO:CruiseSailingDetails>
<EndChild>
ObjectEventId = WebServicesConnector_1127479446750_1
<EndBO:CruiseSearch_GBO>]
[Time: 2005/09/23 18:14:07.406] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Getting null business object from the map.]
[Time: 2005/09/23 18:14:07.406] [System: ConnectorController] [SS: ExternalWebServiceConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: removePendList Cookie: Fri Sep 23 18:12:37 IST 2005]
[Time: 2005/09/23 18:14:07.406] [System: Collaboration] [SS: co_SearchCruiseSuppliers] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Completed step2, status =0]
[Time: 2005/09/23 18:14:07.406] [System: Collaboration] [SS: co_SearchCruiseSuppliers] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Starting Step7 Status =0]
[Time: 2005/09/23 18:14:07.406] [System: Collaboration] [SS: WT=3WebServicesConnector_1127479446750_1CxCommon.FlowExecContext@6623acdf.scn_SearchCruiseSuppliers:] [Thread: WT=3 (#921726172)] [Type: Info] [Mesg: I am in Exception Mode]
[Time: 2005/09/23 18:14:07.406] [System: Collaboration] [SS: co_SearchCruiseSuppliers] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Completed step7, status =0]
[Time: 2005/09/23 18:14:07.406] [System: Collaboration] [SS: co_SearchCruiseSuppliers] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Starting Step15 Status =0]
[Time: 2005/09/23 18:14:07.406] [System: Collaboration] [SS: co_SearchCruiseSuppliers] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Start Rollback for CruiseSearch_GBO.Create]
[Time: 2005/09/23 18:14:07.422] [System: Collaboration] [SS: co_SearchCruiseSuppliers] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Collaboration unlock: remove processed event CruiseSearch_GBO.Create[" ishipId=8 CruiseSailingDetails=null"] with ObjectEventId WebServicesConnector_1127479446750_1 from the Instance Queue.]
[Time: 2005/09/23 18:14:07.422] [System: ConnectorController] [SS: WebServicesConnector] [Thread: WT=3 (#921726172)] [Type: Trace] [Mesg: Collaboration Returning BO : <StartHeader>
<Version = 3.0>
<EndHeader>
<StartBO:CruiseSearch_GBO>
BusinessObject = CruiseSearch_GBO
Verb = Create
Locale = en_US
ishipId = 8
<StartChild>
CruiseSailingDetails = CxBlank
<StartBO:CruiseSailingDetails>
<EndBO:CruiseSailingDetails>
<EndChild>
ObjectEventId = WebServicesConnector_1127479446750_1
<EndBO:CruiseSearch_GBO>]
----------------------------------------------------------------
Some body please help me as to what could be the source of this excepion. I have both the connectors running fine (except for this exception...). The jar files are in place. The external application is a .NET webservice. Can some one please help me?
Thanks and regards,
Thripura Sundari. |
|
Back to top |
|
 |
KBGR |
Posted: Fri Sep 23, 2005 6:43 am Post subject: Exception in WebService connector |
|
|
 Newbie
Joined: 23 Sep 2005 Posts: 1
|
From the Errors given by you : it is showing that it cannot obtain the object's name. Try once by giving 'SOAP' as Default value in BOPrefix
and 'xml/soap' in MimeType of TLO |
|
Back to top |
|
 |
Thripura Sundari |
Posted: Sat Sep 24, 2005 9:43 pm Post subject: |
|
|
Acolyte
Joined: 13 Jun 2005 Posts: 57 Location: Bangalore, India
|
MimeType = CxIgnore
Hi,
Thanks for the reply... Yes, you are right!!!
I had given xml/soap as default value in the TLO, and UseDefaults - true in the web service connector. But I didnt know why this value was not being taken, because of which I was getting
Quote: |
MimeType = CxIgnore
|
. Thne, I explicitly set the MIMETYPE value to xml/soap in the GBO to TLO2 map and I was able to get the result.
Now, I have another question about how to access the web service from external applications, which I intend to post as a new topic. If you know, please help.
Regards,
Thripura Sundari |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|