[jboss-user] [JBossWS] - SOAP Responce does not populate namespace prefix

last_deceneu do-not-reply at jboss.com
Fri Jun 22 03:06:56 EDT 2007


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>
  | 

And schema for objects is:


  | <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>
  | 

Thanks!


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056742#4056742

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056742



More information about the jboss-user mailing list