Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 14407 invoked from network); 29 Oct 2007 11:58:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Oct 2007 11:58:09 -0000 Received: (qmail 24731 invoked by uid 500); 29 Oct 2007 11:57:47 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 24721 invoked by uid 500); 29 Oct 2007 11:57:47 -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 24710 invoked by uid 99); 29 Oct 2007 11:57:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 04:57:47 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of amilasuriarachchi@gmail.com designates 209.85.198.187 as permitted sender) Received: from [209.85.198.187] (HELO rv-out-0910.google.com) (209.85.198.187) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 11:57:54 +0000 Received: by rv-out-0910.google.com with SMTP id c24so1342938rvf for ; Mon, 29 Oct 2007 04:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=9+/zGVqsJjQ6rmheo5wskYIPN3ocBtz/I2GSamE6D5s=; b=o9lLUKzeExK/kARFARCVIOe0GtHIgAXYJpORxxqL69KPU/el16uHQ0HD7YHI81rIvldBiYcK1R/WAp5/taeHbQXTBsnYNhqtZMQY7NM0xWb30OrNq+1De1ujvTtd3pjYbU8Hc1GmqnbRDJux9PB1Svhlf4BQd9Y/dMSwizyzt5o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=QCOA5w2K9oqPiWLkf4WUp7kQ0C3GptNNV7AjPFK+Ha0M5X03LHwnrri1EB4to1RUSiXt+fYxP8CyGykl5ovQVLmtjRtKuiwUhVQOaLDSGBH51FUn9XmtBNKqSzKuUjpc9KwsOhbtqWYD4nQ3YS1Luac2DJHXXsycNZ0RHrwhjBA= Received: by 10.140.147.5 with SMTP id u5mr2686613rvd.1193659043296; Mon, 29 Oct 2007 04:57:23 -0700 (PDT) Received: by 10.141.37.12 with HTTP; Mon, 29 Oct 2007 04:57:23 -0700 (PDT) Message-ID: <60708f4b0710290457h52f33891vedff62c3471cf449@mail.gmail.com> Date: Mon, 29 Oct 2007 17:27:23 +0530 From: "Amila Suriarachchi" To: axis-user@ws.apache.org Subject: Re: [Axis2] 1.3 wsdl2java generates code with missing methods In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8808_31298576.1193659043291" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8808_31298576.1193659043291 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I have fixed this issue locally. will commit soon. Amila. On 10/25/07, Pantvaidya, Vishwajit wrote: > > A quick clarification =96 the MessageReceiverInOut class generated by > wsdl2java contains references to the missing methods. As this is an > autogenerated class, I do not want to edit it myself to remove these > problems. > > > > Any insights? > > > ------------------------------ > > *From:* Pantvaidya, Vishwajit [mailto:vpantvai@selectica.com] > *Sent:* Tuesday, October 23, 2007 5:25 PM > *To:* axis-user@ws.apache.org > *Subject:* Axis2 1.3 wsdl2java generates code with missing methods > > > > I am using wsdl2java to generate java code from a wsdl using wsdl2java > options "-o -ss -sd -ssi -f -uw -uri -ns2p". The result includes a > MessageReceiverInOut class that is missing a method resulting in a > compiletime error "method wrapIsUploadAllowed(OperationStatusType) is > undefined for the type =85MessageReceiverInOut". > > > > I observed that this seems to happen when wsdl parts in different message= s > refer to the same complex type. In such cases, the wrap methods in the > MessageReceiver class for the first operation is created while that for t= he > other one is not created. E.g. in this case the method wrapUpload(Operati= onStatusType) > gets created while wrapIsUploadAllowed(OperationStatusType) is missing. > > > > Wsdl snippet is included below. > > > > Is this a bug? > > > > > > name=3D"OperationStatusType"> > > > > name=3D"successFlag" type=3D"s:boolean"/> > > name=3D"messageLevel" type=3D"s:string"/> > > name=3D"messageCode" type=3D"s:string"/> > > name=3D"message" type=3D"s:string"/> > > > > > > name=3D"OperationStatusElement" type=3D"tns:OperationStatusType"/> > > > > name=3D"UploadRequestElement"> > > > > > > > > > > > > > > > > > > > > > > > > name=3D"IsUploadAllowedRequestElement"> > > > > > > > > > > > > > > > > > > > > > =85 > > element=3D"tns:UploadRequestElement"> > > > > > > element=3D"tns:OperationStatusElement"> > > > > > > > > element=3D"tns:IsUploadAllowedRequestElement"> > > > > > > element=3D"tns:OperationStatusElement"> > > > > =85 > > > > message=3D"tns:UploadRequest"> > > message=3D"tns:UploadResponse"> > > > > > > message=3D"tns:IsUploadAllowedRequest"> > > message=3D"tns:IsUploadAllowedResponse"> > > > > =85 > > http://schemas.xmlsoap.org/soap/http" style=3D"document"/> > > > > style=3D"document"/> > > > > > > > > > > > > > > > > > > style=3D"document"/> > > > > > > > > > > > > > > > > =85 > --=20 Amila Suriarachchi, WSO2 Inc. ------=_Part_8808_31298576.1193659043291 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I have fixed this issue locally. will commit soon.

Amila.

On 10/25/07, Pa= ntvaidya, Vishwajit <vpant= vai@selectica.com > wrote:

A quick clarification =96 the Mess= ageReceiverInOut class generated by wsdl2java contains references to the missing methods. As this is an autogenerated class, I do not want to edit it myself to remove t= hese problems.

 

Any insights?

 


From: Pa= ntvaidya, Vishwajit [mailto:vpantvai@select= ica.com]
Sent: Tuesday, October 23,= 2007 5:25 PM
To: axis-user@ws.apache.org
Subject: Axis2 1.3 wsdl2ja= va generates code with missing methods

 

I am using wsdl2java to generate java code from a wsdl using wsdl2java options "-o -ss -sd -ssi -f -uw -uri -ns2p". The result includes a MessageReceiverInOut class that is missing a method resulting in= a compiletime error "method wrapIsUploadAllowed(OperationStatusType) is undef= ined for the type =85MessageReceiverInOut".

 

I observed that this seems to happen when wsdl parts in different messages refer to the same complex type. In such cases, the wrap methods in the MessageReceiver class for the first operation is created whi= le that for the other one is not created. E.g. in this case the method wrapUpload(OperationStatusType= ) gets created while wrapIsUploadAllowed(OperationStatusType) is missing.

 

Wsdl snippet is included below.<= /span>

 

Is this a bug?

 

 

          &n= bsp;            = ;             <s:complexType name=3D"OperationStatusType"><= /p>

          &n= bsp;            = ;            &n= bsp;            <s:sequence>

          &n= bsp;            = ;            &n= bsp;            = ;            <s:element name=3D"successFlag" type=3D"s:boolean"/&= gt;

          &n= bsp;            = ;            &n= bsp;            = ;            <s:element name=3D"messageLevel" type=3D"s:string"/&= gt;

          &n= bsp;            = ;            &n= bsp;            = ;            <s:element name=3D"messageCode" type=3D"s:string"/&g= t;

          &n= bsp;            = ;            &n= bsp;            = ;            <s:element name=3D"message" type=3D"s:string"/>

          &n= bsp;            = ;            &n= bsp;            </s:sequence>

          &n= bsp;            = ;             </s:complexType>

          &n= bsp;            = ;             <s:element name=3D"OperationStatusElement" type=3D"tns:OperationStatusType"/>

          &n= bsp;            = ;            

          &n= bsp;            = ;             <s:element name=3D"UploadRequestElement">

          &n= bsp;            = ;            &n= bsp;            <s:complexType>

          &n= bsp;            = ;            &n= bsp;            = ;            <s:sequence>

          &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;           <s:element name=3D"sessiontoken" type=3D"s:string"/&= gt;

          &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;           <s:element name=3D"trackingnumber" type=3D"s:string"= />

          &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;           <s:element name=3D"version" type=3D"s:int"/>

          &n= bsp;            = ;            &n= bsp;            = ;            </s:sequence>

          &n= bsp;            = ;            &n= bsp;            </s:complexType>>

          &n= bsp;            = ;             </s:element>

          &n= bsp;            = ;            

          &n= bsp;            = ;             <s:element name=3D"IsUploadAllowedRequestElement">

          &n= bsp;            = ;            &n= bsp;            <s:complexType>

          &n= bsp;            = ;            &n= bsp;            = ;            <s:sequence>

          &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;           <s:element name=3D"SessionToken" type=3D"s:string"&g= t;</s:element>

          &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;           <s:element name=3D"TrackingNumber" type=3D"s:string"= ></s:element>

          &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;           <s:element name=3D"Version" type=3D"s:int"></s= :element>

          &n= bsp;            = ;            &n= bsp;            = ;            </s:sequence>

          &n= bsp;            = ;            &n= bsp;            </s:complexType>

          &n= bsp;            = ;             </s:element>

=85         <wsdl:message name=3D"UploadRequest">

          &n= bsp;            = ; <wsdl:part name=3D"uploadrequest" element=3D"tns:UploadRequestElement"></wsdl:part>=

          &n= bsp; </wsdl:message>

          &n= bsp; <wsdl:message name=3D"UploadResponse">

          &n= bsp;            = ; <wsdl:part name=3D"uploadoperationstatus" element=3D"tns:OperationStatusElement"></wsdl:part>

          &n= bsp; </wsdl:message>

          &n= bsp;

          &n= bsp; <wsdl:message name=3D"IsUploadAllowedRequest">

          &n= bsp;            = ; <wsdl:part name=3D"uploadcheckrequest" element=3D"tns:IsUploadAllowedRequestElement"></wsdl:part&g= t;

          &n= bsp; </wsdl:message>

          &n= bsp; <wsdl:message name=3D"IsUploadAllowedResponse">

          &n= bsp;            = ; <wsdl:part name=3D"uploadcheckoperationstatus" element=3D"tns:OperationStatusElement"></wsdl:part>

          &n= bsp; </wsdl:message>

=85

          &n= bsp;            = ; <wsdl:operation name=3D"Upload">

          &n= bsp;            = ;             <wsdl:input message=3D"tns:UploadRequest"></wsdl:input&g= t;

          &n= bsp;            = ;             <wsdl:output message=3D"tns:UploadResponse"></wsdl:outpu= t>

          &n= bsp;            = ; </wsdl:operation>

          &n= bsp;            = ; <wsdl:operation name=3D"IsUploadAllowed">

          &n= bsp;            = ;             <wsdl:input message=3D"tns:IsUploadAllowedRequest"></wsd= l:input>

          &n= bsp;            = ;             <wsdl:output message=3D"tns:IsUploadAllowedResponse"></w= sdl:output>

          &n= bsp;            = ; </wsdl:operation>

=85

          &n= bsp;            = ; <soap:binding transport=3D"http://schemas.xmlsoap.org/soap/http" style=3D"document"/>

          &n= bsp;            = ; <wsdl:operation name=3D"Upload">

          &n= bsp;            = ;             <soap:operation soapAction=3D"" style=3D"document"/&= gt;

          &n= bsp;            = ;             <wsdl:input>

          &n= bsp;            = ;               &nb= sp;         <soap:body use=3D"literal"/>

          &n= bsp;            = ;             </wsdl:input>

          &n= bsp;            = ;             <wsdl:output>

          &n= bsp;            = ;            &n= bsp;            <soap:body use=3D"literal"/>

          &n= bsp;            = ;             </wsdl:output>

          &n= bsp;            = ; </wsdl:operation>

          &n= bsp;            = ; <wsdl:operation name=3D"IsUploadAllowed">

          &n= bsp;            = ;             <soap:operation soapAction=3D"" style=3D"document"/&= gt;

          &n= bsp;            = ;             <wsdl:input>

          &n= bsp;            = ;            &n= bsp;            <soap:body use=3D"literal"/>

          &n= bsp;            = ;             </wsdl:input>

          &n= bsp;            = ;             <wsdl:output>

          &n= bsp;            = ;            &n= bsp;            <soap:body use=3D"literal"/>

          &n= bsp;            = ;             </wsdl:output>

          &n= bsp;            = ; </wsdl:operation>

=85




--
Amila Suriarachchi,
= WSO2 Inc. ------=_Part_8808_31298576.1193659043291--