0 Replies Latest reply on Jun 22, 2007 3:06 AM by Radu radu

    SOAP Responce does not populate namespace prefix

    Radu radu Newbie


      I'm developing a RPC web service using annotations and a .net client.

      The problem is that response attribute xsi:type="dtBaseCommand" does not contain namespace ns prefix for used schema, it should be xsi:type="ns:dtBaseCommand" (response is created correct for simple types). And on .net client xml soap processor crashes because does not now where is located that type and to instantiate it

      I'm using jboss 4.2GA

      Is any way to force soap response to use namespace prefix?

      The soap response is:

      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
       <ns:getDtCommand3Response xmlns:ns="http://www.address/DTComponent">
       <return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="dtBaseCommand">

      And schema for objects is:

      <xs:schema targetNamespace="http://www.address/DTComponent" version="1.0">
       <xs:complexType name="dtBaseCommand">
       <xs:extension base="tns:dtCommand">
       <xs:complexType name="dtCommand">
       <xs:element minOccurs="0" name="commandId" type="xs:string"/>