axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BLIS Webmaster (Patrick Houbaux)" <webmas...@blis-project.org>
Subject Re: Axis using in-correct Encoding for ARRAY in Doc/Literal
Date Fri, 21 Nov 2003 10:08:20 GMT
I'm not sure but what if you remove the attribute "provider" in <service ..> definition
in the wsdd.

Patrick.

Ramaswamy, Muthu wrote:

> 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"/>
> </service>
> 
> Here is the output I got:
> -------------------------
> <?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>
>   <echoArrayResponse xmlns="urn:arrayDOC">
>    <echoArrayReturn soapenc:arrayType="xsd:string[5]" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>     <item xmlns="">Book1</item>
>     <item xmlns="">Book2</item>
>     <item xmlns="">Book3</item>
>     <item xmlns="">Book4</item>
>     <item xmlns="">Book5</item>
>    </echoArrayReturn>
>   </echoArrayResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> 
> -Muthu


Mime
View raw message