cancel
Showing results for 
Search instead for 
Did you mean: 

Error in ABAP Proxy SERIALIZE_APPLICATION_DATA Conversion error ABAP => XML

nirmitsk
Explorer
0 Kudos

We are trying to generate ABAP outbound proxy. Getting error message below.

SERIALIZE_APPLICATION_DATA Conversion error ABAP => XML: Request Message; CX_ST_SWITCH_NO_CASE in /1SAI/SAS8172B5C1FEAE9080B8D5 Line 34 Unexpected Case in Branch.

I deleted proxy and regenerated, still getting error. Is there somebody can help with it?

Accepted Solutions (0)

Answers (4)

Answers (4)

nirmitsk
Explorer

Hi Ankit,

Yes, I was getting issue while generating XML and issue is resolved. When PI generated proxy, it created SWITCH in the deep structure. Make sure schema should have UTF-8 format. First line should be <?xml version="1.0" encoding="utf-8" ?>.

ankit_mishra09
Participant
0 Kudos

Hi Satish,

Would require more details if you can share....

1. What's a SWITCH here?

2. Where I'll be able to see it?

3. Should it be removed/replaced or what should be done with it?

4. Regarding the schema, I can see the first line is <?xml version="1.0"?>, how can I change it to <?xml version="1.0" encoding="utf-8" ?>?

5. I referred my other proxies as well, all have <?xml version="1.0"?> as the first line & they are working fine.

nirmitsk
Explorer
0 Kudos

Hi Ankit,

Please find below my answers.

1. What's a SWITCH here? - When PI creates proxy it will appear in the SPROXY transaction for you. Then you as an abaper creates proxy. It will create class and deep structure. SWITCH is component created in deep structure.

2. Where I'll be able to see it? - Inside deep structure

3. Should it be removed/replaced or what should be done with it? - You cannot change deep structure. Scema must be modified with UTF-8 format and PI developer will regenerate proxy. You should not have SWITCH in deep structure.

4. Regarding the schema, I can see the first line is <?xml version="1.0"?>, how can I change it to <?xml version="1.0" encoding="utf-8" ?>? - You can open schema in notepad and replace first line with <?xml version="1.0" encoding="utf-8" ?>.

5. I referred my other proxies as well, all have <?xml version="1.0"?> as the first line & they are working fine. - Not sure about this.

Try This.

Step1- Deactivate your proxy

Step2 - Modify first line in schema as I said

Step3 - send it to PI and ask them to regenerate proxy

Step4 - Generate your proxy. Your deep structure shouldnt have SWITCH.

Try this and let me know.

Regards

Satish

former_member311223
Participant
0 Kudos

Hi All,

I am also getting this error, can you kindly guide me how to solve it...

ankit_mishra09
Participant
0 Kudos

Hi Satish,

Did you resolve it? If so, kindly share the solution. I'm getting the same error.

former_member311223
Participant
0 Kudos

Hi Ankit,

I am also facing the same issue. Can you kindly plz provide me the solution..

ankit_mishra09
Participant
0 Kudos

Hi Gopa,

Kindly check the t-code STRANS & enter /1SAI/xxxxxxxxxxxx (whatever error you are getting) & check it’s code that gets generated after generating the proxy. I provided this info to ABAPer & they figured it out.

nirmitsk
Explorer
0 Kudos

Former Member any Idea?

former_member311223
Participant
0 Kudos

Hi Satish,

Can you kindly share the solution. I'm getting the same error.

Regards

Gop