[jboss-user] [JBossWS] - Handling anyType

mauro.mellino do-not-reply at jboss.com
Tue Sep 5 10:43:00 EDT 2006


Hi,

I have a problem invoking an RPC style service. It used to work on jbossws-1.0.2.GA but now fails on 1.0.3.GA

My wsdl defines a complex type as:
<complexType name="ParameterValue">
  | <sequence>
  | <element name="name" type="string"/>
  | <element name="object" nillable="true" type="anyType"/>
  | </sequence>
  | </complexType>

and fails with 
 org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: The prefix "xsi" for attribute "xsi:type" associated with an element type "object" is not bound. @ *unknown*[1,93]
	at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:100)
	at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:235)
	... 29 more

and the incoming soap message is:
<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
  | <soapenv:Header>
  | <username soapenv:actor='http://inforsense.com/login' soapenv:mustUnderstand='0' xmlns=''>admin</username>
  | <password soapenv:actor='http://inforsense.com/login' soapenv:mustUnderstand='0' xmlns=''>admin</password>
  | </soapenv:Header><soapenv:Body>
  | <executeService xmlns='http://com.inforsense'>
  | <String_1 xmlns=''>/test.group/ServerAPI.folder/Service.project</String_1>
  | <String_2 xmlns=''>ServiceOutput</String_2>
  | <arrayOfParameterValue_3 xmlns=''/>
  | <arrayOfParameterValue_4 xmlns=''>
  |   <value>
  |       <name>Sample Size</name>
  |        <object xsi:type='xsd:int'>3</object>
  | </value>
  | </arrayOfParameterValue_4>
  | </executeService></soapenv:Body></soapenv:Envelope>


can anyone suggest what has gone wrong or how to fix it?
Many thanks

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

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



More information about the jboss-user mailing list