Thanks Ajay, that explains why I see different code generated on my end,
where the jaxb customization is not specified in the locator.wsdl I'm
using.  -Mike

> -----Original Message-----
> From: Paibir, Ajay [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 06, 2006 7:02 AM
> To: [email protected]
> Subject: RE: locator.query.FilterType.setField() parameter type looks
> wrong
> 
> Hi Mike,
> 
> Try using jaxb customization in the schema of locator.wsdl to override
> the default behaviour.
> xmlns:jaxb="http://java.sun.com/xml/ns/jaxb";
> <xs:annotation>
>     <xs:appinfo>
>        <jaxb:globalBindings mapSimpleTypeDef ="true"/>
>      </xs:appinfo>
> </xs:annotation>
> 
> Regards
> Ajay
> 
> -----Original Message-----
> From: Jim Ma [mailto:[EMAIL PROTECTED]
> Sent: 06 November 2006 03:51
> To: [email protected]
> Subject: RE: locator.query.FilterType.setField() parameter type looks
> wrong
> 
> Hi Mike ,
> 
> I think this is correct .  Conform to  JAXB2.0 specification(Proposed
> Final
> Draft September 30, 2005) section 6.2 ,  simple type will be mapped to
> java
> built in type , Object or List .
> 
> This case  is similar to the example on  JAXB2.0 sepc page 89 :
> 
> The following schema fragment:
> <xs:complexType name="CTType">
> <xs:attribute name="state" type="ZipOrName"/>
> </xs:complexType>
> <xs:simpleTypename="ZipOrName" memberTypes="xs:integer xs:string"/>
> 
> is bound to the following Java representation.
> 
> public class CTType {
> String getState() {...}
> void setState(String value) {...}
> }
> 
> 
> Regards
> 
> Jim
> 
> > -----Original Message-----
> > From: Ramnarine, Michael [mailto:[EMAIL PROTECTED]
> > Sent: Monday, November 06, 2006 9:54 AM
> > To: [email protected]
> > Subject: locator.query.FilterType.setField() parameter type looks
> wrong
> >
> >
> > Looking at:
> >
> >
> >
>
testutils/target/generated/src/main/java/com/iona/ws/_2005/_11/locator/q
> > uery/FilterType.java
> >
> > Which is generated from:
> >
> >    testutils/src/main/resources/wsdl/locator.wsdl
> >
> >
> >
> > The following method signature doesn't look right:
> >
> >     public void setField(String value) {
> >
> >
> >
> > Shouldn't it be:
> >
> >     public void setField(FilterFieldType value) {
> >
> >
> >
> > Here's the relevant wsdl:
> >
> >             <xs:complexType name="FilterType">
> >
> >                 <xs:simpleContent>
> >
> >                     <xs:extension base="xs:string">
> >
> >                         <xs:attribute name="field"
> > type="tns:FilterFieldType"
> >
> >                             use="required"/>
> >
> >                     </xs:extension>
> >
> >                 </xs:simpleContent>
> >
> >             </xs:complexType>
> >
> >
> >
> > -Mike
> >
> >
> >
> >

Reply via email to