xjb

getting error only one globalBindings customization is allowed in a whole compilation while using maven-jaxb2-plugin

∥☆過路亽.° 提交于 2021-02-08 03:33:48
问题 I am using maven-jaxb2-plugin. Here is my plugin configuration <plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <executions> <execution> <id>xjc-serviceoperations</id> <phase>generate-sources</phase> <goals> <goal>generate</goal> </goals> <configuration> <generateDirectory>${basedir}/src/main/java/</generateDirectory> <schemaDirectory>src/main/resources/schemas/lmsapi/serviceoperations</schemaDirectory> <removeOldOutput>false</removeOldOutput> <

Schema element references undefined type. Create SOAP client service. How to take into account binding customization of the generated classes?

前提是你 提交于 2019-12-25 00:06:58
问题 I have converted WSDL to Java classes, however, I needed to use binding file and suffix added to resolve conflicts. I received classes successfully however with slightly changed type names. When I try to create WebService using JaxWsProxyFactoryBean then I put URL of origin WSDL that has origin names and it gives errors like this: ERROR 6792 --- [nio-5500-exec-1] o.a.c.w.s.f.ReflectionServiceFactoryBean : Schema element {http://tempuri.org/}SearchMagistratesCourtRequest references undefined

XJC binding file: override package based on namespace instead of schemaLocation

怎甘沉沦 提交于 2019-12-11 09:49:01
问题 I'd like to override package for my schema via binding .xjb file. It is done with: <schemaBindings> <package name="com.schema.common" /> </schemaBindings> JXC compiler expects context for above code, defined via schemaLocation . I store .xsd and .xjb files in separate directories and this looks ugly (like all Java EE): <bindings schemaLocation="../../../../wsdl/common_v47_0/CommonReqRsp.xsd"> <schemaBindings> <package name="com.schema.common" /> </schemaBindings> </bindings> It is possible to

JAXB Simplify plugin vs *.xjb

放肆的年华 提交于 2019-12-10 09:31:34
问题 I'm trying to use the Simplify plugin to replace a complex property with a set of simpler ones. I made it working following the plugin's manual. But I can't change the original schema, so I have to use an external bindings.xjb. And it gives me all sort of errors. Does somebody have a working example of a similar thing? Original XSD: <xs:schema id="messages" elementFormDefault="qualified" version="Exchange2010_SP2" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns

JAXB Simplify plugin still usable?

…衆ロ難τιáo~ 提交于 2019-12-05 23:21:28
问题 I tried the solution of the question here JAXB Simplify plugin vs *.xjb. but it failed with the following exception " compiler was unable to honor this simplify:as-element-property customization. It is attached to a wrong place, or its inconsistent with other bindings. " this is customization binding I used <jaxb:bindings node="//xs:complexType[@name='Op']//xs:choice/xs:element[@name='Time']"> <simplify:as-element-property/> </jaxb:bindings> the jaxb simplify plugin confluence page is not

JAXB Simplify plugin vs *.xjb

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 17:04:26
I'm trying to use the Simplify plugin to replace a complex property with a set of simpler ones. I made it working following the plugin's manual. But I can't change the original schema, so I have to use an external bindings.xjb. And it gives me all sort of errors. Does somebody have a working example of a similar thing? Original XSD: <xs:schema id="messages" elementFormDefault="qualified" version="Exchange2010_SP2" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:tns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com

JAXB Simplify plugin still usable?

核能气质少年 提交于 2019-12-04 05:26:40
I tried the solution of the question here JAXB Simplify plugin vs *.xjb . but it failed with the following exception " compiler was unable to honor this simplify:as-element-property customization. It is attached to a wrong place, or its inconsistent with other bindings. " this is customization binding I used <jaxb:bindings node="//xs:complexType[@name='Op']//xs:choice/xs:element[@name='Time']"> <simplify:as-element-property/> </jaxb:bindings> the jaxb simplify plugin confluence page is not accessible, so has anyone used this plugin and can give an example please? Here is my updated schema