cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong namespace prefixes after soap request step creation

Highlighted
Occasional Contributor

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>?

               <_2Smiley Tonguerocess>?

               <_2Smiley TonguerocessName>?
               <_2Smiley TonguerocessInstanceID>?

           
           
               ?
               ?
           

         
     
   



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 3
Highlighted

Re: Wrong namespace prefixes after soap request step creation

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


 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!
Highlighted
Occasional Contributor

Re: Wrong namespace prefixes after soap request step creation

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
Highlighted

Re: Wrong namespace prefixes after soap request step creation

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


 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!