Activity performing: Migration from IBM WODM 7.5 to IBM ODM 8.11.1
Issue description:
For 7.5 IBM WODM version, below is the Integration javacode snippet.
private IlrPOJOSessionFactory jrulesSessionFactory = new IlrPOJOSessionFactory();
jrulesSessionFactory.setXuConnectionFactoryJndiName("eis/XUConnectionFactory");
IlrStatelessSession session = jrulesSessionFactory.createStatelessSession();
IlrPath rulesetPath = IlrPath.parsePath(getRulesetPath(rulesetName));
IlrSessionRequest request = jrulesSessionFactory.createRequest();
request.setRulesetPath(rulesetPath);
request.setTraceEnabled(true);
For making above code compatible with 8.11.1 version of ODM, referred IBM ODM Knowledge center docs and moved only "jrulesSessionFactory.setXuConnectionFactoryJndiName("eis/XUConnectionFactory");" from java code to web.xml.
below is the web.xml details:
<resource-ref>
<res-ref-name>eis/XUConnectionFactory</res-ref-name>
<res-type>javax.resource.cci.ConnectionFactory</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Unshareable</res-sharing-scope>
</resource-ref>
rest of the code remains in java code.
Built above java code along with web.xml and deployed in WAS9 server. while doing SOAP UI testing getting error in SOAP response.
Below is the SOAP response.
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">
<faultcode>S:VersionMismatch</faultcode>
<faultstring>Couldn't create SOAP message. Expecting Envelope in namespace http://schemas.xmlsoap.org/soap/envelope/, but got http://www.w3.org/2003/05/soap-envelope/</faultstring>
</S:Fault>
</S:Body>
</S:Envelope>
kindly assist.
------------------------------
Santosh NarendraDas
------------------------------