Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Add Implicit Namespace to generated XML

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

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question