cancel
Showing results for 
Search instead for 
Did you mean: 

Read Enterprise Service Repository (ESR) API

Former Member
0 Kudos

Hi,

I've found the Integration Directory API which is useful to read configuration objects. But I would also like to
connect to the Enterprise Service Repository to extract for example a Service Interfaces and the used Message Types and
the Structure. Are there Webservices or a JAVA API (JAR file) to get to that information?

Thanks and best regards,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi Peter,

1. there is no API

2. for reading you can use simplequery:

http://wiki.sdn.sap.com/wiki/display/XI/Access+SAP+PI+objects+simply+with+SimpleQuery

to read all things from ESR (message types, etc.) - it works pretty well

let me know if you can use it,

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

I hoped that there would also be some webservices/API, but I think these queries will also do it.

Thanks a lot!

MichalKrawczyk
Active Contributor
0 Kudos

Hi Peter,

we're used it for automated documentation and it was working very well

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

I played a bit with the Simple Queries and they work quite well, but there is another small thing I would like to know. I saw that you are able to mark 2 checkboxes: Show request XML and Show Response XML.

Is it possible to send that generated Request XML as query? The reason is that I would like to be more flexible in the result list. Lets say like if I want to extract all Software Component Versions, I would like to have only the ID and name in the response.

Thanks and best regards,

Peter

vishal_javalkar
Explorer
0 Kudos

Hi Michal,

Thanks for the info.

I am trying to call the http://<host>:<port>/rep/support/SimpleQuery via my HTTP Client. I am facing below two issues :

1. Whenever I am trying to call the url via my client , I am getting SAP Logon page in the response. though I had set credentials as basic authentication  parameters.How to address the authentication in this scenario ?

2. How do I pass the request query to /rep/support/SimpleQuery , should I :

     a. pass the request xml as body with HTTP post call

     b. set the parameters in the text area 'use this request xml' and call the /SimpleQuery servlet.

Could you please explain on how did you get the required ESR details via a client application.

Really appreciate your advise and help.

Regards,

Vishal

ralf_zimmerningkat3
Participant
0 Kudos

Hi Michael

can you please show an example of how to use

http://<host>:<port>/rep/support/SimpleQuery

for or automated documentation?

is there a http post example to send a reported request xml

like this

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

<generalQueryRequest>

    <types xmlns="">

        <type id="RepBProcess"/>

        <type id="XI_TRAFO"/>

        <type id="ifmmessage"/>

        <type id="MAPPING"/>

        <type id="process"/>

        <type id="ifmmessif"/>

    </types>

    <qc xmlns="" qcType="S" delMode="N" useSyncT="true" clCtxOnly="false">

        <clCxt consider="A"/>

        <swcListDef def="G">

            <swcInfoList>

                <swc id="3c81025196de11e2c060f3460a9a1457" sp="-1" underL="true" onlyMod="false"/>

            </swcInfoList>

        </swcListDef>

    </qc>

    <condition xmlns="">

        <complex/>

    </condition>

    <result xmlns="">

        <attrib>MODIFYUSER</attrib>

        <attrib>MODIFYDATE</attrib>

        <attrib>RA_XILINK</attrib>

        <attrib>MULTIPLICITY</attrib>

        <attrib>NAME</attrib>

        <attrib>NAMESPACE</attrib>

        <attrib>OBJECTID</attrib>

        <attrib>VERSIONID</attrib>

    </result>

regards

Ralf

Former Member
0 Kudos

Hello, Ralf,

We discussed on some utility ages before 🙂

There is another one, diffo. https://github.com/chumpa/pinternals_diffo

It's purpose is cross-system objects diff, and it is in some limited usage (no SSO is supported, but for 7.1 is OK). Plugin for Eclipse is developed by my colleguae.

Write iliya.kuznetsov@gmail.com for questions.

Answers (2)

Answers (2)

vishal_javalkar
Explorer
0 Kudos

Hi Peter,

Thanks for the info.

I am trying to call the http://<host>:<port>/rep/support/SimpleQuery via my HTTP Client. I am facing below two issues :

1. Whenever I am trying to call the url via my client , I am getting SAP Logon page in the response. though I had set credentials as basic authentication  parameters.How to address the authentication in this scenario ?

2. How do I pass the request query to /rep/support/SimpleQuery , should I :

     a. pass the request xml as body with HTTP post call

     b. set the parameters in the text area 'use this request xml' and call the /SimpleQuery servlet.

Could you please explain on how did you get the required ESR details via a client application.

Really appreciate your advise and help.

Regards,

Vishal

baskar_gopalakrishnan2
Active Contributor
0 Kudos

IMO, there is no such API to access ESR information. Currently we have only for Integration Directory. BTW, why do we need for it?