There are about 4 methods that have the same input in the mapping file. i'm
trying to map for 3 of the 4 methods. i don't have much expertise in
writing the mapping file. however i tried to put together one as below. When
i try to run the command
wsdl2java -b bindings.xml MasterAccountService.wsdl
it gives me the error
WSDLToJava Error: java.lang.RuntimeException: Fail to create wsdl definition
file:/home/.../.../.../wsdl/MasterAccountService.wsdl
I'm not even sure if my mapping file is correct or not. can u help me with
my mapping file for one of the methods?
<bindings
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
wsdlLocation="MasterAccountService.wsdl"
xmlns="http://java.sun.com/xml/ns/jaxws">
<bindings
node="wsdl:definitions/wsdl:[EMAIL
PROTECTED]'MasterAccountService']/wsdl:[EMAIL
PROTECTED]'getMasterAccountStatus']">
<parameter
part="wsdl:definitions/wsdl:[EMAIL
PROTECTED]'tns:getMasterAccountStatusRequest']/wsdl:[EMAIL
PROTECTED]'parameters']"
element="getMasterAccountStatusRequest"
name="masterAccountID_1"
/>
</bindings>
<bindings
node="wsdl:definitions/wsdl:[EMAIL
PROTECTED]'MasterAccountService']/wsdl:[EMAIL
PROTECTED]'getMasterAccountsByCompanyID']">
<parameter
part="wsdl:definitions/wsdl:[EMAIL
PROTECTED]'tns:getMasterAccountsByCompanyIDRequest']/wsdl:[EMAIL
PROTECTED]'parameters']"
element="getMasterAccountsByCompanyIDRequest"
name="masterAccountID_2"
/>
</bindings>
<bindings
node="wsdl:definitions/wsdl:[EMAIL
PROTECTED]'MasterAccountService']/wsdl:[EMAIL PROTECTED]'updateMasterAccount']">
<parameter
part="wsdl:definitions/wsdl:[EMAIL
PROTECTED]'tns:updateMasterAccountRequest']/wsdl:[EMAIL PROTECTED]'parameters']"
element="updateMasterAccountRequest"
name="masterAccountID_3"
/>
</bindings>
</bindings>
DSL wrote:
>
> The only solution is to create a binding file to map the
> masterAccountId to use a different name
>
>
> On 7/14/08, nmt999 <[EMAIL PROTECTED]> wrote:
>>
>> i'm not an expert with wsdl's. this is something that is defined by
>> yahoo. is
>> there a way i can resolve this issue to generate using wsdl2java.
>>
>>
>>
>> Daniel LaPrade wrote:
>> >
>> > the masterAccountId is defined but never used.... instead it gets
>> > redefined with the same name in multiple places...
>> >
>> >
>> > On 7/14/08, nmt999 <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I have tried it without the -p com.test.masteraccountservice option,
>> >> however
>> >> it still throw the same exception
>> >>
>> >>
>> >>
>> >> Daniel LaPrade wrote:
>> >> >
>> >> > Try removing the package name: -p com.test.masteraccountservice
>> >> >
>> >> >
>> >> > On 7/14/08, nmt999 <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> When trying to run wsdl2java on the wsdl file
>> >> >>
>> >> >>
>> >>
>> https://sandbox.marketing.ews.yahooapis.com/services/V4/MasterAccountService?wsdl
>> >> >> using the command wsdl2java -p com.test.masteraccountservice
>> -exsh
>> >> true
>> >> >> -verbose MasterAccountService.wsdl I'm getting the error message
>> >> shown
>> >> >> below. Is this a bug with the cxf's wsdl2java
>> >> >>
>> >> >> Loading FrontEnd jaxws ...
>> >> >> Loading DataBinding jaxb ...
>> >> >> wsdl2java -p com.test.masteraccountservice -exsh true -verbose
>> >> >> MasterAccountService.wsdl
>> >> >> wsdl2java - Apache CXF 2.1.1
>> >> >>
>> >> >>
>> >> >> WSDLToJava Error: Thrown by JAXB : Two declarations cause a
>> >> collision in
>> >> >> the
>> >> >> ObjectFactory class.
>> >> >>
>> >> >> org.apache.cxf.tools.common.ToolException: Thrown by JAXB : Two
>> >> >> declarations
>> >> >> cause a collision in the ObjectFactory class.
>> >> >> at
>> >> >>
>> >> >>
>> >>
>> org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBBindErrorListener.error(JAXBBindErrorListener.java:34)
>> >> >> at
>> >> >>
>> >> >>
>> >>
>> com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.error(SchemaCompilerImpl.java:280)
>> >> >> at
>> >> >>
>> >> >>
>> >>
>> com.sun.tools.xjc.util.ErrorReceiverFilter.error(ErrorReceiverFilter.java:77)
>> >> >> at
>> >> com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:82)
>> >> >> at
>> >> >>
>> >> >>
>> >>
>> com.sun.tools.xjc.generator.bean.ObjectFactoryGeneratorImpl.populate(ObjectFactoryGeneratorImpl.java:187)
>> >> >> at
>> >> >>
>> >> >>
>> >>
>> com.sun.tools.xjc.generator.bean.PublicObjectFactoryGenerator.populate(PublicObjectFactoryGenerator.java:55)
>> >> >> at
>> >> >>
>> >> >>
>> >>
>> com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:241)
>> >> >> at
>> >> >>
>> >> >>
>> >>
>> com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:174)
>> >> >> at
>> com.sun.tools.xjc.model.Model.generateCode(Model.java:286)
>> >> >> at
>> >> >>
>> >> >>
>> >>
>> com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:246)
>> >> >> at
>> >> >>
>> >> >>
>> >>
>> org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:228)
>> >> >> at
>> >> >>
>> >> >>
>> >>
>> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:536)
>> >> >> at
>> >> >>
>> >> >>
>> >>
>> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:187)
>> >> >> at
>> >> >>
>> >> >>
>> >>
>> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:232)
>> >> >> at
>> >> >>
>> >> >>
>> >>
>> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
>> >> >> at
>> >> >> org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103)
>> >> >> at
>> >> >> org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:173)
>> >> >> Caused by: com.sun.istack.SAXParseException2: Two declarations
>> cause
>> >> a
>> >> >> collision in the ObjectFactory class.
>> >> >> ... 14 more
>> >> >>
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/Is-this-a-CXF%27s-wsdl2java-bug--tp18443765p18443765.html
>> >> >> Sent from the cxf-user mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > --
>> >> > ------------
>> >> > Success is the ability to go from one failure to another with no
>> loss
>> >> > of enthusiasm. - Winston Churchill
>> >> >
>> >> >
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Is-this-a-CXF%27s-wsdl2java-bug--tp18443765p18444312.html
>> >>
>> >> Sent from the cxf-user mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> > --
>> > ------------
>> > Success is the ability to go from one failure to another with no loss
>> > of enthusiasm. - Winston Churchill
>> >
>> >
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Is-this-a-CXF%27s-wsdl2java-bug--tp18443765p18445287.html
>>
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>
>
>
> --
> ------------
> Success is the ability to go from one failure to another with no loss
> of enthusiasm. - Winston Churchill
>
>
--
View this message in context:
http://www.nabble.com/Is-this-a-CXF%27s-wsdl2java-bug--tp18443765p18450295.html
Sent from the cxf-user mailing list archive at Nabble.com.