Return-Path: Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: (qmail 75139 invoked from network); 7 Jan 2011 19:39:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jan 2011 19:39:03 -0000 Received: (qmail 52508 invoked by uid 500); 7 Jan 2011 19:39:02 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 52331 invoked by uid 500); 7 Jan 2011 19:39:02 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 52323 invoked by uid 99); 7 Jan 2011 19:39:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 19:39:02 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [129.176.212.47] (HELO mail10.mayo.edu) (129.176.212.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 19:38:51 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhEGACv6Jk2BsNQ1/2dsb2JhbACCKZN0jg5ztVuFWIIWgzYEhGeJRg Received: from mhro1a.mayo.edu ([129.176.212.53]) by ironport10.mayo.edu with ESMTP; 07 Jan 2011 13:38:29 -0600 Received: from msgebh10.mfad.mfroot.org (msgebh10.mayo.edu [129.176.251.36]) by mhro1a.mayo.edu with ESMTP id BT-MMP-3449553 for java-user@axis.apache.org; Fri, 7 Jan 2011 13:38:29 -0600 Received: from msgebe11.mfad.mfroot.org ([129.176.249.83]) by msgebh10.mfad.mfroot.org with Microsoft SMTPSVC(6.0.3790.4675); Fri, 7 Jan 2011 13:38:28 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CBAEA2.755F468A" Subject: RE: Eclipse + axis2 + wsdl = Undefined ConverterUtil.convertTo Date: Fri, 7 Jan 2011 13:38:27 -0600 Message-ID: <07C990EDDC0F6E45841CE85E11289EB703C75775@msgebe11.mfad.mfroot.org> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Eclipse + axis2 + wsdl = Undefined ConverterUtil.convertTo Thread-Index: AcuuohDMzJD7yZQBQzm1V8LBhoxFIAAADBww References: From: "Meeusen, Christopher W." To: X-OriginalArrivalTime: 07 Jan 2011 19:38:28.0891 (UTC) FILETIME=[7577C6B0:01CBAEA2] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01CBAEA2.755F468A Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable We use the wsdl2java utility included in the axis2 binary to generate = our stubs. Make sure you use the same version of wsdl2java as your = axis2 install. Works great. There is also a maven plugin to gen them. =20 Chris =20 From: = java-user-return-83907-Meeusen.Christopher=3Dmayo.edu@axis.apache.org = [mailto:java-user-return-83907-Meeusen.Christopher=3Dmayo.edu@axis.apache= .org] On Behalf Of Jos=E9 Renato Sent: Friday, January 07, 2011 1:35 PM To: java-user@axis.apache.org Subject: Eclipse + axis2 + wsdl =3D Undefined ConverterUtil.convertTo =20 Hi All, I am trying to generate client classes (Stub and Callback) to access a = remote WS using axis2 inside Eclipse 3 (Helius) with a wsdl as source = supplied by a partner. The situation is that some objects do not present = the right converters, as this sample: //... while (!reader.isStartElement() && !reader.isEndElement()) = reader.next(); =20 if (reader.isStartElement() && new = javax.xml.namespace.QName("http://localhost = /xml/service","Header").equals(reader.getName())){ =20 java.lang.String content =3D reader.getElementText(); //error: The next line is not properly generated (undefined = method) = object.setHeader(org.apache.axis2.databinding.utils.ConverterUtil.convert= ToHeader_type0(content)); reader.next(); =20 } // End of if for expected property start element else{ // A start element we are not expecting indicates an invalid = parameter was passed throw new org.apache.axis2.databinding.ADBException("Unexpected = subelement " + reader.getLocalName()); } //... I did one attempt replacing ConverterUtil by a = Header.Factory.parse(reader) to make the source compilable, but I guess = this is not correct to be done. Other weird thing is that using axis1, = the classes are generated correctly. How can I fix that? Could the third = part wsdl be wrong? Thanks in advance, Jos=E9 Renato ------_=_NextPart_001_01CBAEA2.755F468A Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

We use the wsdl2java utility included in the axis2 binary to generate = our stubs.=A0 Make sure you use the same version of wsdl2java as your = axis2 install.=A0 Works great.=A0 There is also a maven plugin to gen = them.

 

Chris

 

From:= = java-user-return-83907-Meeusen.Christopher=3Dmayo.edu@axis.apache.org = [mailto:java-user-return-83907-Meeusen.Christopher=3Dmayo.edu@axis.apache= .org] On Behalf Of Jos=E9 Renato
Sent: Friday, January = 07, 2011 1:35 PM
To: = java-user@axis.apache.org
Subject: Eclipse + axis2 + wsdl =3D = Undefined ConverterUtil.convertTo

 

Hi All,

I am trying to generate = client classes (Stub and Callback) to access a remote WS using axis2 = inside Eclipse 3 (Helius) with a wsdl as source supplied by a partner. = The situation is that some objects do not present the right converters, = as this sample:

//...
while (!reader.isStartElement() = && !reader.isEndElement()) = reader.next();
         &= nbsp;           &n= bsp;          =
    if (reader.isStartElement() && new = javax.xml.namespace.QName("http://localhost      = ;      = /xml/service","Header").equals(reader.getName())){
&nbs= p;            = ;            =        =
        java.lang.String content = =3D = reader.getElementText();

       = ; //error: The next line is not = properly generated (undefined method)
        = object.setHeader(org.apache.axis2.databinding.utils.ConverterUtil.convert= ToHeader_type0(content));
      &= nbsp; = reader.next();
         &= nbsp;           &n= bsp;           &nb= sp; 
    }  // End of if for expected = property start element
    else{
    =     // A start element we are not expecting indicates an = invalid parameter was = passed
        throw new = org.apache.axis2.databinding.ADBException("Unexpected subelement = " + reader.getLocalName());
    = }
//...

I did one attempt replacing ConverterUtil by a = Header.Factory.parse(reader) to make the source compilable, but I guess = this is not correct to be done. Other weird thing is that using axis1, = the classes are generated correctly. How can I fix that? Could the third = part wsdl be wrong?

Thanks in advance,
Jos=E9 = Renato

------_=_NextPart_001_01CBAEA2.755F468A--