You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Greg Akins <an...@gmail.com> on 2010/08/12 14:13:27 UTC

Maven2 wsdl2code plugin

I have a question about the Axis2 WSDL2Code plugin for Maven. (Axis2
1.5.1, plugin 1.5.1 Maven 2.2.1)

Does the plugin support multiple databindingName attributes?  I have a
set of schemas, two of which require adb and one requires xmlbeans

Is this possible?

I apologize if I missed something obvious.

-- 
Greg Akins

http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akinsgre
http://www.linkedin.com/in/akinsgre

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: Maven2 wsdl2code plugin

Posted by Greg Akins <an...@gmail.com>.
I am giving up on the maven plugin.. I'll just keep using the raw
wsdl2code tool as my java classes don't really need to be generated
everytime anyways.

Thanks for your help.

On Thu, Aug 12, 2010 at 9:23 AM, Martin Gainty <mg...@hotmail.com> wrote:
> Hi Greg
>
> //Unforunately the getOptionValue method only acquires the the 0th (1st)
> option value
> //here is org.apache.axis2.wsdl.codegen.CodegenConfigLoader only obtains the
> 1 binding option
>
>         commandLineOption =
> loadOption(WSDL2JavaConstants.DATA_BINDING_TYPE_OPTION,
>
> WSDL2JavaConstants.DATA_BINDING_TYPE_OPTION_LONG, optionMap);
>         if (commandLineOption != null) {
>             config.setDatabindingType(commandLineOption.getOptionValue());
>         }
>
> //org.apache.axis2.wsdl.codegen.CodeGenConfiguration.setDatabindingType
> shows only the one databindingType
>     /** @param databindingType  */
>     public void setDatabindingType(String databindingType) {
>         this.databindingType = databindingType;
>     }
>
> //org.apache.axis2.util.CommandLineOption contains getOptionValue and
> getOptionValues as described here
> /*** @return Returns the type.
>      * @see CommandLineOptionConstants     */
>     public String getOptionType() {
>         return type;
>     }
>
>     /*** @return Returns the optionValues.*/
>     public String getOptionValue() {
>         if ((optionValues != null) && (optionValues.size() > 0)) {
>             return (String) optionValues.get(0);
>         } else {
>             return null;
>         }
>     }
>
>     /*** @return Returns the optionValues.*/
>     public ArrayList getOptionValues() {
>         return optionValues;
>     }
>
> //you could
> 1)replace getOptionValue with getOptionValues
> 2)and an iterator in
> org.apache.axis2.wsdl.codegen.CodeGenConfiguration.setDatabindingType
>     /** @param databindingType  */
>    /* change String param to some sort of Collection */
>     public void setDatabindingType(String databindingType) {
>         this.databindingType = databindingType;
>     }
>
> ?
> Martin
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>> Date: Thu, 12 Aug 2010 08:13:27 -0400
>> Subject: Maven2 wsdl2code plugin
>> From: angrygreg@gmail.com
>> To: java-user@axis.apache.org
>>
>> I have a question about the Axis2 WSDL2Code plugin for Maven. (Axis2
>> 1.5.1, plugin 1.5.1 Maven 2.2.1)
>>
>> Does the plugin support multiple databindingName attributes? I have a
>> set of schemas, two of which require adb and one requires xmlbeans
>>
>> Is this possible?
>>
>> I apologize if I missed something obvious.
>>
>> --
>> Greg Akins
>>
>> http://insomnia-consulting.org
>> http://www.pghcodingdojo.org
>> http://pittjug.dev.java.net
>> http://twitter.com/akinsgre
>> http://www.linkedin.com/in/akinsgre
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-user-help@axis.apache.org
>>
>



-- 
Greg Akins

http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akinsgre
http://www.linkedin.com/in/akinsgre

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


RE: Maven2 wsdl2code plugin

Posted by Martin Gainty <mg...@hotmail.com>.
Hi Greg
 
//Unforunately the getOptionValue method only acquires the the 0th (1st) option value
//here is org.apache.axis2.wsdl.codegen.CodegenConfigLoader only obtains the 1 binding option

        commandLineOption = loadOption(WSDL2JavaConstants.DATA_BINDING_TYPE_OPTION,
                                       WSDL2JavaConstants.DATA_BINDING_TYPE_OPTION_LONG, optionMap);
        if (commandLineOption != null) {
            config.setDatabindingType(commandLineOption.getOptionValue());
        }

//org.apache.axis2.wsdl.codegen.CodeGenConfiguration.setDatabindingType shows only the one databindingType
    /** @param databindingType  */
    public void setDatabindingType(String databindingType) {
        this.databindingType = databindingType;
    }

//org.apache.axis2.util.CommandLineOption contains getOptionValue and getOptionValues as described here
/*** @return Returns the type.
     * @see CommandLineOptionConstants     */
    public String getOptionType() {
        return type;
    }

    /*** @return Returns the optionValues.*/
    public String getOptionValue() {
        if ((optionValues != null) && (optionValues.size() > 0)) {
            return (String) optionValues.get(0);
        } else {
            return null;
        }
    }

    /*** @return Returns the optionValues.*/
    public ArrayList getOptionValues() {
        return optionValues;
    }
 
//you could 
1)replace getOptionValue with getOptionValues 
2)and an iterator in org.apache.axis2.wsdl.codegen.CodeGenConfiguration.setDatabindingType
    /** @param databindingType  */
   /* change String param to some sort of Collection */
    public void setDatabindingType(String databindingType) {
        this.databindingType = databindingType;
    }

?
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.



 

> Date: Thu, 12 Aug 2010 08:13:27 -0400
> Subject: Maven2 wsdl2code plugin
> From: angrygreg@gmail.com
> To: java-user@axis.apache.org
> 
> I have a question about the Axis2 WSDL2Code plugin for Maven. (Axis2
> 1.5.1, plugin 1.5.1 Maven 2.2.1)
> 
> Does the plugin support multiple databindingName attributes? I have a
> set of schemas, two of which require adb and one requires xmlbeans
> 
> Is this possible?
> 
> I apologize if I missed something obvious.
> 
> -- 
> Greg Akins
> 
> http://insomnia-consulting.org
> http://www.pghcodingdojo.org
> http://pittjug.dev.java.net
> http://twitter.com/akinsgre
> http://www.linkedin.com/in/akinsgre
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>