Can namespaces can be ignored in VS requests?

Document ID : KB000099231
Last Modified Date : 31/05/2018
Show Technical Document Details
Introduction:
How DevTest ignores namespaces on VS incoming soap requests? 
Question:
Can namespaces be ignored in VS requests (if namespace definition and XML tags were changed)?
Environment:
DevTest supported environments.
Answer:
Devtest can ignore namespaces based on the DPH's used in the VS. For example, for an HTTP VS which hash Web Services Soap DPH and Request Data Manager DPH it is possible to ignore namespaces.

Sample request looks like below: 
---- 
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> 
<soapenv:Header> 
<ent:Test_info xmlns:ent="http://www.XXXX.com/enterprise_services"> 
<version>03.000</version> 
<clientid>MTESTCOM</clientid> 
<subclientid>SiteInfo</subclientid> 
</ent:Test_info> 
</soapenv:Header> 
<soapenv:Body> 
<ns2:Authorize xmlns:ns2="http://services.XXXX.com" 
xmlns:ns3="http://www.XXXX.com/enterprise_services" 
xmlns:ns4="http://v1.services.XXXX.com"> 
<ns2:AuthorizeRequest>..... 
</soapenv:Body> 
</soapenv:Envelope> 
------- 

When the above request is changed as below the soap request still works. 
------- 
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> 
<soap:Header> 
<ns3:Test_info xmlns:ns3="http://www.XXXX.com/enterpriseservices"> 
<version>03.000</version> 
<clientid>MTESTCOM</clientid> 
<subclientid>SiteInfo</subclientid> 
</ns3:Test_info> 
</soap:Header> 
<soap:Body> 
<ns2:Authorize xmlns:ns2="http://services.XXXX.com" 
xmlns:ns3="http://www.XXXX.com/enterpriseservices" 
xmlns:ns4="http://v1.services.XXXX.com"> 
<ns2:AuthorizeRequest>..... 
---- 

In the above the following changes were made related to namespaces and XML tags and the request still matches the transaction and VS sends the valid response.
. <soapenv:Envelope> tags were changed to <soap:Envelope> 
. <ent: ...> tags were changed to <ns3:...> (in the xmlns namespace too) 
. <soapenv:Body> to <soap:Body>.