Forum Discussion

Sandor_Brinkman's avatar
Sandor_Brinkman
Occasional Contributor
16 years ago

Wrong namespace prefixes after soap request step creation

Hi,

I am using a different namespaces imports in my xsd:

xmlns:header="http://xyz.com/common/header/1_2"
xmlns:entities="http://xyz.com/basis/shipment/4_0/entities"

After creation of soap request step I am getting this request:

xmlns:_2="http://xyz.com/common/header/1_2" xmlns:ent="http://xyz.com/basis/shipment/4_0/entities">
   

   
     
         
            <_2:Interface>
               <_2:MessageID>?

               <_2:Process>?

               <_2:ProcessName>?
               <_2:ProcessInstanceID>?

           
           
               ?
               ?
           

         
     
   



My question is why does change soapUI the namespace prfeixes.

From xmlns:header to xmlns:_2 and
From xmlns:entities to xmlns:ent.

It is a bug or can I configure this setting???
I am using soapUI Pro 2.5.1

Thanks & ragards
Arpad

3 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Sandor,


    Thank you for your post. No, it's not a bug - it's a feature. 

    Namespace aliases you're seeing are created by the underlying library and are based on the namespace URL as you may have noticed.

    The fact namespace aliases look do not look intuitive to a human eye does not change the nature or functionality of your SOAP requests.


    Cheers!
    /Nenad Nikolic a.k.a. Shonzilla
  • Sandor_Brinkman's avatar
    Sandor_Brinkman
    Occasional Contributor
    Thank you for the clarification.

    My problem is that I am creating XPath expression in xmlspy and so I have to change always the namespace aliases.

    I am not really understood why you change the namespace prefixes. What is the benefit of the feature?!

    Best regards
    Arpad
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Arpad,


    As far as I know, the created namespace aliases should always be the same for the given namespace URI. This is the feature of the underlying library XmlBeans. At some point in the future we may add a functionality to define custom namespace URI -> namespace alias translations.

    Are namespaces aliases changing every time you create a SOAP request from XML Schema?

    Not sure what you're trying to do with XMLSpy.
    Have you tried to achieve the same results with soapUI?


    Cheers!
    /Nenad Nikolic a.k.a. Shonzilla