cancel
Showing results for 
Search instead for 
Did you mean: 

Namespace in XML Payload for HTTP Sender

Former Member
0 Kudos

Hello,

I have just configured my snychronous HTTP <--> RFC Scenario. When I want to test it with some XML payload in the HTTP testing tool I get a mapping runtime exception.

After some investigation using the test tab in the message mapping I realized that missing namespace in the XML payload caused the error. I tried to add manually a namespace to the XML and then it worked

This is very strange I though that the namespace of the sender interface is automatically added to the XML payload?

Do you have any information on this?

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

The sender of the message has to provide the namespace.

If no namespace is provided, remove the XML namespace from the Message Type and recreate your mapping.

Regards

Stefan

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

This is very interesting issue that you have faced.

If you're using a Message Type, you can exclue the namespace by blanking out the XML Namespace in the Message Type screen.

This will solve the bug.

Thanks

Swarup

Former Member
0 Kudos

Thank you very much for the hint on deleting the XML Namespace in the message type.

It truly has worked!

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

Hi,

assing point if useful

Thanks

Rodrigo

Former Member
0 Kudos

Hi,

U need to copy the payload from Message mapping test message tab and use that payload.

or u can use the HTTP test client for testing the same.

sample HTML code to create HTTP Client:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca4...

You can also use the Wfetch application by Microsift for the same..

download the same from below link

http://www.iisfaq.com/Default.aspx?tabid=2975

Thnx

Chirag

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

Hi,

try this

check in Message Type if the namespace is. if no add it manually.

i can see that sender system send you the XML with namespace, but you are waiting XML without namespace.

let me know what happend.

Thanks

Rodrigo