axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Börkel <...@ap-ag.com>
Subject RE: Axis 1.2 beta and .NET 1.1: Problem with arrays
Date Tue, 13 Apr 2004 07:16:22 GMT
HI!

If I use this setting, then .NET returns NULL.

This is the response from Axis:
<?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>
  <arrayTestResponse xmlns="http://p2test.p2plus.apag.com">
   <arrayTestReturn>5</arrayTestReturn>
   <arrayTestReturn>6</arrayTestReturn>
   <arrayTestReturn>7</arrayTestReturn>
  </arrayTestResponse>
 </soapenv:Body>
</soapenv:Envelope>

Thomas

> -----Original Message-----
> From: Davanum Srinivas [mailto:dims@yahoo.com] 
> 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
> 
> 
> service = getService(completeName);
> service.setStyle(Style.WRAPPED)
> service.setUse(Use.LITERAL)
> 
> -- dims
> 
> --- Thomas_Börkel <tbo@ap-ag.com> wrote:
> > HI!
> > 
> > We do not have a OperationDesc or ServiceDesc. This is what we do:
> > 
> > 
> >       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();
> > 
> > Thomas
> > 
> > > -----Original Message-----
> > > From: Davanum Srinivas [mailto:dims@yahoo.com] 
> > > Sent: Donnerstag, 8. April 2004 10:10
> > > To: Thomas Börkel; axis-dev@ws.apache.org
> > > Subject: RE: Axis 1.2 beta and .NET 1.1: Problem with arrays
> > > 
> > > 
> > > 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/
> > > 
> 
> 
> =====
> Davanum Srinivas - http://webservices.apache.org/~dims/
> 

Mime
View raw message