The reason behind the weblog is when we tried to call Web service from XI, We were getting Fault message. “Authentication Error”, But when we called the same Web service from the Web service testing tool, it was working fine, so we did Research on what was going wrong when we were calling the web service from XI. We found the solution to the problem. This Weblog mainly explains the techniques that was used in solving the problems, which will be useful for every one.
1. How to trace the Web service call in XI.
1. Java version > 1.4.0 should have been installed
2. Download the tcpgw.zip from the website into the local m/c
Check OSS Note no 856597
3. Overwrite HTTP Header fields
Some Web services do not accept the message , if Content type is application/XML in the HTTP Header, it will accept only Text/XML. So While calling the Web service, the content has to be changed, This is possible using Module of the adapter as shown in the screen shot.
HTTP Header field values before using the module
Module name – localejbs/AF_Modules/MessageTranspormationBean
Type – Local Enterprise Bean
Module – This is defined by the user, but the same name should be given in
the module configuration for passing the parameters. In this case
In the module configuration ,
Module key – In this case “transform”
Parameter name – TransformContenType
Parameter Value – text/xml;charset=utf-8
HTTP Header field values after using the module
Content-Type: text/xml; charset=utf-8