package org.apache.axis2.description public class AxisService2WSDL20 implements WSDL2Constants ............. private URI [] checkStyle(AxisOperation axisOperation) throws URISyntaxException, AxisFault { ........................ Object next = iterator.next(); if (!(next instanceof XmlSchemaElement)) { isRPC = false; } //the next instanceof XmlSchema is missing //if ((next instanceof XmlSchemaElement)) { XmlSchemaElement innerElement = (XmlSchemaElement) next;
Martin ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 16 Aug 2012 19:06:37 +1100 > From: j...@apache.org > To: java-dev@axis.apache.org > Subject: [jira] [Created] (AXIS2-5391) AxisService2WSDL20 fails to return the > WSDL 2.0 styles when the schema has a ComplexElement with XmlSchemaAny > > lakmali erandi baminiwatta created AXIS2-5391: > ------------------------------------------------- > > Summary: AxisService2WSDL20 fails to return the WSDL 2.0 styles > when the schema has a ComplexElement with XmlSchemaAny > Key: AXIS2-5391 > URL: https://issues.apache.org/jira/browse/AXIS2-5391 > Project: Axis2 > Issue Type: Bug > Affects Versions: 1.6.1 > Reporter: lakmali erandi baminiwatta > > > When the outmessage has a schema element as below, > > <xs:element name="DATA_SERVICE_RESPONSE"> > <xs:complexType> > <xs:sequence> > <xs:any minOccurs="0"/> > </xs:sequence> > </xs:complexType> > </xs:element> > > and when AxisService2WSDL20 checkStyle has got invoked, the following > exception is thrown for <xs:any minOccurs="0"/> > > Caused by: java.lang.ClassCastException: > org.apache.ws.commons.schema.XmlSchemaAny cannot be cast to > org.apache.ws.commons.schema.XmlSchemaElement > at > org.apache.axis2.description.AxisService2WSDL20.checkStyle(AxisService2WSDL20.java:711) > at > org.apache.axis2.description.AxisService2WSDL20.generateInterfaceOperationElement(AxisService2WSDL20.java:502). > > > at > org.apache.axis2.description.AxisService2WSDL20.getInterfaceElement(AxisService2WSDL20.java:421) > at > org.apache.axis2.description.AxisService2WSDL20.generateOM(AxisService2WSDL20.java:223) > at > org.apache.axis2.description.AxisService.printWSDL2(AxisService.java:1785) > > > > -- > This message is automatically generated by JIRA. > If you think it was sent incorrectly, please contact your JIRA > administrators: > https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa > For more information on JIRA, see: http://www.atlassian.com/software/jira > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org > For additional commands, e-mail: java-dev-h...@axis.apache.org >