0 Replies Latest reply on Aug 8, 2007 11:22 AM by Georges Berscheid

    WS Client and xsi:type

    Georges Berscheid Newbie

      Hi,

      I generate a WS client using wsconsume 2.0.0.GA from an existing WSDL. However, the server complains about wrong types in the request. It expects the following fragment:

      <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'
       xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
       xmlns:xsd="http://www.w3.org/1999/XMLSchema">
       <env:Body>
       <ns2:MyMethod xmlns:ns2="org.acme">
       <SomeName xsi:type="xsd:string">MyName</SomeName>
       <SomeValue xsi:type="xsd:string">MyValue</SomeValue>
       </ns2:MyMethod>
       </env:Body>
      </env:Envelope>


      However, JBossWS sends the following:
      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
       <env:Body>
       <ns2:MyMethod xmlns:ns2="org.acme">
       <SomeName>MyName</SomeName>
       <SomeValue>MyValue</SomeValue>
       </ns2:MyMethod>
       </env:Body>
      </env:Envelope>


      Is there a way to configure my JBossWS client to include the xsi:type attributes?

      Thanks,
      Georges