Deserialize fault in SOAP UI request to BusinessWorks Service Agent
Facts - Tibco
Monday, 05 December 2011 20:22

This note applies to SOAP UI 3.6, and Tibco BusinessWorks 5.8

When doing a soap request with SOAP UI to a Service Agent in a BusinessWorks engine I got the following SOAP fault:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
         <faultcode>SOAP-ENV:Server.InternalServerError</faultcode>
         <faultstring>Exception thrown while trying to deserialize the SOAP message</faultstring>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

It turned out that the wsdl and the xsd's were not included in the Enterprise Archive file. So I added the directory containing the wsdl and the xsd's to the archive resource and rebuilt the ear file and redeployed. This fixed the problem.

Although the Service Agent resource references the wsdl and the xsd's, these dependencies are not automatically included in the ear file. So just adding the Service Agent resource to the archive resource is not enough, the wsdl's and xsd's the Service Agent references as well need to be added as well.