Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

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.





Prerequisites :

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

              https://websmp202.sap-ag.de/~sapidb/012006153200000201802006E/tcpgw.zip






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


User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505


content-id: payload-45A352A90948582CE1000000CDEFD4B7@sap.com


content-type: application/xml


Content-Length: 1280





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
“transform”

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

User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505


content-id: payload-45A352850948582CE1000000CDEFD4B7@sap.com


Content-Type: text/xml; charset=utf-8


Content-Length: 1280







7 Comments