axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject RE: Axis 1.2 beta and .NET 1.1: Problem with arrays
Date Thu, 08 Apr 2004 08:10:28 GMT
make sure you use Style.WRAPPED in your OperationDesc/JavaServiceDesc also switch on Use.LITERAL
as well.

desc.setStyle(Style.WRAPPED)
desc.setUse(Use.LITERAL)

-- dims

--- Thomas_Börkel <tbo@ap-ag.com> wrote:
> HI!
> 
> I do not have a wsdd. We don't do deployment, because we don't use Apache, but our own
HTTP
> implementation. WSDLs are being generated on the fly.
> 
> So, where should I call which method?
> 
> I only know call.setOperationStyle("wrapped"), but that is for Axis being the client.
Here is
> Axis the server.
> 
> Thanks!
> 
> Thomas
> 
> > -----Original Message-----
> > From: Davanum Srinivas [mailto:dims@yahoo.com] 
> > 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
> > 
> > 
> > in your wsdd, can you try switching the style to wrapped 
> > 
> > -- dims
> > 
> > --- Thomas_Börkel <tbo@ap-ag.com> wrote:
> > > HI!
> > > 
> > > 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 
> > <arrayTestReturn xmlns=''>.
> > > 
> > > 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:
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <soapenv:Envelope 
> > 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">
> > >  <soapenv:Body>
> > >   <ns1:arrayTestResponse 
> > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xmlns:ns1="http://p2test.p2plus.apag.com">
> > >    <arrayTestReturn xsi:type="soapenc:Array" 
> > soapenc:arrayType="xsd:string[3]"
> > > xmlns:ns2="http://www.w3.org/2002/12/soap-encoding"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >     <item>5</item>
> > >     <item>6</item>
> > >     <item>7</item>
> > >    </arrayTestReturn>
> > >   </ns1:arrayTestResponse>
> > >  </soapenv:Body>
> > > </soapenv:Envelope>
> > > 
> > > And this from Axis 1.2 beta:
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <soapenv:Envelope 
> > 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">
> > >  <soapenv:Body>
> > >   <ns1:arrayTestResponse 
> > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xmlns:ns1="http://p2test.p2plus.apag.com">
> > >    <arrayTestReturn soapenc:arrayType="soapenc:string[3]" 
> > xsi:type="soapenc:Array"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >     <item xsi:type="soapenc:string">5</item>
> > >     <item xsi:type="soapenc:string">6</item>
> > >     <item xsi:type="soapenc:string">7</item>
> > >    </arrayTestReturn>
> > >   </ns1:arrayTestResponse>
> > >  </soapenv:Body>
> > > </soapenv:Envelope>
> > > 
> > > This is the Java method signature:
> > >   public String[] arrayTest(int[] numbers)
> > > 
> > > 
> > > Thanks!
> > > 
> > > Thomas
> > 
> > 
> > =====
> > Davanum Srinivas - http://webservices.apache.org/~dims/
> > 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

Mime
View raw message