You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by ja...@external.t-mobile.at on 2008/05/20 10:19:15 UTC

Antwort: Re: Maven2 codegen-plugin using more binding files [Virus checked]

Hello Bronchito,

it's not correct !
Error you had was produced by jaxb, because some binding was incorrect 
(maybe only with combination with others).

for the same wsdl it's correct as Dan wrote. I'm using this way also 5 
binding files

best regards
jano




bronchito <br...@web.de> 
05/20/2008 08:49
Bitte antworten an
users@cxf.apache.org


An
users@cxf.apache.org
Kopie

Thema
Re: Maven2 codegen-plugin using more binding files  [Virus checked]







sorry for double post but i resolve the problem: 

you have to duplicate the hole wsdlOption part. 

the new configuration looks like : 

<wsdlOptions>
  <wsdlOption>
     <wsdl>
         ${basedir}/${schema.location}/myWsdl.wsdl
      </wsdl>
      <extraargs>
                 <extraarg>-b</extraarg>
                 <extraarg>
                ${basedir}/${schema.location}/binding1.xjb
             </extraarg>
      </extraargs>
   </wsdlOption>
   <wsdlOption>
     <wsdl>
        ${basedir}/${schema.location}/myWsdl.wsdl
     </wsdl>
     <extraargs>
                 <extraarg>-b</extraarg>
                 <extraarg>
                     ${basedir}/${schema.location}/binding2.xjb
                 </extraarg>
      </extraargs>
   </wsdlOption>

Thanks a lot. 

Bronchito



bronchito wrote:
> 
> Thanks for reply. 
> 
> I've tried it, but now the following failure occures : 
> 
> 
> WSDLToJava Error : Thrown by JAXB : compiler was unable to honor this
> property customization. It is
> attached to a wrong place, or its inconsistent with other bindings.
> 
> 
> Is there another way, to enclose more then one binding file ? 
> 
> By the way, we must use CXF 2.0-incubator.
> 
> 
> Bronchito 
> 
> 
> dkulp wrote:
>> 
>> 
>> I believe it would be:
>> 
>>                                               <extraarg>-b</extraarg>
>>                                               <extraarg>
>> ${basedir}/${schema.location}/binding1.xjb
>>                                               </extraarg>
>>                                               <extraarg>-b</extraarg>
>>                                               <extraarg>
>> ${basedir}/${schema.location}/binding2.xjb
>>                                               </extraarg>
>> 
>> 
>> Dan
>> 
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven2-codegen-plugin-using-more-binding-files-tp17325324p17334308.html

Sent from the cxf-user mailing list archive at Nabble.com.





Re: Antwort: Re: Maven2 codegen-plugin using more binding files [Virus checked]

Posted by bronchito <br...@web.de>.
Yes , 

thank you , you're wright. 

There was a fault in some bindings, as you say. After fixing it, i've seen,
that the second binding.xjb was not used. 

After your reply, i test the first way, like Dan said and now it works. 

My fault  ,sorry. 

Thanks a lot 

Bronchito

jan.minaroviech wrote:
> 
> Hello Bronchito,
> 
> it's not correct !
> Error you had was produced by jaxb, because some binding was incorrect 
> (maybe only with combination with others).
> 
> for the same wsdl it's correct as Dan wrote. I'm using this way also 5 
> binding files
> 
> best regards
> jano
> 
> 
> 
> 
> bronchito <br...@web.de> 
> 05/20/2008 08:49
> Bitte antworten an
> users@cxf.apache.org
> 
> 
> An
> users@cxf.apache.org
> Kopie
> 
> Thema
> Re: Maven2 codegen-plugin using more binding files  [Virus checked]
> 
> 
> 
> 
> 
> 
> 
> sorry for double post but i resolve the problem: 
> 
> you have to duplicate the hole wsdlOption part. 
> 
> the new configuration looks like : 
> 
> <wsdlOptions>
>   <wsdlOption>
>      <wsdl>
>          ${basedir}/${schema.location}/myWsdl.wsdl
>       </wsdl>
>       <extraargs>
>                  <extraarg>-b</extraarg>
>                  <extraarg>
>                 ${basedir}/${schema.location}/binding1.xjb
>              </extraarg>
>       </extraargs>
>    </wsdlOption>
>    <wsdlOption>
>      <wsdl>
>         ${basedir}/${schema.location}/myWsdl.wsdl
>      </wsdl>
>      <extraargs>
>                  <extraarg>-b</extraarg>
>                  <extraarg>
>                      ${basedir}/${schema.location}/binding2.xjb
>                  </extraarg>
>       </extraargs>
>    </wsdlOption>
> 
> Thanks a lot. 
> 
> Bronchito
> 
> 
> 
> bronchito wrote:
>> 
>> Thanks for reply. 
>> 
>> I've tried it, but now the following failure occures : 
>> 
>> 
>> WSDLToJava Error : Thrown by JAXB : compiler was unable to honor this
>> property customization. It is
>> attached to a wrong place, or its inconsistent with other bindings.
>> 
>> 
>> Is there another way, to enclose more then one binding file ? 
>> 
>> By the way, we must use CXF 2.0-incubator.
>> 
>> 
>> Bronchito 
>> 
>> 
>> dkulp wrote:
>>> 
>>> 
>>> I believe it would be:
>>> 
>>>                                               <extraarg>-b</extraarg>
>>>                                               <extraarg>
>>> ${basedir}/${schema.location}/binding1.xjb
>>>                                               </extraarg>
>>>                                               <extraarg>-b</extraarg>
>>>                                               <extraarg>
>>> ${basedir}/${schema.location}/binding2.xjb
>>>                                               </extraarg>
>>> 
>>> 
>>> Dan
>>> 
>>> 
>>> 
>>> 
>> 
>> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Maven2-codegen-plugin-using-more-binding-files-tp17325324p17334308.html
> 
> Sent from the cxf-user mailing list archive at Nabble.com.
> 
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven2-codegen-plugin-using-more-binding-files-tp17325324p17336094.html
Sent from the cxf-user mailing list archive at Nabble.com.