Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Add Implicit Namespace to generated XML

Former Member
0 Kudos

Hi,

I'm having an issue in the realm of SOA Manager, Service Consumers, and XML Namespaces. I have created an interface using SE80 and an external WSDL. When SAP is generating the XML from the ABAP structures, the namespaces are not being loaded as the service would expect. This is causing an error during serialization on the service side.

The specific tag I'm having issues with is the <ReportType> tag (image below). This tag has an attribute with it's own namespace. That seems to cause some type of conflict with the N1 prefix on the tag. I can manually change the XML and add an implicit namespace that matches n1 in the <Body> tag. Unfortunately I have not found a good way to do this in ABAP. I've ways to edit the <Header> but that does not fix my problem.

Does anyone know of a way to add a string of xlmns="http://abc.com/APIs/v1.0" to either the Envelope or Header? It can NOT be xmlns:n1="http://abc.com/APIs/v1.0".

Things I've tried:

1. Removing the XSI prefix from the attribute - required by the service

2. Adding another explicit namespace within the ReportType tab - Error during XML serialization on the service side.

Any ideas?

Thanks,

Drew

1 REPLY 1

Former Member
0 Kudos

The other option that would fix the problem would be to have SAP generate the XML without the prefix and use implicit namespaces. So far, I have not found a way to make that work either.