SOAPFault: soapenv: VersionMismatch Error

I gave all the request as correct, but I could not get a response. It shows a version mismatch error.

Requset XML

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://test1.test.com/ticket/v1" xmlns:v3="http://test1.test.com/commonheader/v3">
               </soapenv:Header>
            <soap:Body>
                  <sit:SubmitSectorRequest>
                     <sit:RadioEquipmentType/> 
                     <sit:BBUPortNumber/> 
                     <sit:vendorName/> 
                     <sit:rrhEquipmentType/> 
                     <sit:radioSerialNumber/> 
                     <sit:radioID/> 
                     <sit:radioFMId/> 
                     <sit:ERPText>DBM</sit:ERPText> 
                     <sit:antennaHeight/> 
                     <sit:antennaTilt/> 
                     <sit:antennaType>0</sit:antennaType> 
                     <sit:effectivePower>290</sit:effectivePower> 
                     <sit:equipmentId>T179</sit:equipmentId> 
                     <sit:equipmentName>NS39 PENNINGTON BEND</sit:equipmentName> 
                     <sit:forwardPower>20</sit:forwardPower> 
                     <sit:market>DEOIT</sit:market> 
                     <sit:orientation/> 
                     <sit:region>CENTRAL</sit:region> 
                     <sit:retSiteId/> 
                     <sit:sectorId>3</sit:sectorId> 
                     <sit:sectorStatus>1</sit:sectorStatus> 
                     <sit:siteId>314179</sit:siteId> 
                     <sit:tilt/> 
                     <!--Optional:--> 
                     <sit:submitter>BA4309</sit:submitter> 
                     <!--Optional:--> 
                     <sit:SoftSectorId>TNL03179_9</sit:SoftSectorId> 
                     <!--Optional:--> 
                     <sit:remoteUSID/> 
                     <!--Optional:--> 
                     <sit:isRRHTowerMounted>0</sit:isRRHTowerMounted>
                  </sit:SubmitSectorRequest>
               </soap:Body>
            </soap:Envelope>

      

XML response

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
               <soapenv:Body>
                  <soapenv:Fault>
                     <faultcode>soapenv:VersionMismatch</faultcode>
                     <faultstring>Transport level information does not match with SOAP Message namespace URI</faultstring>
                     <detail/>
                  </soapenv:Fault>
               </soapenv:Body>
            </soapenv:Envelope>

      

Please help me fix this version inconsistency error and share it.

+3


source to share


2 answers


This is a problem with the "xmlns: soap" value http://schemas.xmlsoap.org/soap/envelope/ "You can use" http://www.w3.org/2003/05/soap-envelope "instead , which will solve your problem.



SOAP versioning is based on XML namespaces. SOAP 1.1 is identified by the schemas.xmlsoap.org namespace, while SOAP 1.2 is identified by the second.

+5


source


From the standard, you can see here , the SOAP Fault

error code VersionMismatch

should be returned when:

The node error encountered an invalid element information element instead of the expected Envelope element information element. The namespace, local name, or both did not match the information element of the Envelope element required by this recommendation.

So the problem in your case might be your request's namespace is incorrect and the tag is <soapenv:Header>

not well-formed because your server is returning an error VersionMismatch

. If you look at your query:

<soapenv:Header>

not well formed to close and remove the use of the <soapenv:Header/>

not tag </soapenv:Header>

.



And you define the following namespace prefixes:

xmlns:v1="..." xmlns:v3="..." 

      

However, in your request, you use a prefix in your elements sit

if it is not defined.

Eliminate this problem and the error will probably go away.

+2


source







All Articles