Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 61872 invoked from network); 1 Nov 2005 15:45:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Nov 2005 15:45:21 -0000 Received: (qmail 54629 invoked by uid 500); 1 Nov 2005 15:45:18 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 54529 invoked by uid 500); 1 Nov 2005 15:45:18 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 54518 invoked by uid 99); 1 Nov 2005 15:45:18 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2005 07:45:17 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 47EF1598 for ; Tue, 1 Nov 2005 16:44:56 +0100 (CET) Message-ID: <777052409.1130859896292.JavaMail.jira@ajax.apache.org> Date: Tue, 1 Nov 2005 16:44:56 +0100 (CET) From: "Tom Jordahl (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Closed: (AXIS-2269) Serialization of user_defined enums are not done. In-Reply-To: <313366317.1130082135901.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS-2269?page=all ] Tom Jordahl closed AXIS-2269: ----------------------------- Resolution: Invalid closing per Subir's comments. > Serialization of user_defined enums are not done. > ------------------------------------------------- > > Key: AXIS-2269 > URL: http://issues.apache.org/jira/browse/AXIS-2269 > Project: Apache Axis > Type: Bug > Components: Serialization/Deserialization > Versions: 1.2 > Environment: Windows XP OS > Tomcat 4.1.18 AppServer > jdk1.5.0_03-b07 > Axis 1.2 Final Release > Reporter: Subir S > > I recently upgraded from Axis 1.1 to Axis 1.2. and jdk 1.4.2_04 to jdk1.5.0_03 > The issue that i faced were > Enum classes were not generated using WSDL2Java as the restriction base for the > SimpleType was soapenc:string. > I resolved this with the advice from dims to keep the "dotNetSoapEncFix" > global parameter in server-config.wsdd to "true". [Bug Fix AXIS-1834] > This created the Enum classes successfully and the Soap requests were send successfully. > "One important thing is that the bug i am going to describe is reproducible even if enums are generated or not". > But this Fix is not complete. Though the enum classes are generated using WSDL2Java successfully > and the SOAP request is also send the response bean is not returned correctly. > The bean class that i defined has a class variable of this enum class type. > My WebService has a return type of this bean. While returning the bean it gives me the following > exception in catalina.out: > Caused by: java.io.IOException: No serializer found for class > com.soap.auxiliary.ScheduleValidationStatusEnum in registry > org.apache.axis.encoding.TypeMappingDelegate@1c501f7 > at org.apache.axis.encoding.SerializationContext.serializeActual(Seriali > zationContext.java:1420) > at org.apache.axis.encoding.SerializationContext.serialize(Serialization > Context.java:912) > at org.apache.axis.encoding.SerializationContext.outputMultiRefs(Seriali > zationContext.java:987) > at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:145) > at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477 > ) > at org.apache.axis.message.MessageElement.output(MessageElement.java:120 > 7) > at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315) > ... 36 more > AxisFault > faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException > faultSubcode: > faultString: org.xml.sax.SAXParseException: Premature end of file. > faultActor: > faultNode: > faultDetail: > {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: P > remature end of file. > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) > at org.apache.axis.encoding.DeserializationContext.parse(Deserialization > Context.java:227) > at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) > at org.apache.axis.Message.getSOAPEnvelope(Message.java:424) > at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders > tandChecker.java:62) > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) > > > > My deploy.wsdd has following type mapping > xmlns:myNS="urn:ScheduleServices" > qname="myNS:ScheduleValidationStatusEnum" > languageSpecificType ="java:com.soap.auxiliary.ScheduleValidationStatusEnum" > serializer="org.apache.axis.encoding.ser.EnumSerializerFactory" > deserializer ="org.apache.axis.encoding.ser.EnumDeserializerFactory" > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > /> > My ?wsdl contains the following > - > - > > > > > > > > > > > > > > > > > > > Can somebody help me out and tell me if there is any fix for this. I have a lot of WebServices similar to this. > Changing this would mean that i have to change the whole idea of our project. > Any inputs would be valuable > --Subir -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira