axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramaswamy, Muthu" <>
Subject Axis using in-correct Encoding for ARRAY in Doc/Literal
Date Wed, 19 Nov 2003 00:43:35 GMT
Hi All-

I have got a simple service using Doc/Literal/Wrapped style. When I access the service using
a call object in my java/Axis client, the response message contains SOAP Encoding for the
Arrays. I need the output to match the Doc/Lit style. Is this a bug? 

Appreciate your input.

Here is the simple java service:
package com.test;
public class TestArray
   public String[] echoArray()
      String[] title = {"Book1", "Book2", "Book3", "Book4", "Book5"};
      return title;

Here is the service entry:
<service name="urn:arrayDOC" provider="java:RPC" style="wrapped" use="literal">
  <parameter name="allowedMethods" value="echoArray"/>
  <parameter name="className" value="com.test.TestArray"/>

Here is the output I got:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="" xmlns:xsd=""
  <echoArrayResponse xmlns="urn:arrayDOC">
   <echoArrayReturn soapenc:arrayType="xsd:string[5]" xmlns:soapenc="">
    <item xmlns="">Book1</item>
    <item xmlns="">Book2</item>
    <item xmlns="">Book3</item>
    <item xmlns="">Book4</item>
    <item xmlns="">Book5</item>


View raw message