title: Wrong SOAP request is generated
body: <p>I have generated WSDL client using this <a href="https://stackoverflow.com/questions/4455195/how-to-avoid-the-need-to-specify-the-wsdl-location-in-a-cxf-or-jax-ws-generated">answer</a> for my WSDL. The stub is generated successfully however when I invoke the server I get below error message</p>
  
  <pre><code>undeclared namespace prefix SOAP-ENV at offset 216 of http://10.7.225.35:30002/kestrel/AirService
  
  This is to stop the scroll bar obscuring the text 
  </code></pre>
  
  <p><br>
  When the request is generated I can see that targetnamespaces are added in body tag instead of soapEnvelope tag, if I change it manually and try it in SOAPUI tool , it works like charm.I tried generating client from wsimport as well but getting similar issue. Attaching request and response for reference.Also attaching the wsdl file.<br>
  Attaching WSDL file(SO not allowing me to add entire so adding partial)
  <b>Thanks in advance , any help is appreciated. </b></p>
  
  <p><b>Air WSDL file</b></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;definitions name="AirService"
               xmlns="http://schemas.xmlsoap.org/wsdl/"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
               xmlns:tns="http://www.travelport.com/service/air_v46_0"
               xmlns:ns1="http://www.travelport.com/schema/air_v46_0"
               targetNamespace="http://www.travelport.com/service/air_v46_0"&gt;
  
      &lt;import namespace="http://www.travelport.com/service/air_v46_0"
            location="AirAbstract.wsdl" /&gt;
  
       &lt;binding name="AirPrePayBinding"
               type="tns:AirPrePayPortType"&gt;
          &lt;soap:binding style="document"
                        transport="http://schemas.xmlsoap.org/soap/http" /&gt;
          &lt;operation name="service"&gt;
              &lt;soap:operation soapAction="http://localhost:8080/kestrel/AirService"/&gt;
                  &lt;input&gt;
                      &lt;soap:body use="literal" /&gt;
                  &lt;/input&gt;
                  &lt;output&gt;
                      &lt;soap:body use="literal" /&gt;
                  &lt;/output&gt;
                  &lt;fault name="ErrorInfoMsg"&gt;
                      &lt;soap:fault name="ErrorInfoMsg" use="literal" /&gt;
                  &lt;/fault&gt;
  
          &lt;/operation&gt;
      &lt;/binding&gt;
  </code></pre>
  
  <p><b>AirAbstract.wsdl</b></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;definitions name="AirService"
               xmlns="http://schemas.xmlsoap.org/wsdl/"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
               xmlns:tns="http://www.travelport.com/service/air_v46_0"
               xmlns:ns1="http://www.travelport.com/schema/air_v46_0"
               targetNamespace="http://www.travelport.com/service/air_v46_0"&gt;
  
      &lt;import namespace="http://www.travelport.com/service/air_v46_0"
            location="AirAbstract.wsdl" /&gt;
  
       &lt;binding name="AirPrePayBinding"
               type="tns:AirPrePayPortType"&gt;
          &lt;soap:binding style="document"
                        transport="http://schemas.xmlsoap.org/soap/http" /&gt;
          &lt;operation name="service"&gt;
              &lt;soap:operation soapAction="http://localhost:8080/kestrel/AirService"/&gt;
                  &lt;input&gt;
                      &lt;soap:body use="literal" /&gt;
                  &lt;/input&gt;
                  &lt;output&gt;
                      &lt;soap:body use="literal" /&gt;
                  &lt;/output&gt;
                  &lt;fault name="ErrorInfoMsg"&gt;
                      &lt;soap:fault name="ErrorInfoMsg" use="literal" /&gt;
                  &lt;/fault&gt;
  
          &lt;/operation&gt;
      &lt;/binding&gt;     
  </code></pre>
  
  <p><b>Request</b></p>
  
  <pre><code>&lt;S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;SOAP-ENV:Header /&gt;
      &lt;S:Body xmlns:ns1="http://www.travelport.com/schema/air_v46_0" xmlns:ns2="http://www.travelport.com/schema/common_v46_0" xmlns:ns3="http://www.travelport.com/schema/vehicle_v46_0" xmlns:ns4="http://www.travelport.com/schema/rail_v46_0" xmlns:ns5="http://www.travelport.com/schema/cruise_v46_0" xmlns:ns6="http://www.travelport.com/schema/hotel_v46_0" xmlns:ns7="http://www.travelport.com/schema/passive_v46_0" xmlns:ns8="http://www.travelport.com/schema/universal_v46_0" xmlns:ns9="http://www.travelport.com/soa/common/security/SessionContext_v1"&gt;
          &lt;ns1:LowFareSearchReq ReturnUpsellFare="true" TargetBranch="P7111432"&gt;
              &lt;ns2:BillingPointOfSaleInfo OriginApplication="UAPI" /&gt;
              &lt;ns1:SearchAirLeg&gt;
                  &lt;ns1:SearchOrigin&gt;
                      &lt;ns2:CityOrAirport Code="BLR" /&gt;
                  &lt;/ns1:SearchOrigin&gt;
                  &lt;ns1:SearchDestination&gt;
                      &lt;ns2:CityOrAirport Code="JAI" /&gt;
                  &lt;/ns1:SearchDestination&gt;
                  &lt;ns1:SearchDepTime PreferredTime="2019-03-22" /&gt;
                  &lt;ns1:AirLegModifiers&gt;
                      &lt;ns1:PermittedCabins&gt;
                          &lt;ns2:CabinClass Type="Economy" /&gt;
                      &lt;/ns1:PermittedCabins&gt;
                  &lt;/ns1:AirLegModifiers&gt;
              &lt;/ns1:SearchAirLeg&gt;
              &lt;ns1:AirSearchModifiers&gt;
                  &lt;ns1:PreferredProviders&gt;
                      &lt;ns2:Provider Code="1G" /&gt;
                  &lt;/ns1:PreferredProviders&gt;
              &lt;/ns1:AirSearchModifiers&gt;
              &lt;ns2:SearchPassenger Code="ADT" /&gt;
              &lt;ns2:SearchPassenger Code="INF" PricePTCOnly="true" /&gt;
              &lt;ns2:SearchPassenger Code="CNN" /&gt;
              &lt;ns1:AirPricingModifiers CurrencyType="INR" FaresIndicator="AllFares" /&gt;
          &lt;/ns1:LowFareSearchReq&gt;
      &lt;/S:Body&gt;
  &lt;/S:Envelope&gt;
  </code></pre>
  
  <p><b>Response</b></p>
  
  <pre><code>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;SOAP-ENV:Header /&gt;
      &lt;SOAP-ENV:Body&gt;
          &lt;SOAP-ENV:Fault&gt;
              &lt;SOAP-ENV:faultcode&gt;500&lt;/SOAP-ENV:faultcode&gt;
              &lt;SOAP-ENV:faultstring&gt;undeclared namespace prefix SOAP-ENV at offset 216 of http://10.7.225.35:30002/kestrel/AirService&lt;/SOAP-ENV:faultstring&gt;
              &lt;SOAP-ENV:faultactor&gt;&lt;/SOAP-ENV:faultactor&gt;
              &lt;SOAP-ENV:detail&gt;undeclared namespace prefix SOAP-ENV at offset 216 of http://10.7.225.35:30002/kestrel/AirService&lt;/SOAP-ENV:detail&gt;
          &lt;/SOAP-ENV:Fault&gt;
      &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>