Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in Jaxb binding for wsdl document  RSS feed

Farrukh Mehdi
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
below is my wsdl and binding.xjb that I am using. I want to rename the " <element name="getRelatedAssets">" name from 'getRelatedAssets' to 'getRelatedAssetsX'.
But when I run it i got the following error

[ERROR] compiler was unable to honor this property customization. It is attached to a wrong place, or its inconsistent with other bindings.
[ERROR] (the above customization is attached to the following location in the schema)
line 16 of file:/C:/Users/syedf/Documents/Checkers/4842/sample.wsdl

Here is my wsdl:
<wsdl:definitions targetNamespace=""
xmlns="" xmlns:apachesoap=""
xmlns:impl="" xmlns:intf=""
xmlns:wsdl="" xmlns:wsdlsoap=""
<schema elementFormDefault="qualified" targetNamespace=""
xmlns="" xmlns:apachesoap=""
xmlns:impl="" xmlns:intf=""
<complexType name="WsaaAuthToken">
<element name="authToken" nillable="true" type="xsd:string"/>
<element name="getRelatedAssets">
<element name="token" nillable="true" type="impl:WsaaAuthToken"/>
<element name="anchorAsset" nillable="true" type="impl:WsaaAssetKey"/>
<element name="relationshipName" nillable="true" type="xsd:string"/>

and here is my binding file:

xmlns:jaxb="" jaxb:version="2.1"
<jaxws:bindings node="wsdl:definitions/wsdl:types/xsd:schema">
<jaxb:bindings node="//xsd:element[@name='getRelatedAssets']">
<jaxb:property name="getRelatedAssetsX"/>

Can anyone help me out in finding what wrong I am doing.
I appreciate.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!