cancel
Showing results for 
Search instead for 
Did you mean: 

XML Mapping

Former Member
0 Kudos

Dear Community,

is there a possiblity to map XML responses from webservices calls via SOAP or JSON in Cloud Studio to a custom object?

If we are looking for example to other languages e.g. Java, where you can use a marshaller which serializes an object to XML, and an unmarshaller which deserializes XML streams to an object.

Do you parse the responses of such calls, or how to you handle such things?

Kind Regards,

Lukas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Lukas,

the Studio will generate an ObjectStub for the Responses of the Web Service.

If you want to have the response in an own BO you have to transport the Date for the Stub BO to your own BO via ABSL.

Best regards

Tobias

Former Member
0 Kudos

What I exactly want to do is, I want do call a Rest Service and want to map a XML response like this:

<feed xml:base="https://myxxxxxx.sapbydesign.com/sap/byd/odata/CRM_CUSTOMERINVOICING_analytics.svc/" xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"> <id>https://myxxxxxx.sapbydesign.com/sap/byd/odata/CRM_CUSTOMERINVOICING_analytics.svc/RPCRMCIVIB_Q0001Q...</id>

   <title type="text">RPCRMCIVIB_Q0001QueryResults</title>

   <updated>2015-08-07T07:26:34Z</updated>

<author>

<name/>

</author>

   <link href="RPCRMCIVIB_Q0001QueryResults" rel="self" title="RPCRMCIVIB_Q0001QueryResults"/>

   <entry>

    <id>https://myxxxxxx.sapbydesign.com/sap/byd/odata/CRM_CUSTOMERINVOICING_analytics.svc/RPCRMCIVIB_Q0001Q...')</id>

      <title type="text">RPCRMCIVIB_Q0001QueryResults('%7CCDOC_YEAR%3D2015%7CCDOC_YEAR_MONTH%3D07.2015%7C')</title>

<updated>2015-08-07T07:26:34Z</updated>

<category term="sapbyd.RPCRMCIVIB_Q0001QueryResult" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

      <link href="RPCRMCIVIB_Q0001QueryResults('%7CCDOC_YEAR%3D2015%7CCDOC_YEAR_MONTH%3D07.2015%7C')" rel="self" title="RPCRMCIVIB_Q0001QueryResult"/>

      <content type="application/xml">

<m:properties>

            <d:CDOC_YEAR>2015</d:CDOC_YEAR>

<d:CDOC_YEAR_MONTH>07.2015</d:CDOC_YEAR_MONTH>

<d:FCNT_REVENUE>2.271,30 EUR</d:FCNT_REVENUE>

<d:KCGR_VAL_INV>2501.890000</d:KCGR_VAL_INV>

<d:UCNT_REVENUE>EUR</d:UCNT_REVENUE>

         </m:properties>

      </content>

   </entry>

</feed>

Is that possible?