cancel
Showing results for 
Search instead for 
Did you mean: 

Message Interface in XI as Web-Service

Former Member
0 Kudos

Hi,

I should create one web-service from message interface. This web-service should be message-literal web service(not sure what that means) and mapped to an IDOC. Is it possible and how to do that?

thx

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Mslopar

I dont think there is anything like Message - literal web service. Check with W3Schools if required. If it refer to SOAP binding then you can create web service from PI that will satisfy this requirement

Request message can be a single string. You need to parse it in mapping to use.

Web services can be created with WSDL -> XML -> XSD methods only. With this in PI when you create a WSDL it always acts for Outbound interface that you can map to any target interface like IDOC, JDBC, etc.

Thanks

Gaurav

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

U may expose ur outbound interfaces as web service in XI.

The mapping of the message type of this outbound interface could be done with Idoc. What else do you need?

Regards,

Prateek

Former Member
0 Kudos

Well the problem is how can I make some web service in XI as message-literal and what that exactly means. I presume that message-literal means that there is only one parameter, which is of type string and

accepts whole XML message. Is it correct?

prateek
Active Contributor
0 Kudos

Heard of document-literal and rpc-literal but not of message-lietral. Lets wait if someone could comment on it.

there is only one parameter, which is of type string and accepts whole XML message.

If this is what it meant, then handling this in XI is possible.

Regards,

Prateek

Former Member
0 Kudos

can you explain your idea if whole XML message is one string?

I should mapthis string to IDOC, and IDOC structure is always complicated,

many elements with subelements, occurness.....what do you have on mind?

Former Member
0 Kudos

Hello mslopar,

You need to use XSLT mapping to acheiev this. Here is a blog and sample code to convert XML to string.

Use this xslt:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" omit-xml-declaration="yes"/>

<xsl:template match="*">

<xsl:copy-of select="." />

</xsl:template>

</xsl:stylesheet>

take the help of this blog..

Thanks

-Kulwant