cancel
Showing results for 
Search instead for 
Did you mean: 

Changing SOAP Namespace

Former Member
0 Kudos

Hi Experts,

Got a requirement to modify the SOAP namespace for a BAPI program exposed as a web service on SAP.

The fieldd denoting the SOAP namespace is accessible via transaction SE80 and navigating under: Package Name>Enterprise Services>Service Definitions> and double clicking on the exposed web service and selecting "Properties".

The SAP SOAP namespace provided by default is: urn:sap-com:document:sap:rfc:functions

Is anyone aware of a means to modify this namespace on the web service? Any help would be greatly appreciated. Thanks!

Regards,

Lionel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi YanBAng,

Is there really any need to change the namespace.?

NAMESPACE----->

Namespace is nothing but is used to uniquely identify a element.

All the datatypes which you define consist of a wrapper. That wrapper is namespace. Namespace concept was introduced just to avoid name conflicts.

Just an example-->

There are two schemas which you have defined

namespace1 contains--->

ADDRESS

city, street

namespace2 contains--->

ADDRESS

name,street, state,country.

Now you want to use this address field in some other xsd,wsdl document.

So which address should it import? Just to avoid the confusion along with the address element ,namespace is used to identify it.

ABAP SOAP tool kit is used to convert an RFC/BAPI to XML/WSDL/SOAP and vice versa

This namespace for RFC/BAPI is fixed and it is not advisable to change the namespace. It is clearly mentioned. Please go through this link( line no 16). It is used internally by ABAP-SOAP toolkit.

http://help.sap.com/saphelp_webas620/helpdata/en/2d/64d02fe74911d6b2e400508b6b8a93/content.htm

Regards,

Piyush

Former Member
0 Kudos

Hi Piyush,

Thank you for your reply. The reason that we wish to change the namespace of each web service is because we will be importing more than one web service on the client side.

The rationale is that if all these web services are all using the same namespace, there may be a risk of collision in naming of the objects on the client, consuming these web services.

Please kindly advise whether this would be the case. Thank you very much.

Regards,

Lionel

Former Member
0 Kudos

Hi YanBang,

Not at all. Because whenever you call a web service(indirectly BAPI/RFC), you pass name of the RFC/BAPI along with the client generated SOAP message.

If you compare WSDL of two different BAPIs (exposed as Web Service), they both contain different operation name and also different message structure.

For more understanding, namespace would be same, but message structure and name would be different. So, there will not be any problem related to collision..

It is not advisable to change the namespace .

regards,

Piyush

Answers (0)