Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to provide basic authetication from SOAP request to access SAP XI service

 
Ranjini Uddaggatti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I have a problem accessing SAP service. SAP understands authentication if it is provided at HTTP header level instead of SOAP header.
Even after providing authentication details and sending the request along with Postmethod it is throwing an error
"Error during conversion of XI message".

Please Help !!

Thanks in advance
Ranjini
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does Basic authentication work? says -

It carried your credentials (i.e. your ID and password) in BASE64 encoded format.


Have you done that, by any chance?

Regards,
Dan
 
Ranjini Uddaggatti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dan

Thanks for replying .. well i had converted username and password to base64. But there were few headers which had to be added along with authentication
Here is the snippet of the code (working code )


Regards
Ranjini
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic