Apache

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • how to specify a specific bean with WSDL2Java.bat?

    1 answers - 2263 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi,
    Can anyone help me about this?
    Thnks in advance,
    Message
    From: Nicolas Urien <nicolas_urien (AT) yahoo (DOT) fr>
    To: axis-user (AT) ws (DOT) apache.org
    Sent: Thursday, July 6, 2006 5:19:55 PM
    Subject: Re: how to specify a specific bean with WSDL2Java.bat?
    Please help me.
    This is the problem:
    I have operations on my web service which return a complex type, ie a bean.
    When I generate my client stubs, it always generate a new bean that I have to handle with the existing bean!
    What I would like to do is to tell WSDL2Java to use the existing bean and not generate a new one.
    I have to use AXIS1 version WSDL2Java .
    Here are the arguments of my command (it runs within eclipse) :
    -v -o ${project_loc}/src/ -c
    Thanks in advance for help
    Message
    From: Davanum Srinivas <davanum (AT) gmail (DOT) com>
    To: axis-user (AT) ws (DOT) apache.org; Nicolas Urien <nicolas_urien (AT) yahoo (DOT) fr>
    Sent: Tuesday, July 4, 2006 8:56:39 AM
    Subject: Re: how to specify a specific bean with WSDL2Java.bat?
    latest nightly?
    -- dims
    7/4/06, Nicolas Urien <nicolas_urien (AT) yahoo (DOT) frwrote:
    --
    Hi,
    I have already checked them. Since I couldn't find any relevant option, I
    have made this post.
    Could someone help me please?
    cheers
    --
    Message
    From: Davanum Srinivas <davanum (AT) gmail (DOT) com>
    To: axis-user (AT) ws (DOT) apache.org; Nicolas Urien <nicolas_urien (AT) yahoo (DOT) fr>
    Sent: Monday, July 3, 2006 11:14:02 PM
    Subject: Re: how to specify a specific bean with WSDL2Java.bat?
    --
    check the parameters of wsdl2java command line. (unpack)
    thanks,
    dims
    7/3/06, Nicolas Urien <nicolas_urien (AT) yahoo (DOT) frwrote:
    --
    Hi,
    I have an operation makeCoffee() on a web service which returns a java
    bean
    (mybean)
    The problem is that the generated client stub returns myStub.mybean and
    I'd
    rather have it return mybean instead.
    Is there a way to tell WSDL2Java.bat to simply generate mybean as the
    return
    of makeCoffee()?
    cheers
    >
    >
    >
  • No.1 | | 6705 bytes | |

    Good Morning Nicolas-
    Assuming the chronology-
    You have Used Java2WSDL to generate the WSDL
    You wish to reverse the process by using the generated WSDL as input to WSDL2Java
    In other words The Bean you had originally used to generate the WSDL you now wish to compile and include in the generated code for WSDL2Java
    I would use the -X to include this on the CLASSPATH

    As an exercise I will verify the parameters for WSDL2Java

    C:\AXIS\axis-1_3>java org.apache.axis.wsdl.WSDL2Java
    log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
    esourceBundle).
    log4j:WARN Please initialize the log4j system properly.
    The wsdl URI was not specified.
    Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI
    :
    -h,
    print this message and exit
    -v,
    print informational messages
    -n,
    only generate code for the immediate WSDL document
    , <argument>
    timeout in seconds (default is 45, specify -1 to disable)
    -D,
    print debug information
    -W,
    turn off support for "wrapped" document/literal
    -q,
    do not print any informational or debug messages (except err
    ors)
    -s,
    emit server-side bindings for web service
    -S, <argument>
    deploy skeleton (true) or implementation (false) in deploy.w
    sdd. Default is false. Assumes
    -N, <argument>=<value>
    mapping of namespace to package
    -f, <argument>
    file of NStoPkg mappings (default NStoPkg.properties)
    -p, <argument>
    override all namespace to package mappings, use this package
    name instead
    -o, <argument>
    output directory for emitted files
    -d, <argument>
    add scope to deploy.wsdd: "Application", "Request", "Session
    "
    -t,
    emit junit testcase class for web service
    -a,
    generate code for all elements, even unreferenced ones
    -T, <argument>
    indicate 1.1 or 1.2. The default is 1.1 (SAP 1.1 JAX-RPC c
    ompliant. 1.2 indicates SAP 1.1 encoded.)
    -F, <argument>
    name of a custom class that implements GeneratorFactory inte
    rface (for extending Java generation functions)
    -H,
    emits separate Helper classes for meta data
    -B,
    emit Ant Buildfile for web service
    -U, <argument>
    username to access the WSDL-URI
    -P, <argument>
    password to access the WSDL-URI
    -X,
    additional classpath elements
    -i, <argument>
    include namespace in generated code
    -x, <argument>
    exclude namespace from generated code
    -c, <argument>
    custom name of web service implementation
    -u,
    emit file even if WSDL endpoint URL is not a valid URL
    -w,
    Prefers building beans to straight arrays for wrapped XML ar
    ray types (defaults to off).

    Does this understanding conform to your intent?
    Martin

    This email message and any files transmitted with it contain confidential
    information intended only for the person(s) to whom this email message is
    addressed. If you have received this email message in error, please notify
    the sender immediately by telephone or email and destroy the original
    message without making a copy. Thank you.

    Message
    From: Nicolas Urien
    To: axis-user (AT) ws (DOT) apache.org
    Sent: Friday, July 07, 2006 6:07 AM
    Subject: Re: how to specify a specific bean with WSDL2Java.bat?

    Hi,

    Can anyone help me about this?

    Thnks in advance,

    Message
    From: Nicolas Urien <nicolas_urien (AT) yahoo (DOT) fr>
    To: axis-user (AT) ws (DOT) apache.org
    Sent: Thursday, July 6, 2006 5:19:55 PM
    Subject: Re: how to specify a specific bean with WSDL2Java.bat?

    Please help me.

    This is the problem:

    I have operations on my web service which return a complex type, ie a bean.

    When I generate my client stubs, it always generate a new bean that I have to handle with the existing bean!
    What I would like to do is to tell WSDL2Java to use the existing bean and not generate a new one.

    I have to use AXIS1 version WSDL2Java .

    Here are the arguments of my command (it runs within eclipse) :

    -v -o ${project_loc}/src/ -c

    Thanks in advance for help

    Message
    From: Davanum Srinivas <davanum (AT) gmail (DOT) com>
    To: axis-user (AT) ws (DOT) apache.org; Nicolas Urien <nicolas_urien (AT) yahoo (DOT) fr>
    Sent: Tuesday, July 4, 2006 8:56:39 AM
    Subject: Re: how to specify a specific bean with WSDL2Java.bat?

    latest nightly?

    -- dims

    7/4/06, Nicolas Urien <nicolas_urien (AT) yahoo (DOT) frwrote:
    >
    >

    Hi,
    >

    I have already checked them. Since I couldn't find any relevant option, I
    have made this post.
    >

    Could someone help me please?
    >

    cheers
    >
    >

    Message
    From: Davanum Srinivas <davanum (AT) gmail (DOT) com>
    To: axis-user (AT) ws (DOT) apache.org; Nicolas Urien <nicolas_urien (AT) yahoo (DOT) fr>
    Sent: Monday, July 3, 2006 11:14:02 PM
    Subject: Re: how to specify a specific bean with WSDL2Java.bat?
    >
    >

    check the parameters of wsdl2java command line. (unpack)
    >

    thanks,
    dims
    >

    7/3/06, Nicolas Urien <nicolas_urien (AT) yahoo (DOT) frwrote:
    >
    >

    Hi,
    >

    I have an operation makeCoffee() on a web service which returns a java
    bean
    (mybean)
    The problem is that the generated client stub returns myStub.mybean and
    I'd
    rather have it return mybean instead.
    >

    Is there a way to tell WSDL2Java.bat to simply generate mybean as the
    return
    of makeCoffee()?
    >

    cheers
    >
    >
    >

    --
    Davanum Srinivas : http://people.apache.org/~dims/
    >


    To unsubscribe, e-mail: axis-user-unsubscribe (AT) ws (DOT) apache.org
    For additional commands, e-mail: axis-user-help (AT) ws (DOT) apache.org
    >
    >
    >


    --
    Davanum Srinivas : http://people.apache.org/~dims/

    To unsubscribe, e-mail: axis-user-unsubscribe (AT) ws (DOT) apache.org
    For additional commands, e-mail: axis-user-help (AT) ws (DOT) apache.org

Re: how to specify a specific bean with WSDL2Java.bat?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 1 + 0 =
QUESTION ON "Apache"

EMSDN.COM