cancel
Showing results for 
Search instead for 
Did you mean: 

A Problem about Demo Example Airline Agency

LouisHuang
Advisor
Advisor
0 Kudos

Hi. ALL.   

               I`m a new hand in PI. These days I tried to finish airline agency tutorial.    

      When I finished the case and tried to execute  the program. 

      I got an error message.     "Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)"        

      And I looked up the message as below.     I found this part.    

  

<Trace level="1" type="T">system-ID = P31</Trace>   

<Trace level="1" type="T">client = 105</Trace>

<Trace level="1" type="T">language = E</Trace>

<Trace level="1" type="T">user = SAP*</Trace>

   It` seems that SAP* has not enough authorization, but I didn`t use this account in my communication channel setting.

   Where can I change this logon account in setting?

   THANKS A LOT.

FULL  MESSAGE:

     

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- -->

- <SOAP:Header>

- <SAP:Main versionMajor="003" versionMinor="001" SOAP:mustUnderstand="1" wsu:Id="wsuid-main-92ABE13F5C59AB7FE10000000A1551F7" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

<SAP:MessageClass>SystemError</SAP:MessageClass>

<SAP:ProcessingMode>synchronous</SAP:ProcessingMode>

<SAP:MessageId>00120EE9-FE0D-1EE2-BEE9-9184935E66D7</SAP:MessageId>

<SAP:RefToMessageId>00120EE9-FE0D-1EE2-BEE9-9184935DC6D7</SAP:RefToMessageId>

<SAP:TimeSent>2013-08-02T08:21:41Z</SAP:TimeSent>

- <SAP:Sender>

<SAP:Service />

<SAP:Interface namespace="" />

</SAP:Sender>

- <SAP:Receiver>

<SAP:Party agency="" scheme="" />

<SAP:Service>P31_105</SAP:Service>

<SAP:Interface namespace="http://sap.com/xi/XI/Demo/Agency">FlightSeatAvailabilityQuery_Out</SAP:Interface>

</SAP:Receiver>

<SAP:Interface namespace="http://sap.com/xi/XI/Demo/Agency">FlightSeatAvailabilityQuery_Out</SAP:Interface>

</SAP:Main>

- <SAP:ReliableMessaging SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SAP:QualityOfService>BestEffort</SAP:QualityOfService>

</SAP:ReliableMessaging>

- <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SAP:Category>XIServer</SAP:Category>

<SAP:Code area="INTERNAL">UNAUTHORIZED</SAP:Code>

<SAP:P1>401</SAP:P1>

<SAP:P2>Unauthorized</SAP:P2>

<SAP:P3>(See attachment HTMLError for details)</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:Stack>Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)</SAP:Stack>

<SAP:Retry>N</SAP:Retry>

</SAP:Error>

- <SAP:HopList SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

- <SAP:Hop timeStamp="2013-08-02T08:21:41Z" wasRead="false">

<SAP:Engine type="BS">P31_105</SAP:Engine>

<SAP:Adapter namespace="http://sap.com/xi/XI/System">XI</SAP:Adapter>

<SAP:MessageId>00120EE9-FE0D-1EE2-BEE9-9184935DC6D7</SAP:MessageId>

<SAP:Info>3.0</SAP:Info>

</SAP:Hop>

</SAP:HopList>

<SAP:Date>20130802</SAP:Date>

<SAP:Time>162141</SAP:Time>

<SAP:Host>LOUISHOME</SAP:Host>

<SAP:SystemId>P31</SAP:SystemId>

<SAP:SystemNr>02</SAP:SystemNr>

<SAP:OS>Windows NT</SAP:OS>

<SAP:DB>MSSQL</SAP:DB>

<SAP:Language />

<SAP:ProcStatus>023</SAP:ProcStatus>

<SAP:AdapterStatus>000</SAP:AdapterStatus>

<SAP:User>SAP*</SAP:User>

<SAP:TraceLevel>1</SAP:TraceLevel>

<SAP:LogSeqNbr>000</SAP:LogSeqNbr>

<SAP:RetryLogSeqNbr>000</SAP:RetryLogSeqNbr>

<SAP:PipelineIdInternal>SAP_SENDER</SAP:PipelineIdInternal>

<SAP:PipelineIdExternal>SENDER</SAP:PipelineIdExternal>

<SAP:PipelineElementId>FEC5B93B44BBA66BE10000000A1148F5</SAP:PipelineElementId>

<SAP:PipelineService>PLSRV_CALL_INTEGRATION_SERVER</SAP:PipelineService>

<SAP:QIdInternal />

<SAP:CommitActor>A</SAP:CommitActor>

<SAP:SplitNumber>0</SAP:SplitNumber>

<SAP:NumberOfRetries>0</SAP:NumberOfRetries>

<SAP:NumberOfManualRetries>0</SAP:NumberOfManualRetries>

<SAP:TypeOfEngine client="105">SND_CENTR</SAP:TypeOfEngine>

<SAP:PlsrvExceptionCode />

<SAP:EOReferenceRuntime type="TID" />

<SAP:EOReferenceInbound type="TID" />

<SAP:EOReferenceOutbound type="TID" />

<SAP:MessageSizePayload>330</SAP:MessageSizePayload>

<SAP:MessageSizeTotal>6979</SAP:MessageSizeTotal>

<SAP:PayloadSizeRequest>330</SAP:PayloadSizeRequest>

<SAP:PayloadSizeRequestMap>0</SAP:PayloadSizeRequestMap>

<SAP:PayloadSizeResponse>0</SAP:PayloadSizeResponse>

<SAP:PayloadSizeResponseMap>0</SAP:PayloadSizeResponseMap>

<SAP:Reorganization>INI</SAP:Reorganization>

<SAP:AdapterInbound>IENGINE</SAP:AdapterInbound>

<SAP:AdapterOutbound>PROXY</SAP:AdapterOutbound>

<SAP:InterfaceAction>INIT</SAP:InterfaceAction>

<SAP:RandomNumber>24</SAP:RandomNumber>

<SAP:AckStatus>000</SAP:AckStatus>

<SAP:SkipReceiverDetermination />

</SAP:RunTime>

- <SAP:PerformanceHeader xmlns:SAP="http://sap.com/xi/XI/Message/30">

- <SAP:RunTimeItem>

<SAP:Name type="CORE">INTEGRATION_ENGINE</SAP:Name>

<SAP:Timestamp type="begin" host="LOUISHOME">20130802082141.624</SAP:Timestamp>

</SAP:RunTimeItem>

- <SAP:RunTimeItem>

<SAP:Name type="CORE">INTEGRATION_ENGINE</SAP:Name>

<SAP:Timestamp type="end" host="LOUISHOME">20130802082141.626</SAP:Timestamp>

</SAP:RunTimeItem>

- <SAP:RunTimeItem>

<SAP:Name type="PLSRV">PLSRV_CALL_INTEGRATION_SERVER</SAP:Name>

<SAP:Timestamp type="begin" host="LOUISHOME">20130802082141.627</SAP:Timestamp>

</SAP:RunTimeItem>

- <SAP:RunTimeItem>

<SAP:Name type="PLSRV">HTTP_SEND</SAP:Name>

<SAP:Timestamp type="begin" host="LOUISHOME">20130802082141.633</SAP:Timestamp>

</SAP:RunTimeItem>

- <SAP:RunTimeItem>

<SAP:Name type="PLSRV">HTTP_SEND</SAP:Name>

<SAP:Timestamp type="end" host="LOUISHOME">20130802082141.66</SAP:Timestamp>

</SAP:RunTimeItem>

- <SAP:RunTimeItem>

<SAP:Name type="CORE">INTEGRATION_ENGINE</SAP:Name>

<SAP:Timestamp type="end" host="LOUISHOME">20130802082141.876</SAP:Timestamp>

</SAP:RunTimeItem>

</SAP:PerformanceHeader>

- <SAP:Diagnostic SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SAP:TraceLevel>Information</SAP:TraceLevel>

<SAP:Logging>Off</SAP:Logging>

</SAP:Diagnostic>

- <SAP:Trace xmlns:SAP="http://sap.com/xi/XI/Message/30">

<Trace level="1" type="T">Work Process ID: 3660</Trace>

<Trace level="1" type="T">Message ID = 00120EE9FE0D1EE2BEE99184935DC6D7</Trace>

- <Trace level="1" type="B" name="CL_XMS_MAIN-ENTER_XMS">

<Trace level="1" type="T">CL_XMS_MAIN->DETERMINE_EXT_PID: SENDER</Trace>

<Trace level="1" type="T">Hop engine name = P31_105</Trace>

<Trace level="1" type="T">Hop engine type = BS</Trace>

<Trace level="1" type="T">Hop adapter name = XI</Trace>

<Trace level="1" type="T">Hop adapter namespace = http://sap.com/xi/XI/System</Trace>

<Trace level="1" type="B" name="CL_XMS_TROUBLESHOOT-ENTER_PLSRV" />

<Trace level="1" type="T">system-ID = P31</Trace>

<Trace level="1" type="T">client = 105</Trace>

<Trace level="1" type="T">language = E</Trace>

<Trace level="1" type="T">user = SAP*</Trace>

<Trace level="1" type="Timestamp">2013-08-02T08:21:41Z CET</Trace>

</Trace>

- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_UC_EXECUTE">

<Trace level="1" type="T">PLNAME = SENDER</Trace>

<Trace level="1" type="T">QOS = BE</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_SYNC" />

- <!--

 ************************************ 
-->

<Trace level="1" type="T">>>>PID delete old pid determination coding</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />

<Trace level="1" type="B" name="PLSRV_CALL_INTEGRATION_SERVER" />

- <!--

 ************************************ 
-->

- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">

<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />
- <!--
 ************************************ 
-->

- <Trace level="1" type="B" name="CL_XMS_PLSRV_IE_ADAPTER-ENTER_PLSRV">

<Trace level="1" type="T">URL for integration server read from global configuration</Trace>

<Trace level="1" type="T">URL= dest://INTEGRATION_SERVER_P31</Trace>

<Trace level="1" type="B" name="CL_XMS_PLSRV_CALL_XMB-CALL_XMS_HTTP" />

- <!--

 ************************************ 
-->

<Trace level="1" type="T">Addressing mode: CallIntegrationServer</Trace>

<Trace level="1" type="T">URL = dest://INTEGRATION_SERVER_P31</Trace>

<Trace level="1" type="T">Host =</Trace>

<Trace level="1" type="T">Port =</Trace>

<Trace level="1" type="T">Transport protocol = HTTP</Trace>

<Trace level="1" type="T">Message protocol = 003001</Trace>

<Trace level="1" type="T">Path =</Trace>

<Trace level="1" type="T">Serializing message object...</Trace>

<Trace level="1" type="T">HTTP Multipart document length: 3490</Trace>

<Trace level="1" type="T">Timeout: 0</Trace>

<Trace level="1" type="T">HTTP-client: request sent</Trace>

<Trace level="1" type="T">HTTP-client: response received</Trace>

<Trace level="1" type="T">HTTP-client: status code = 401</Trace>

<Trace level="1" type="System_Error">Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)</Trace>

</Trace>

</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />

</Trace>

<Trace level="1" type="T">An Exception has occured</Trace>

<Trace level="1" type="T">Error Text: Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)</Trace>

<Trace level="1" type="T">SystemError message generated. Guid: 00120EE9FE0D1EE2BEE99184935E66D7</Trace>

<Trace level="1" type="T">Error during execution of message : 00120EE9FE0D1EE2BEE99184935DC6D7</Trace>

<Trace level="1" type="T">ApplicationMessage was (=RefToMsgId): 00120EE9FE0D1EE2BEE99184935DC6D7</Trace>

<Trace level="1" type="T">CL_XMS_MAIN->DETERMINE_EXT_PID: SENDER</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />

- <!-- -->

</SAP:Trace>

</SOAP:Header>

- <SOAP:Body>

- <SAP:Manifest wsu:Id="wsuid-manifest-5CABE13F5C59AB7FE10000000A1551F7" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

<SAP:Name>HTMLError</SAP:Name>

<SAP:Description />

<SAP:Type>System</SAP:Type>

</SAP:Payload>

</SAP:Manifest>

</SOAP:Body>

</SOAP:Envelope>

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

open SM59 on the system from which you send the proxy (run report) and check RFC dest: INTEGRATION_SERVER_P31  (it's RFC type G or H)

probably password is wrong there for the user which you've used there,

Regards,

Michal Krawczyk

LouisHuang
Advisor
Advisor
0 Kudos

Hi. Michal.   Thanks for your problem.   I changed the password in SM59 and it worked.

Answers (0)