cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronous Scenario : Logging in XI

Former Member
0 Kudos

Hello All,

As per the documentation it is possible to turn on logging for synchronous calls even though logging_synch is set to 0 in sxmb_adm. Did any one had luck in doing this???

http://help.sap.com/saphelp_nw04/helpdata/en/d6/49543b1e49bc1fe10000000a114084/frameset.htm

+ Set logging in the message header. This means that this message is logged even if logging is deactivated explicitly in the configuration. The logging information is part of the message header:

¡ <SAP:Logging>1</SAP:Logging>

Activates logging explicitly.

¡ <SAP:Logging>0</SAP:Logging>

Deactivates logging explicitly.+

Thanks,

Naveen

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

don't know if this is what you mean but one of the ways:

/people/michal.krawczyk2/blog/2007/04/30/xipi-personalized-logging-tracing

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

bhavesh_kantilal
Active Contributor
0 Kudos

Mike,

Great Job .

Everything I see a blog from you, I realise that there is still a lot in XI I dunno...

Regards

Bhavesh

MichalKrawczyk
Active Contributor
0 Kudos

hi Bhavesh,

>>>is still a lot in XI I dunno...

the same with me hehe

especially when I hear questions from experts like Naveen

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Hi Michal/Bhavesh,

One dumb question. Can you pls tell me where I can open this Error analysis setting? I tried to find out, but I couldn't. Also did a search in help.sap and nothing hits...

Regards,

Jai Shankar

MichalKrawczyk
Active Contributor
0 Kudos

hi,

didn't you check my blog?

SXMB_ADM

Regards,

michal

Former Member
0 Kudos

Hi Michal,

Oops... I was looking in Integration Engine Configuration. Thanks for clarification. Wonderful job.

Regards,

Jai Shankar

MichalKrawczyk
Active Contributor
0 Kudos

Regards,

michal

Former Member
0 Kudos

Hello Michal,

We did try error analysis. But setting logging for a user doesn't seem to work as for synchronous soap calls. adapter engine connects to the server using XIAFUSER. So unfortunelty setting logging for this user is like setting logging_sych in sxmb_adm.

In your case since you were using the test HTMl page, which was directly posting to the integration engine, having ur id in error analysis worked.

Cheers,

Naveen

MichalKrawczyk
Active Contributor
0 Kudos

hi Naveen,

>>>>adapter engine connects to the server using XIAFUSER

you're right so it only works with IDOC and HTTP adapter I guess

Regards,

michal

Former Member
0 Kudos

Gentlemen,

I figured out a way to do logging. The documentation was correct, we need to insert <SAP:Logging> directly into the message header. Following is the correct format of specifying the soap header.

<soapenv:Envelope

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<b> <soapenv:Header>

<sap:Diagnostic soapenv:mustUnderstand="1"

xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"

xmlns:sap="http://sap.com/xi/XI/Message/30"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<sap:TraceLevel>Fatal</sap:TraceLevel>

<sap:Logging>On</sap:Logging>

</sap:Diagnostic>

</soapenv:Header></b>

<soapenv:Body>

...........................................................

</soapenv:Body>

</soapenv:Envelope>

Cheers,

Naveen

bhavesh_kantilal
Active Contributor
0 Kudos

Naveen,

Can you let us also know how you insert this SOAP Envelope into the message header?

Is it done in the mapping stage? if yes, how?

Thanks for the tip in advance.

Regards

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

This has to be done outside XI, the sender has to set the soap header when making the soap call.

Cheers,

Naveen

svalluri23
Participant
0 Kudos

Hi,

Can you explain me little bit more about "how we insert this SOAP Envelope into the message header?" Actually this is sap tag, how the non-sap team will send this. Kindly clarify me.

Hi Bhavesh,

Is your problem resolved with Naveen's guidelines?

Thanks & Regards,

Srihari.

Former Member
0 Kudos

Hi - Naveens post on the solution is quite old (2007) and I was wondering if anything has happened/changed later? We are running PI 7.11 and are now facing the issue that we would like to be able to turn on logging for synchronous soap interfaces in some situatons. Will we still have to set it in the soap header? Will we have to ask our external partners to set this when calling our service or could we do it ourselves during the flow?

Also is there a way to monitor syncronous soap messages when using integrated scenario in AAE?? 

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Naveen,

Do let us know if you find the answer to your own question.

Regards

Bhavesh