Hello!
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/"> <env:Header/> <env:Body> <ns:getDtCommand3Response xmlns:ns="http://www.address/DTComponent"> <return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="dtBaseCommand"> <commandId>CMD3_COMMAND</commandId> </return> </ns:getDtCommand3Response> </env:Body> </env:Envelope>
<xs:schema targetNamespace="http://www.address/DTComponent" version="1.0"> <xs:complexType name="dtBaseCommand"> <xs:complexContent> <xs:extension base="tns:dtCommand"> <xs:sequence/> </xs:extension> </xs:complexContent> </xs:complexType> <xs:complexType name="dtCommand"> <xs:sequence> <xs:element minOccurs="0" name="commandId" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:schema>