Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Error in Jaxb binding for wsdl document

1010480May 23 2013 — edited May 28 2013
Hello
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="http://services.external.dmh.ibm.com"
xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://services.external.dmh.ibm.com" xmlns:intf="http://services.external.dmh.ibm.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://services.external.dmh.ibm.com"
xmlns="http://www.w3.org/2001/XMLSchema" xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://services.external.dmh.ibm.com" xmlns:intf="http://services.external.dmh.ibm.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<complexType name="WsaaAuthToken">
<sequence>
<element name="authToken" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<element name="getRelatedAssets">
<complexType>
<sequence>
<element name="token" nillable="true" type="impl:WsaaAuthToken"/>
<element name="anchorAsset" nillable="true" type="impl:WsaaAssetKey"/>
<element name="relationshipName" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
......
</wsdl:definitions>

and here is my binding file:

<jaxws:bindings
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
wsdlLocation="C:\Users\syedf\Documents\Checkers\4842\sample.wsdl">
<jaxws:bindings node="wsdl:definitions/wsdl:types/xsd:schema">
<jaxb:bindings node="//xsd:element[@name='getRelatedAssets']">
<jaxb:property name="getRelatedAssetsX"/>
</jaxb:bindings>
</jaxws:bindings>
</jaxws:bindings>

Can anyone help me out in finding what wrong I am doing.
I appreciate.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 25 2013
Added on May 23 2013
4 comments
652 views