This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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: 1167
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
 
Similar Threads
What is this cert?
SOAP question
Calling enterprise webservice from js
XFire Authentication Failure
The HTTP request is unauthorized with client authentication scheme 'Anonymous'