Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error SOAP client calls XI

Hello,

I have created a java SOAP client to call a XI SOAP service. My code to do this:

String endpoint =

"http://sdfsd:8000/XISOAPAdapter/" +

"MessageServlet?channel=:t_Client:SAPCALL";

Service service = new Service();

Call call = (Call) service.createCall();

call.setUsername("sss");

call.setPassword("sss");

When I call it I get this error from XI:

Caused by: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:UPDATE:HTTP status code401 Unauthorized

at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:418)

at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:125)

at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:511)

at com.sap.engine.frame.core.thread.Task.run(Task.java:60)

at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:74)

at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:140)

]]></text>

In the SXMB_MONI application I see the same error:

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

- <!-- Empfänger-Ermittlung

-->

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

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

<SAP:Code area="XICACHE">UPDATE</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText>HTTP status code401 Unauthorized</SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>Es ist ein Fehler beim Auffrischen des XI Runtime Caches aufgetreten.</SAP:Stack>

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

</SAP:Error>

Does anyone knows where the error comes from?

Thank you,

Juraj

Not what you were looking for? View more on this topic or Ask a question