This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes How to provide basic authetication from SOAP request to access SAP XI service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to provide basic authetication from SOAP request to access SAP XI service" Watch "How to provide basic authetication from SOAP request to access SAP XI service" New topic
Author

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

Ranjini Uddaggatti
Greenhorn

Joined: Apr 15, 2009
Posts: 2
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

Joined: Jul 09, 2001
Posts: 1176
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

William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Ranjini Uddaggatti
Greenhorn

Joined: Apr 15, 2009
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to provide basic authetication from SOAP request to access SAP XI service