WLs 10.3.2: Why does WebLogic set the default namespace, instead of assigning it a specific prefix?

(Doc ID 1268117.1)

Last updated on MARCH 06, 2018

Applies to:

Oracle Weblogic Server - Version: 10.3.2 and later   [Release: and later ]
Information in this document applies to any platform.


If WSDL &Schema defined  element elementFormDefault is assigned a value of "qualified"; you wlll notice that when WebLogic creates the SOAP xml message, it sets 'http://test.com/sample' namespace as the default namespace (i.e. no prefix, like 'm1', is assigned to this namespace). This results in the schema elements in the xml not being qualified, which may be your interface requirement.

How to force WebLogic to assign prefixes to the various namespaces (defined the wsdl/schema), when it creates the xml soap message?

For Eg:
RESPONSE1  is being generated inside weblogic server with default name space.
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<shiporder xmlns="http://test.com/sample">


RESPONSE2 is what we are trying to acheive.
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<ns1:shiporder xmlns:ns1="http://test.com/sample">





Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms