Return-Path: Delivered-To: apmail-ws-sandesha-dev-archive@www.apache.org Received: (qmail 97122 invoked from network); 1 Mar 2010 07:56:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 07:56:27 -0000 Received: (qmail 75632 invoked by uid 500); 1 Mar 2010 07:56:26 -0000 Delivered-To: apmail-ws-sandesha-dev-archive@ws.apache.org Received: (qmail 75487 invoked by uid 500); 1 Mar 2010 07:56:26 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 75478 invoked by uid 99); 1 Mar 2010 07:56:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 07:56:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 07:56:25 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C6640234C48D for ; Mon, 1 Mar 2010 07:56:05 +0000 (UTC) Message-ID: <646403276.28381267430165811.JavaMail.jira@brutus.apache.org> Date: Mon, 1 Mar 2010 07:56:05 +0000 (UTC) From: "Satish Tottempudi (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Commented: (AXIS2-3037) 'RuntimeException: Unexpected subelement' when wsdl adds a new property MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-3037?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1283= 9587#action_12839587 ]=20 Satish Tottempudi commented on AXIS2-3037: ------------------------------------------ Hi Vincent1 =C2=A0 Which version of Axis2 Binary has this fix.=C2=A0 Curenntly we are using Ax= is2 1.2 Please help to resolve this issue. =C2=A0 Thanks! =C2=A0 -Satish > 'RuntimeException: Unexpected subelement' when wsdl adds a new property > ----------------------------------------------------------------------- > > Key: AXIS2-3037 > URL: https://issues.apache.org/jira/browse/AXIS2-3037 > Project: Axis2 > Issue Type: Bug > Components: codegen > Affects Versions: 1.2 > Environment: Win2k3, Java 6.0, Axis2 1.2 > Reporter: Chris B > Assignee: Amila Chinthaka Suriarachchi > Priority: Critical > Attachments: futures_new.wsdl, futures_old.wsdl, iu.patch, TestRu= nner.java > > > I have an client app that was created and had been working, it makes a ca= ll to one webservice. > The webservice was upgraded, it added some new methods and it also added = a new property (Type) to one of the return types I was using. > Now my app will no longer work, i get a runtime error, java.lang.Runtime= Exception: Unexpected subelement Type, when the results are returned to my = service. > If i rebuilt the client stub code using wsdl2java with the new wsdl my ap= p will work again. > As I understand it, adding fields to a object should not break any existi= ng code. Any Xml elements returned that are not known elements should be ig= nored and not cause exceptions in the client code. > I have tested my assumption with Visual Studio 2005, if i genereate web s= ervice client code using the old wsdl I can still call the new service with= out an exception being thrown because of the new Xml element being returned= . > Is there some option that I don't know of that will allow for new element= s to be returned without exceptions being throw? --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org