Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 1714 invoked from network); 25 May 2006 02:00:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 May 2006 02:00:04 -0000 Received: (qmail 32615 invoked by uid 500); 25 May 2006 01:59:56 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 32598 invoked by uid 500); 25 May 2006 01:59:56 -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 32587 invoked by uid 99); 25 May 2006 01:59:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2006 18:59:56 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=MISSING_HEADERS X-Spam-Check-By: apache.org Received-SPF: unknown spf1 (asf.osuosl.org: encountered unrecognized mechanism during SPF processing of domain of ravik@savvion.com) Received: from [206.40.33.116] (HELO mailrelay1.savvion.com) (206.40.33.116) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 24 May 2006 18:59:53 -0700 Received: from mail.savvion.com (mail.savvion.com [10.1.6.6]) by mailrelay1.savvion.com (Symantec Mail Security) with SMTP id 43F52E5 for ; Wed, 24 May 2006 16:10:55 -0700 (PDT) Received: from [127.0.0.1] (unknown [10.1.4.52]) by mail.savvion.com (Postfix) with ESMTP id E9FF52FC009 for ; Wed, 24 May 2006 21:48:59 -0400 (EDT) Message-ID: <44750F51.9000600@savvion.com> Date: Wed, 24 May 2006 18:58:41 -0700 From: Ravi Krishnamurthy User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: axis-user@ws.apache.org Subject: Re: String[] for xsd:anyType with axis1.2.1 References: <4474F0AA.5000108@savvion.com> In-Reply-To: <4474F0AA.5000108@savvion.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N More information: The exception that I mentioned happens only if the webservice is a document/literal/wrapped but with RPC it is fine. Is there is any known bug related to wrapped/literal style, anytype and ArrayOfString and axis1.2.1 Thanks, Ravi Ravi Krishnamurthy wrote: > Hello; > One of the javabean I have registered as a bean mapping has a field of > Object type which corresponds to xsd:anyType. But the types for > Object are always primitive types. As long they are primitives it > works fine. I tried to pass String[] and it started to throw exception > at the test cases generated by wsdl2java when I executed the JUnit > test case as below: > > AxisFault > faultCode: > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException > faultSubcode: > faultString: org.xml.sax.SAXException: No deserializer for > {http://www.w3.org/2001/XMLSchema}anyType > faultActor: > faultNode: > faultDetail: > {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: > No deserializer for {http://www.w3.org/2001/XMLSchema}anyType > at > org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:314) > at > org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) > at > org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) > at > org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) > at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) > at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) > at org.apache.axis.client.Call.invoke(Call.java:2448) > at org.apache.axis.client.Call.invoke(Call.java:2347) > at org.apache.axis.client.Call.invoke(Call.java:1804) > at > com.savvion.webservice.workflow.BizLogic1SoapBindingStub.getProcessTemplateDataSlot(BizLogic1SoapBindingStub.java:1704) > at > com.savvion.webservice.workflow.WorkFlowWSServiceTestCase.test20BizLogic1GetProcessTemplateDataSlot(WorkFlowWSServiceTestCase.java:457) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at junit.framework.TestCase.runTest(TestCase.java:216) > at junit.framework.TestCase.runBare(TestCase.java:188) > at junit.framework.TestResult$1.protect(TestResult.java:150) > at junit.framework.TestResult.runProtected(TestResult.java:168) > at junit.framework.TestResult.run(TestResult.java:153) > at junit.framework.TestCase.run(TestCase.java:179) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > > {http://xml.apache.org/axis/}hostname:chennai > > The returned soap envelop looks like below: > HTTP/1.1 200 OK > > Date: Wed, 24 May 2006 23:45:26 GMT > > Content-Type: text/xml; charset=utf-8 > > Connection: Close > > > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > xmlns="http://workflow.webservice.savvion.com"> > > > false > false > listds > 1 > LIST > > one > ten > > > > > > > and the xsd:anytype if for the following element: > > one > ten > > > Would appreciate any help on this. > > Thanks, > Ravi --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org