cancel
Showing results for 
Search instead for 
Did you mean: 

'&' gets replaced by '&' in XI response

Former Member
0 Kudos

Hi Experts,

we implemented a scenario in which we call XI via http to get a URL of a file in a contentserver.

However, the character '&' gets replaced by '&' in the response.

Do you know how to avoid this ?

Thanks, Rolf

here the traffic:

POST http://gddebes100100:8000/sap/xi/adapter_plain?bs=GEDASPLM_BUSINESS_SYSTEM&namespace=urn%3asap-com%3... HTTP/1.0

Host: gddebes100100

Accept: /

Content-Length:220

Authorization: Basic bGlzc2U6cm9sc2Fw

<rfc:Z_GEDAS_GET_URL xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

<DOKNR>0000000000000010000000000</DOKNR>

<DOKAR>SED</DOKAR>

<DOKVR>00</DOKVR>

<DOKTL>00</DOKTL>

<WSAPPL>JPG</WSAPPL>

</rfc:Z_GEDAS_GET_URL>

Response:

HTTP/1.0 200 OK

set-cookie: sap-usercontext=sap-client=200; path=/

content-type: application/xml

content-length: 303

msgguid: E6886E706FA811D9AF5A000BCDC57F8A

server: SAP Web Application Server (1.0;640)

<rfc:Z_GEDAS_GET_URL.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><URL>http://gddebes100100.de.gedas-grp:1090/contentserver/contentserver.dll?get&#38;pVersion=0046&#38;contRep=PLU-BLN&#38;docId=40A20D749653434BB5331D384D663828&#38;compId=Floorjack.jpg</URL></rfc:Z_GEDAS_GET_URL.Response>

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

This cannot be avoided.

If the RFC adapter would not escape the &, it won't be a valid xml structure and couldn't be processed with the XI.

Regards

Stefan

Former Member
0 Kudos

Hi Stefan,

thanks for your help, so we need to 'unescape' it in our apps.

Best regards, Rolf

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello rolf,

maybe you have solved the problem but i have an other question:

i am looking for the solution you have done in the URL: a dynamical URL. several threads in this forum i have posted but without the wished success.

either help.sap.com or blogs could not help me.... maybe you?

how was it possible, that you make the URL dynamical? Did you put the URL static in the HTTP Adapter?

many thanks

alex schramm