Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 10772 invoked from network); 12 Aug 2009 11:09:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Aug 2009 11:09:54 -0000 Received: (qmail 14976 invoked by uid 500); 12 Aug 2009 11:10:00 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 14883 invoked by uid 500); 12 Aug 2009 11:10:00 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 14874 invoked by uid 99); 12 Aug 2009 11:10:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 11:10:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of zech.ph@gmail.com designates 209.85.218.216 as permitted sender) Received: from [209.85.218.216] (HELO mail-bw0-f216.google.com) (209.85.218.216) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 11:09:50 +0000 Received: by bwz12 with SMTP id 12so1896913bwz.16 for ; Wed, 12 Aug 2009 04:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=5FZVOzd5Z/9IPcoba+h4k7SfUKYLzmlynLQLMen0HoM=; b=RinPwb/vhN3CKTcUeYZ5tGXjMsBXi4ankYjvdHTdp/kWMcd8vFKIHRQkjj8WL3inUw 6zLtU2sg1UYHh5vbtAmmSRzNWomuFYqSoIizj24NujtnKNNrnsxKQLXqcUCCFWBP4i/a Jw9+PUX3F5rWFope8o5XIziLyXj47cpisbedI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=tVD+nh6pducihC2hEjzcrconDdqTSeLYqzjj+HSCQAMsegogzimqsUfJ0vzloYlkRv WVIiV2Y6RZfqNtePB3VGNdnEzVdHTBbSR4l2PrMA6xAAMaV569jrDHH3w6KEl7SVyUHN MR1QiOyL8Ayw5L4FLPa/Q+jl6KQX2YAG4LwDw= Received: by 10.103.233.11 with SMTP id k11mr3067mur.47.1250075369089; Wed, 12 Aug 2009 04:09:29 -0700 (PDT) Received: from ?138.232.105.221? (ydvlwt2-105-221.uibk.ac.at [138.232.105.221]) by mx.google.com with ESMTPS id s10sm29453722mue.38.2009.08.12.04.09.28 (version=SSLv3 cipher=RC4-MD5); Wed, 12 Aug 2009 04:09:28 -0700 (PDT) Message-ID: <4A82A2E8.4080907@gmail.com> Date: Wed, 12 Aug 2009 13:09:28 +0200 From: Philipp Zech Reply-To: zech.ph@gmail.com User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: axis-dev@ws.apache.org Subject: Axis2: Calling WSDL2Java from Java class inside eclipse plugin Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm currently working on an eclipse plugin allowing me to right-click a WSDL file in a project and following, to generate the WS stubs by selecting a menu item which triggers the code generation (actually, the same as wsdl2java on the command line). I'm facing no errors are any similar stuff, but every time I want to generate some code, only the needed build.xml file is generated, no errors or exceptions are thrown. For the ease of understanding I will post party of the source: Map optionsMap = initializeGeneratorProperties(); AxisService service = WSAdapterGeneratorUtil .getAxisService(WSDLFile); CodeGenConfiguration codegenConfig = new CodeGenConfiguration( optionsMap); codegenConfig.setAxisService(service); WSDLReader reader = WSDLFactory.newInstance() .newWSDLReader(); codegenConfig.setWsdlDefinition(reader.readWSDL(WSDLFile)); codegenConfig.setBaseURI(WSAdapterGeneratorUtil .getBaseUri(WSDLFile)); new CodeGenerationEngine(codegenConfig).generate(); The above excerpt shows from my point of view the proper way of doing so (generating code). Below is the source of the initializeGeneratorProperties(); method, maybe I'm forgetting about some options in the optionsMap: Map optionsMap = new HashMap(); optionsMap.put("uri", new CommandLineOption("uri", new String[] { WSDLFile })); optionsMap.put("p", new CommandLineOption("p", new String[] { "at.sample.path" })); optionsMap .put("l", new CommandLineOption("l", new String[] { "java" })); optionsMap .put("o", new CommandLineOption("o", new String[] { genDir })); optionsMap.put("d", new CommandLineOption("d", new String[] { "xmlbeans" })); optionsMap.put("pn", new CommandLineOption("pn", new String[] { "Soap" })); Well, as this code is error free (in case of exceptions and errors, I hope to get some useful help quite soon, as for me, I can't figure out the small bug or misconfiguration or what else leads to this strange behaviour, that I won't get any classes to be generated. Thanks a lot in advance, Philipp