I'm relatively sure that this happens because you are hitting a
requirement of the JAX-WS spec.

This leads me to believe that you are not using ServerFactoryBean, but
rather JaxWsServerFactoryBean.

Are you sure? There might be a reason why we feel compelled to do like
JAX-WS even in this case, but I wanted to check.


On Tue, Dec 9, 2008 at 10:42 AM, Mickael Istria
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> First of all, I'd like to apologize in case of this question is a classic
> about CXF and/or JaxB, but my research did not give me a good answer, that's
> why I come to this mailing-list.
>
> I have a Service that I expose from a Java class with a "normal" CXF
> ServerFactoryBean with default databinding and co... (I attached the WSDL
> generated by CXF).
> The only method in my class is
> public String[][] TestJob() throws Exception
>
> I now access this service in a JUnit test with a DynamicClientFactory. But
> the result of client.invoke("TestJob") is actually a
> net.java.dev.jaxb.array.StringArray[]  whereas I wish to have a String[][].
>
> I imagine that there is a way to get the String[][] I expect, and I also
> imagine (according to the wsdl that contains the StringArray type
> definition) that such a customization may occur at server side, but I did
> not succeed to find how to specify it.
>
> Does anyone have a clue to help me?
>
> Regards,
> Mickael
>

Reply via email to