Skip to Content
Former Member
Jul 16, 2015 at 10:01 PM

Add Implicit Namespace to generated XML



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="" to either the Envelope or Header? It can NOT be xmlns:n1="".

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?




xml.png (31.4 kB)