Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 35079 invoked from network); 23 Jun 2004 08:14:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Jun 2004 08:14:34 -0000 Received: (qmail 18732 invoked by uid 500); 23 Jun 2004 08:14:33 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 18521 invoked by uid 500); 23 Jun 2004 08:14:26 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 18246 invoked by uid 99); 23 Jun 2004 08:14:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [213.56.31.47] (HELO smtp12.clb.oleane.net) (213.56.31.47) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 23 Jun 2004 01:14:17 -0700 Received: from [195.46.214.98] ([81.255.4.17]) (authenticated) by smtp12.clb.oleane.net with ESMTP id i5N8DWGC020707 for ; Wed, 23 Jun 2004 10:13:34 +0200 Message-ID: <40D93C1B.3030703@clipack.com> Date: Wed, 23 Jun 2004 10:15:23 +0200 From: karim User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: Only Default Construktor? References: <2985.1087977622@www31.gmx.net> In-Reply-To: <2985.1087977622@www31.gmx.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N rosmi@gmx.de wrote: >Hello, > >e.g., I have a class MyService.java. This class have two constructors - a >default one and one with some parameters. Suppose, we want to publish this >class as a WS. The question is - is it allowed in this case to have not only >default constructor? The question is because I couldn't find any >operation-element in .wsdl-file for MyService (if it is with only default >constructor) like MyService(). > >So, you can publish only methods from one classe as WS, but not its >constructors? > > >If it is not allowed to have other constructors except the default one, so a >work arond could be a method init(), am I right? > >regards, > >Roman > > > I'm quite new to Axis but I think that the default constructor is always called (more or less times, depending on the scope value). You are allowed to have other constructors than the default constructor but I think that you must also create a method like the init(parameters...) method if you want to have the same behaviour. Maybe there is a solution to call a constructor but I don't know it and I had to use the init method.