Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 97435 invoked from network); 28 Jun 2005 13:04:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jun 2005 13:04:17 -0000 Received: (qmail 40585 invoked by uid 500); 28 Jun 2005 13:04:06 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 40493 invoked by uid 500); 28 Jun 2005 13:04:05 -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 40434 invoked by uid 99); 28 Jun 2005 13:04:04 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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, 28 Jun 2005 06:04:04 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id C4A46D5 for ; Tue, 28 Jun 2005 15:04:00 +0200 (CEST) Message-ID: <1277140516.1119963840803.JavaMail.jira@ajax.apache.org> Date: Tue, 28 Jun 2005 15:04:00 +0200 (CEST) From: "Thomas Boerkel (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-1308) Axis 1.2 beta and .NET 1.1: Problem with arrays In-Reply-To: <893546722.1081861545979.JavaMail.apache@nagoya> 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-1308?page=comments#action_12314607 ] Thomas Boerkel commented on AXIS-1308: -------------------------------------- Apparently, we had to add something to our code (we interface directly to Axis from our own HTTP server and do not use any deployment), to make it work AT ALL with Axis 1.2.1. This should be written in some changes document for 1.2.x. After adding this code, TypeMapping worked again: typeMappingRegistry = new TypeMappingRegistryImpl(true); // global variable // ... msgContext.setTypeMappingRegistry(typeMappingRegistry); I hope, this is the right way/correct. Also, we had to add this for .NET 1.1 as a client: TypeMappingImpl.dotnet_soapenc_bugfix = true; Now, everything seems to work OK again. The WSDLs look almost identical to Axis 1.1. > Axis 1.2 beta and .NET 1.1: Problem with arrays > ----------------------------------------------- > > Key: AXIS-1308 > URL: http://issues.apache.org/jira/browse/AXIS-1308 > Project: Apache Axis > Type: Bug > Components: Basic Architecture > Versions: 1.2 Beta > Environment: Windows 2000 server, JDK 1.4.2_03, .NET 1.1, Axis 1.2 Beta > Reporter: Thomas Boerkel > Assignee: Davanum Srinivas > Fix For: 1.2 > Attachments: SoapTest.WSDL, SoapTest_11RC2.wsdl, SoapTest_12Beta.wsdl, cdx.wsdl > > I was able to return an array from an Axis 1.1 RC2 server to a .NET 1.1 client without problems. > With Axis 1.2 beta, the .NET client throws an exception: > System.InvalidOperationException: There is an error in XMLdocument (5, 5). ---> System.InvalidOperationException: The specified type as not recognized: name='string', namespace='http://schemas.xmlsoap.org/soap/encoding/', at . > I don't know, if this is a bug in Axis or .NET, but I think the interop is very important, so even a workaround in Axis for a .NET bug should be considered, until MS fixes their bug. > This is the response XML from Axis 1.1 RC2: > > > > > > 5 > 6 > 7 > > > > > And this from Axis 1.2 beta: > > > > > > 5 > 6 > 7 > > > > > This is the Java method signature: > public String[] arrayTest(int[] numbers) > We do not use deployment and we do not use Tomcat, but something like this: > axisServer = new AxisServer(new NullProvider()); > axisServer.init(); > msg = new Message(xml); > msgContext = new MessageContext(axisServer); > msgContext.setRequestMessage(msg); > service = getService(completeName); > msgContext.setService(service); > axisServer.invoke(msgContext); > msg = msgContext.getResponseMessage(); > xml= msg.getSOAPPartAsString(); > If I use > service.setStyle(Style.WRAPPED) > service.setUse(Use.LITERAL) > Then this is the response from Axis: > > > > > 5 > 6 > 7 > > > > and .NET returns NULL to the client code. > Attaching Axis 1.1 RC2 WSDL and 1.2 Beta WSDL (almost identical, besides the namespace desclaration). -- 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