Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 57522 invoked from network); 30 May 2007 18:02:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 May 2007 18:02:51 -0000 Received: (qmail 47998 invoked by uid 500); 30 May 2007 18:02:46 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 47982 invoked by uid 500); 30 May 2007 18:02:46 -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: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 47971 invoked by uid 99); 30 May 2007 18:02:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2007 11:02:46 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [209.190.27.106] (HELO wombat.diezmil.com) (209.190.27.106) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2007 11:02:40 -0700 Received: from wombat.diezmil.com (wombat.diezmil.com [127.0.0.1]) by wombat.diezmil.com (8.13.8/8.13.8) with ESMTP id l4UI2Ifg009498 for ; Wed, 30 May 2007 14:02:18 -0400 Date: Wed, 30 May 2007 14:02:18 -0400 Message-ID: <26968202.1180548138196.JavaMail.root@wombat.diezmil.com> From: dkraus@microstrategy.com Reply-To: dkraus@microstrategy.com To: axis-user@ws.apache.org Subject: Re: Re: Confused... In-Reply-To: <19e0530f0704230529w7ba03f07uf809283827826ed0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I have recently used Axis2 1.2 wsdl2java to process some Dotnet specific WSDL to produce the necessary service classes to demonstrate polymorphism. For example, in that WSDL, there is a base class (BaseRetObject), and a sub class (SubRetObject) which extends BaseRetObject. There is a webmethod which simply returns the BaseRetObject. The (Java) service code creates a SubRetObject and returns it as a BaseRetObject. The (DotNet) client receives the BaseRetObject, checks to see its type (using C# "is" operator) and successfully casts it. TcpTrace shows that the return object is serialized as a SubRetObject so that all data is included. The real problem that I am running into is that wsdl2java will not produce the necessary objects for SubRetObject unless it is used in a webmethod interface. Simply adding the SubRetObject definition to the WSDL does not influence wsdl2java to produce the associated classes. I had to add a webmethod stub that contained references to the subclass (SubRetObject) before wsdl2java was able to produce the correct service objects. Is there someway to generate objects for classes not included in a webmethod interface? I ran into the same problem in DotNet. thanks, Dave -- This message was sent on behalf of dkraus@microstrategy.com at openSubscriber.com http://www.opensubscriber.com/message/axis-user@ws.apache.org/6553779.html --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org