Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 76208 invoked from network); 13 Apr 2004 07:16:50 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Apr 2004 07:16:50 -0000 Received: (qmail 9422 invoked by uid 500); 13 Apr 2004 07:16:24 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 9259 invoked by uid 500); 13 Apr 2004 07:16:22 -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: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 9247 invoked from network); 13 Apr 2004 07:16:22 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.185) by daedalus.apache.org with SMTP; 13 Apr 2004 07:16:22 -0000 Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BDI9k-0006Fb-00; Tue, 13 Apr 2004 09:16:28 +0200 Received: from [195.243.151.195] (helo=KA_SRV_015.ap-ag.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1BDI9k-0005U3-00; Tue, 13 Apr 2004 09:16:28 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Axis 1.2 beta and .NET 1.1: Problem with arrays Date: Tue, 13 Apr 2004 09:16:22 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Axis 1.2 beta and .NET 1.1: Problem with arrays Thread-Index: AcQdZC6GhWlXmqlbSxaasqyxN6HqSwDwttBQ From: =?iso-8859-1?Q?Thomas_B=F6rkel?= To: , X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:b21d2a35546947fc2fcb941d9ba0f15d X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N HI! If I use this setting, then .NET returns NULL. This is the response from Axis: 5 6 7 Thomas > -----Original Message----- > From: Davanum Srinivas [mailto:dims@yahoo.com]=20 > Sent: Donnerstag, 8. April 2004 14:22 > To: axis-dev@ws.apache.org > Subject: RE: Axis 1.2 beta and .NET 1.1: Problem with arrays >=20 >=20 > service =3D getService(completeName); > service.setStyle(Style.WRAPPED) > service.setUse(Use.LITERAL) >=20 > -- dims >=20 > --- Thomas_B=F6rkel wrote: > > HI! > >=20 > > We do not have a OperationDesc or ServiceDesc. This is what we do: > >=20 > >=20 > > axisServer =3D new AxisServer(new NullProvider()); > > axisServer.init(); > >=20 > > msg =3D new Message(xml); > > =20 > > msgContext =3D new MessageContext(axisServer); > > msgContext.setRequestMessage(msg); > > service =3D getService(completeName); > > =20 > > msgContext.setService(service); > > =20 > > axisServer.invoke(msgContext); > >=20 > > msg =3D msgContext.getResponseMessage(); > >=20 > > xml=3D msg.getSOAPPartAsString(); > >=20 > > Thomas > >=20 > > > -----Original Message----- > > > From: Davanum Srinivas [mailto:dims@yahoo.com]=20 > > > Sent: Donnerstag, 8. April 2004 10:10 > > > To: Thomas B=F6rkel; axis-dev@ws.apache.org > > > Subject: RE: Axis 1.2 beta and .NET 1.1: Problem with arrays > > >=20 > > >=20 > > > make sure you use Style.WRAPPED in your=20 > > > OperationDesc/JavaServiceDesc also switch on Use.LITERAL > > > as well. > > >=20 > > > desc.setStyle(Style.WRAPPED) > > > desc.setUse(Use.LITERAL) > > >=20 > > > -- dims > > >=20 > > > --- Thomas_B=F6rkel wrote: > > > > HI! > > > >=20 > > > > I do not have a wsdd. We don't do deployment, because we=20 > > > don't use Apache, but our own HTTP > > > > implementation. WSDLs are being generated on the fly. > > > >=20 > > > > So, where should I call which method? > > > >=20 > > > > I only know call.setOperationStyle("wrapped"), but that is=20 > > > for Axis being the client. Here is > > > > Axis the server. > > > >=20 > > > > Thanks! > > > >=20 > > > > Thomas > > > >=20 > > > > > -----Original Message----- > > > > > From: Davanum Srinivas [mailto:dims@yahoo.com]=20 > > > > > Sent: Donnerstag, 8. April 2004 09:30 > > > > > To: axis-dev@ws.apache.org > > > > > Subject: Re: Axis 1.2 beta and .NET 1.1: Problem with arrays > > > > >=20 > > > > >=20 > > > > > in your wsdd, can you try switching the style to wrapped=20 > > > > >=20 > > > > > -- dims > > > > >=20 > > > > > --- Thomas_B=F6rkel wrote: > > > > > > HI! > > > > > >=20 > > > > > > I was able to return an array from an Axis 1.1 RC2 server=20 > > > > > to a .NET 1.1 client without problems. > > > > > >=20 > > > > > >=20 > > > > > > With Axis 1.2 beta, the .NET client throws an exception: > > > > > > System.InvalidOperationException: There is an error in=20 > > > > > XMLdocument (5, 5). ---> > > > > > > System.InvalidOperationException: The specified type as not=20 > > > > > recognized: name=3D'string', > > > > > > namespace=3D'http://schemas.xmlsoap.org/soap/encoding/', at=20 > > > > > . > > > > > >=20 > > > > > > I don't know, if this is a bug in Axis or .NET, but I think=20 > > > > > the interop is very important, so > > > > > > even a workaround in Axis for a .NET bug should be=20 > > > > > considered, until MS fixes their bug. > > > > > >=20 > > > > > > This is the response XML from Axis 1.1 RC2: > > > > > > > > > > > > > > > > xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/" > > > > > > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > > > > > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > > > > > > > > > > > > > > > >=20 > soapenv:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/" > > > > > > xmlns:ns1=3D"http://p2test.p2plus.apag.com"> > > > > > > > > > > soapenc:arrayType=3D"xsd:string[3]" > > > > > > xmlns:ns2=3D"http://www.w3.org/2002/12/soap-encoding" > > > > > > xmlns:soapenc=3D"http://schemas.xmlsoap.org/soap/encoding/"> > > > > > > 5 > > > > > > 6 > > > > > > 7 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >=20 > > > > > > And this from Axis 1.2 beta: > > > > > > > > > > > > > > > > xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap/envelope/" > > > > > > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" > > > > > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> > > > > > > > > > > > > > > > >=20 > soapenv:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/" > > > > > > xmlns:ns1=3D"http://p2test.p2plus.apag.com"> > > > > > > > > > > xsi:type=3D"soapenc:Array" > > > > > > xmlns:soapenc=3D"http://schemas.xmlsoap.org/soap/encoding/"> > > > > > > 5 > > > > > > 6 > > > > > > 7 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >=20 > > > > > > This is the Java method signature: > > > > > > public String[] arrayTest(int[] numbers) > > > > > >=20 > > > > > >=20 > > > > > > Thanks! > > > > > >=20 > > > > > > Thomas > > > > >=20 > > > > >=20 > > > > > =3D=3D=3D=3D=3D > > > > > Davanum Srinivas - http://webservices.apache.org/~dims/ > > > > >=20 > > >=20 > > >=20 > > > =3D=3D=3D=3D=3D > > > Davanum Srinivas - http://webservices.apache.org/~dims/ > > >=20 >=20 >=20 > =3D=3D=3D=3D=3D > Davanum Srinivas - http://webservices.apache.org/~dims/ >=20