Hi,

I'm facing some data binding problems when I try to deploy a JAXWS service 
under servicejars directory. When I try to see the generated WSDL from the list 
of services I obtain an error. The following code is the signature of the 
method I tried to expose as WS but the problem occurs using multiple dimension 
arrays as String[][] as input arguments. I'm generating the artifacts using 
wsgen before to package the service including them on the jar. At the end of 
the message you can find the error message. Any clue? 

Thanks in advance
javier

@WebService(serviceName = "t5", portName = "t5Port", name = "t5")
@SOAPBinding(parameterStyle = WRAPPED, style = DOCUMENT, use = LITERAL)
public class T5 {

    @WebMethod(operationName = "demo")
    @WebResult(name = "demoResult")
    public String demo( @WebParam(name = "strings") String[][] strings) {
...
}

javax.xml.ws.WebServiceException: Error occurred generating WSDL file for Web 
service implementation class {sw.ws.T5}: {java.lang.Exception: Error occurred 
while attempting to read generated schema file 
{org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in 
collection. Namespace: http://jaxb.dev.java.net/array}}
    at 
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:187)
    at 
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:371)
    at 
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:364)
    at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1322)
    at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:146)
    at 
org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
    at 
org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
    at 
org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
    at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
    at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.Exception: Error occurred while attempting to read 
generated schema file {org.apache.ws.commons.schema.XmlSchemaException: Schema 
name conflict in collection. Namespace: http://jaxb.dev.java.net/array}
    at 
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.readInSchema(JAXWSRIWSDLGenerator.java:330)
    at 
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:180)
    ... 10 more



Reply via email to