KB Article #150105

https server: client gets "Bad Authorization" error

Problem

-- XIB acts as server, the customer acts as client by using an SAP https adapter.
The customer gets the error "Bad Authorization".



XIB answered with this error message. Here the belonging trace log entries:



UNKNOWN:20111213:15.36.45.80::50 4F 53 54 20 2F 69 6E 76 6F 6B 65 2F 47 55 2E : POST /invoke/GU.
UNKNOWN:20111213:15.36.45.80::47 61 74 65 77 61 79 2F 72 65 63 65 69 76 65 58 : Gateway/receiveX
UNKNOWN:20111213:15.36.45.80::4D 4C 20 48 54 54 50 2F 31 2E 30 0D 0A 63 6F 6E : ML HTTP/1.0..con
UNKNOWN:20111213:15.36.45.80::74 65 6E 74 2D 74 79 70 65 3A 20 74 65 78 74 2F : tent-type: text/
UNKNOWN:20111213:15.36.45.80::78 6D 6C 3B 20 63 68 61 72 73 65 74 3D 75 74 66 : xml; charset=utf
UNKNOWN:20111213:15.36.45.80::2D 38 0D 0A 63 6F 6E 74 65 6E 74 2D 6C 65 6E 67 : -8..content-leng
UNKNOWN:20111213:15.36.45.80::74 68 3A 20 31 33 36 31 36 0D 0A 75 73 65 72 2D : th: 13616..user-
UNKNOWN:20111213:15.36.45.80::61 67 65 6E 74 3A 20 53 41 50 20 57 65 62 20 41 : agent: SAP Web A
UNKNOWN:20111213:15.36.45.80::70 70 6C 69 63 61 74 69 6F 6E 20 53 65 72 76 65 : pplication Serve
UNKNOWN:20111213:15.36.45.80::72 20 28 31 2E 30 3B 36 32 30 29 0D 0A 68 6F 73 : r (1.0;620)..hos
UNKNOWN:20111213:15.36.45.80::74 3A 20 65 64 69 31 2E 73 77 6F 72 64 2D 74 65 : t: edi1.sword-te
UNKNOWN:20111213:15.36.45.80::73 74 2E 64 62 73 63 68 65 6E 6B 65 72 2E 63 6F : st.dbschenker.co
UNKNOWN:20111213:15.36.45.80::6D 0D 0A 61 63 63 65 70 74 2D 65 6E 63 6F 64 69 : m..accept-encodi
UNKNOWN:20111213:15.36.45.80::6E 67 3A 20 67 7A 69 70 0D 0A 61 75 74 68 6F 72 : ng: gzip..author
UNKNOWN:20111213:15.36.45.80::
DEBUG  :20111213:15.36.45.80:procengine(procengine(ta_http)):[HTTP Server:20111202-121646.28-4]
UNKNOWN:20111213:15.36.45.80::69 7A 61 74 69 6F 6E 3A 20 42 61 73 69 63 20 52 : ization: Basic R
UNKNOWN:20111213:15.36.45.80::31 56 54 51 56 41 36 54 56 42 76 62 69 51 79 59 : 1VTQVA6TVBvbiQyY
UNKNOWN:20111213:15.36.45.80::77 3D 3D 0D 0A 73 61 70 2D 6C 61 6E 67 75 61 67 : w==..sap-languag
UNKNOWN:20111213:15.36.45.80::65 3A 20 44 0D 0A 0D 0A                         : e: D....
DEBUG  :20111213:15.36.45.81:procengine(procengine(ta_http)):[HTTP Server:20111202-121646.28-4]File received: length received = 13616, now sending response
DEBUG  :20111213:15.36.45.81:procengine(procengine(ta_http)):[HTTP Server:20111202-121646.28-4]Response header
DEBUG  :20111213:15.36.45.81:procengine(procengine(ta_http)):[HTTP Server:20111202-121646.28-4]
UNKNOWN:20111213:15.36.45.81::48 54 54 50 2F 31 2E 30 20 34 30 31 20 42 61 64 : HTTP/1.0 401 Bad
UNKNOWN:20111213:15.36.45.81::20 41 75 74 68 6F 72 69 73 61 74 69 6F 6E 0D 0A :  Authorisation..
UNKNOWN:20111213:15.36.45.81::44 61 74 65 3A 20 54 75 65 2C 20 31 33 20 44 65 : Date: Tue, 13 De
UNKNOWN:20111213:15.36.45.81::63 20 32 30 31 31 20 31 35 3A 33 36 3A 34 35 0D : c 2011 15:36:45.
UNKNOWN:20111213:15.36.45.81::0A 53 65 72 76 65 72 3A 20 58 49 42 20 48 54 54 : .Server: XIB HTT
UNKNOWN:20111213:15.36.45.81::50 2F 54 41 5F 48 54 54 50 2F 32 2E 36 2E 32 0D : P/TA_HTTP/2.6.2.
UNKNOWN:20111213:15.36.45.81::0A 0D 0A                                        : ...


Resolution

-- Changes need to be done on the Taks Manager for the SAP Application Connector Task.



Put in the Configuration tab the correct information (Host, Gateway host, client, etc and also most important the correct user and password).



Please make sure the correct information is in place and retest this.