Re: question on code generation with regard to non-alphabetic character in xml element name
you are right, what I am looking for is to use reflection to create (xml element)name/value pairs using reflection. from the XmlStringImpl returned from xget(), I am able to get the element names for most of the regular ones, still working on how to get names for those complex types. Cheers Jerry On Wed, Jan 20, 2010 at 2:20 PM, Jacob Danner wrote: > So you would use reflection or something like it to infer the name? > Seems like you could get this 'actual element name' information from > the schematypesystem apis without too much hassle. > -jacobd > > On Wed, Jan 20, 2010 at 10:29 AM, Jerry Wang wrote: > > just want to get original element names from generated classes, so those > > names can be passed onto other components. > > > > On Wed, Jan 20, 2010 at 12:50 PM, Gillen, Paul > > wrote: > >> > >> Pardon the impertinence, but why? > >> > >> > >> > >> > >> > >> Paul > >> > >> > >> > >> > >> > >> > >> > >> From: Jerry Wang [mailto:skidooj...@gmail.com] > >> Sent: Wednesday, January 20, 2010 10:26 AM > >> To: user@xmlbeans.apache.org > >> Subject: question on code generation with regard to non-alphabetic > >> character in xml element name > >> > >> > >> > >> I am using xmlbean to generate code from wsdl, the issue I am facing is > >> that names of some xml elements have special character like "_"(for > example > >> ). > >> and the getter generated is getFirstName(). > >> can I somehow force the method generated to have exact xml tag name like > >> getFirst_Name()? > >> I really do not want to do mapping,just too much over head. > >> Thanks > >> Jerry > >> > >> > > > > > > - > To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org > For additional commands, e-mail: user-h...@xmlbeans.apache.org > >
RE: two similar xsd in the same wsdl databinded with xmlbean in axis2
Bartolomeo, It depends if the schemas collide, i.e. they have the same target namespace and are using the same local names for global types, elements, attributes etc. Maybe _9 version is backwards compatible with _8, i.e. instances of _8 are valid under _9 schema, if this is the case you're lucky, and only need to work with _9 version. If they do collide and are not compatible, you can still handle both of them with XMLBeans but you need to provide the knowledge when to use one or the other and the code becomes much more complicated. Cezar > -Original Message- > From: Bartolomeo Nicolotti [mailto:bnicolo...@siapcn.it] > Sent: Thursday, January 14, 2010 9:43 AM > To: user@xmlbeans.apache.org > Subject: two similar xsd in the same wsdl databinded with xmlbean in axis2 > > Hello, > > we're using xmlbean to parse xmls as an axis2 databinding for travel > industries web services > > A web service we query has different version of the same kind of xml > > AirAvailability_8 > AirAvailability_9 > > > Is it possible to use xmlbean data binding with only one wsdl that has > both the kind of xml, i.e. something like: > > ... > > > > > > > > > > > name="LocalDateTimeCT_6_0" type="s0:LocalDateTimeCT_6_0Type"/> > minOccurs="0" name="AirAvailability_8" > type="s0:AirAvailability_8Type"/> > minOccurs="0" name="AirAvailability_9" > type="s0:AirAvailability_9Type"/> > > > > > > > > > My doubt is that this two kinds of xml have, oviously many similiar > tags, won't these conflict? > > Many many thanks > > Best regards. > > Bartolomeo Nicolotti. > > > > - > To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org > For additional commands, e-mail: user-h...@xmlbeans.apache.org > - To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org For additional commands, e-mail: user-h...@xmlbeans.apache.org
Re: question on code generation with regard to non-alphabetic character in xml element name
So you would use reflection or something like it to infer the name? Seems like you could get this 'actual element name' information from the schematypesystem apis without too much hassle. -jacobd On Wed, Jan 20, 2010 at 10:29 AM, Jerry Wang wrote: > just want to get original element names from generated classes, so those > names can be passed onto other components. > > On Wed, Jan 20, 2010 at 12:50 PM, Gillen, Paul > wrote: >> >> Pardon the impertinence, but why? >> >> >> >> >> >> Paul >> >> >> >> >> >> >> >> From: Jerry Wang [mailto:skidooj...@gmail.com] >> Sent: Wednesday, January 20, 2010 10:26 AM >> To: user@xmlbeans.apache.org >> Subject: question on code generation with regard to non-alphabetic >> character in xml element name >> >> >> >> I am using xmlbean to generate code from wsdl, the issue I am facing is >> that names of some xml elements have special character like "_"(for example >> ). >> and the getter generated is getFirstName(). >> can I somehow force the method generated to have exact xml tag name like >> getFirst_Name()? >> I really do not want to do mapping,just too much over head. >> Thanks >> Jerry >> >> > > - To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org For additional commands, e-mail: user-h...@xmlbeans.apache.org
Re: question on code generation with regard to non-alphabetic character in xml element name
just want to get original element names from generated classes, so those names can be passed onto other components. On Wed, Jan 20, 2010 at 12:50 PM, Gillen, Paul wrote: > Pardon the impertinence, but why? > > > -- > > Paul > > > > > -- > > *From:* Jerry Wang [mailto:skidooj...@gmail.com] > *Sent:* Wednesday, January 20, 2010 10:26 AM > *To:* user@xmlbeans.apache.org > *Subject:* question on code generation with regard to non-alphabetic > character in xml element name > > > > I am using xmlbean to generate code from wsdl, the issue I am facing is > that names of some xml elements have special character like "_"(for example > ). > and the getter generated is getFirstName(). > can I somehow force the method generated to have exact xml tag name like > getFirst_Name()? > I really do not want to do mapping,just too much over head. > Thanks > Jerry > > >
RE: question on code generation with regard to non-alphabetic character in xml element name
Pardon the impertinence, but why? Paul From: Jerry Wang [mailto:skidooj...@gmail.com] Sent: Wednesday, January 20, 2010 10:26 AM To: user@xmlbeans.apache.org Subject: question on code generation with regard to non-alphabetic character in xml element name I am using xmlbean to generate code from wsdl, the issue I am facing is that names of some xml elements have special character like "_"(for example ). and the getter generated is getFirstName(). can I somehow force the method generated to have exact xml tag name like getFirst_Name()? I really do not want to do mapping,just too much over head. Thanks Jerry
question on code generation with regard to non-alphabetic character in xml element name
I am using xmlbean to generate code from wsdl, the issue I am facing is that names of some xml elements have special character like "_"(for example ). and the getter generated is getFirstName(). can I somehow force the method generated to have exact xml tag name like getFirst_Name()? I really do not want to do mapping,just too much over head. Thanks Jerry