title: Spyne: request where input parameters have different namespaces
body: <p>I found this question: <a href="https://mail.python.org/pipermail/soap/2013-June/001120.html" rel="nofollow noreferrer">https://mail.python.org/pipermail/soap/2013-June/001120.html</a>
  I have the same problem, and can't find an answer. Please help.</p>
  
  <p>I am in the process of implementing some existing WSDL in spyne, and  I'm
  running into a problem where I have requests that contain multiple
  namespaces.  For example, I have a request that looks like:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;soapenv:Envelope xmlns:soapenv="schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;soapenv:Header&gt;
    &lt;/soapenv:Header&gt;
    &lt;soapenv:Body&gt;
      &lt;a:Foo xmlns:a="www.example.com/schema/a" AttrA="a1" AttrB="b2"&gt;
        &lt;b:Baz xmlns:b="www.example.com/schema/b" AttrC="c3"/&gt;
        &lt;a:Bar&gt;blah&lt;/a:Bar&gt;
      &lt;/a:Foo&gt;
    &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>When I send this request, I get the following back:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;senv:Envelope xmlns:senv="schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;senv:Body&gt;
      &lt;senv:Fault&gt;
        &lt;faultcode&gt;senv:Client.SchemaValidationError&lt;/faultcode&gt;
        &lt;faultstring&gt;
        &lt;string&gt;:1:0:ERROR:SCHEMASV:SCHEMAV_ELEMENT_CONTENT:
        Element '{www.example.com/schema/b}Baz': This element
        is not expected. Expected is one of (
        {www.example.com/schema/a}Baz,
        {www.example.com/schema/a}Bar ).&lt;/faultstring&gt;
        &lt;faultactor&gt;&lt;/faultactor&gt;
      &lt;/senv:Fault&gt;
    &lt;/senv:Body&gt;
  &lt;/senv:Envelope&gt;
  </code></pre>
  
  <p>I've been looking at the documentation and setting options, and so far
  nothing has gotten me past this bump.  Is this currently possible with
  spyne? Do I need to do more and parse the in_document?  Any input would be
  greatly appreciated.</p>
  
  <p>An for more detail the code I've been messing with:</p>
  
  <pre><code>from spyne.model.primitive import Unicode
  from spyne.model.complex import Iterable, XmlAttribute, ComplexModel,
  ComplexModelMeta, ComplexModelBase
  from spyne.service import ServiceBase
  from spyne.protocol.soap import Soap11
  from spyne.application import Application
  from spyne.decorator import srpc, rpc
  
  class BazBase(ComplexModelBase):
      __namespace__ = "www.example.com/schema/b"
      __metaclass__ = ComplexModelMeta
  
  class Baz(BazBase):
      Thing = Unicode
      AttrC = XmlAttribute(Unicode)
  
  class FooService(ServiceBase):
      __namespace__ = "www.example.com/schema/a"
  
      @rpc(XmlAttribute(Unicode), XmlAttribute(Unicode), Baz, Unicode,
  _returns=Iterable(Unicode))
      def Foo(ctx, AttrA, AttrB, Baz, Bar):
          yield 'Hello, %s' % Bar
  
  app = Application([FooService],
      "www.example.com/schema/a",
      in_protocol=Soap11(validator='lxml'),
      out_protocol=Soap11(),
  )
  </code></pre>
  
  <p>Thanks!</p>