cancel
Showing results for 
Search instead for 
Did you mean: 

String Input

Former Member
0 Kudos

Hi

We have a requirement where the PI have to receive a string as an input via HTTP from a web portal. As it is not in xml format the system we are getting a message "Content is not allowed in prolog."

The question is as there will be no sender side adapter how can I receive the string input?

Sourabh

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

> The question is as there will be no sender side adapter how can I receive the string input?

You have already received the string, so the question is: what do you want to do with that string?

Where should the message go to?

Former Member
0 Kudos

Hi

I need to parse it initially. and then send it to an RFC.

How can I acheive that if I am not configuring an adapter?

stefan_grube
Active Contributor
0 Kudos

You have to write an Java/ABAP mapping and create in RFC-XML as output.

For the response of the RFC, you have to do the same: write an ABAP/Java mapping to create the requested response for the web portal.

Former Member
0 Kudos

We can write a java mapping to parse the string but the question is how to access the string?

The string donot have a root node or a message type

It is not coming in any file but a plain string

stefan_grube
Active Contributor
0 Kudos

The string is the meaage payload?

Then you treat it inside the Java mapping as payload.

You do not use an XML parser, just work with string methods, like substring and so on.

Former Member
0 Kudos

Hi

I have a doubt. How will the incoming string will associate with the Sender Message Type as the message type will have a root node and the incoming string will not have it?

stefan_grube
Active Contributor
0 Kudos

Good point. You have to use a service interface of type XI30 compatible.

Then the message type needs not to be identified.

Answers (0)