title: Configuring WSDD to match the WSDL in AXIS
body: <p>I have WSDL (I got it from external provider). There are lines like this: </p>
  
  <pre><code>  &lt;xsd:complexType name="SalesRequest"&gt;
                  &lt;xsd:all&gt;
                      &lt;xsd:element name="merchantid" type="xsd:int"/&gt;
                      &lt;xsd:element name="password" type="xsd:string"/&gt;
                      ...
                  &lt;/xsd:all&gt;
    &lt;/xsd:complexType&gt;
  
    ... 
    &lt;message name="SalesResponse"&gt;
          &lt;part name="request" type="tns:SalesResponse"/&gt;
    &lt;/message&gt;
    ..
    &lt;portType name="InterfacePortType"&gt;
      &lt;operation name="Sales"&gt;
          &lt;documentation&gt;some text&lt;/documentation&gt;
          &lt;input message="tns:SalesRequest"/&gt;
          &lt;output message="tns:SalesResponse"/&gt;
    &lt;/operation&gt;
  </code></pre>
  
  <p>I've generated Java classes based on this WSDL (using JAX-RPC).</p>
  
  <p>Then I created Axis Service (MyService implements InterfacePortType).</p>
  
  <p>I prepared XSDD file do deploy MyService to web app.</p>
  
  <p>So, then I call one of the my methods of MySerive and got this error in the moment of response serialization on the server side:</p>
  
  <p><strong>unexpected element name: expected=request, actual=SalesReturn</strong></p>
  
  <p>It means that my XSDL and XSDD do not much it other. MyService prepared response like this (but count not send it via the net):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;soapenv:Envelope 
  ...
  &lt;SalesReturn href="#id0"/&gt;&lt;/ns1:SalesResponse&gt;&lt;multiRef xmlns:ns2=
  ...
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>The question is: What I should do with WSDD in order to have the <strong>'request'</strong> instead of <strong>'SalesReturn'</strong> in response XML from service? </p>
  
  <p>I have not idea where this '<strong>Return</strong>' suffix came from.</p>
  
  <p>-- some steps I already did:</p>
  
  <p>I googled, and found that WSDL should have 'schema elementFormDefault="qualified"' in it. But I can not change WSDL, because it is external one, it was provided me by external provider.</p>