Jim, you can pass params via the deploy.wsdd file. Add as many
<parameter> elements as you like to the <service> tag, and access the
values from your code using

    MessageContext msgContext = MessageContext.getContext();
    SOAPService    service    = msgContext.getService();
    String paramValue         = service.getOption("paramName");

Regards...

Milind Gadre
VP Product Development
ecPlatforms, Inc
901 Mariner's Island Blvd, Suite 565
San Mateo, CA 94404
C: 510.919.0596
E: [EMAIL PROTECTED]

----- Original Message -----
From: "Brain, Jim" <[EMAIL PROTECTED]>
To: "AXIS Mailing List (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 7:57 AM
Subject: Sending parms to web service


> I have a class that is an AXIS web service, but I want to run
multiple
> copies of the class under different names.  The code is the same for
each
> service, but I want to pass a parm to the service telling it what to
do (I
> know, it sounds like a job for 2 classes, but it doesn't work out
that way)
>
> Is there a way to put parms in the deploy.xml file that will get
passed to
> the web service class at startup?
>
> Jim
>
>
> Jim Brain, [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> "Researching tomorrow's decisions today."
> (319) 369-2070 (work)
> Systems Architect, ITS, AEGON Financial Partners
>
>
>


Reply via email to