https://issues.apache.org/jira/browse/CXF-2608 CXF-2608 created. Thank you.
dkulp wrote: > > > This SHOULD be automatic. It sounds like the CustomerOrderItemValue > isn't > being picked up when the JAXB context is created. The generated > interface > should have an XmlSeeAlso annotation on it that points to the > ObjectFactory > that references the CustomerOrderItemValue. That should be enough for it > to > be picked up. > > Can you create a small test case (just need the wsdl+client side probably > as I > just need to get to a point where a soap message is generated) and attach > to a > JIRA? > > Dan > > > > On Thu January 7 2010 10:53:34 am KnutIvar wrote: >> Hi! >> >> I have a problem when invoking a webservice with SOAP. I use CXF to >> generate code from a wsdl, but the service does not validate this; >> >> >> <ns1:customerOrderItems> >> <ns1:item> >> <ns2:action>actionFTW!!</ns2:action> >> </ns1:item> >> <ns1:customerOrderItems> >> >> The problem is the "item" tag. The server does not want the "item" object >> here, but wants an object that extends item; "CustomerOrderItemValue" >> (yes, >> the wsdl states that this type extends item). >> >> However.., this works: >> <ns1:customerOrderItems> >> <ns1:item xsi:type="ns1:CustomerOrderItemValue"> >> <ns2:action>actionFTW!!</ns2:action> >> </ns1:item> >> <ns1:customerOrderItems> >> >> Is there anyway I can "make" the cxf client specify these types? >> The object that's put into the array of items in the java-code is classes >> of CustomerOrderItemValue, not Item.... hence, the type should be stated >> in the generated SOAP call. >> >> Anyone know a solution, or do I have to register an issue? >> >> ----- >> http://www.knutivars.net www.knutivars.net >> "http://www.knutivars.net/cxf/index.html Document first Apache CXF and >> XMLBeans with Spring. >> > > -- > Daniel Kulp > dk...@apache.org > http://www.dankulp.com/blog > > ----- http://www.knutivars.net www.knutivars.net "http://www.knutivars.net/cxf/index.html Document first Apache CXF and XMLBeans with Spring. -- View this message in context: http://old.nabble.com/CXF-client---typedefinitions-in-SOAP-tp27062129p27075001.html Sent from the cxf-user mailing list archive at Nabble.com.