[jbossws-issues] [JBoss JIRA] Created: (JBWS-1459) Java to WSDL - Incorrect handling of arrays with bare parameter style

Darran Lofthouse (JIRA) jira-events at jboss.com
Mon Jan 15 12:53:02 EST 2007


Java to WSDL - Incorrect handling of arrays with bare parameter style
---------------------------------------------------------------------

                 Key: JBWS-1459
                 URL: http://jira.jboss.com/jira/browse/JBWS-1459
             Project: JBoss Web Services
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: wstools
    Affects Versions: jbossws-1.2.0.CR2
            Reporter: Darran Lofthouse
         Assigned To: Darran Lofthouse
             Fix For: jbossws-1.2.1


Java to WSDL - Incorrect handling of arrays with bare parameter style

The following method on a SEI: -

    public String[] lookup(final String[] person) throws RemoteException;

The following type is generated in the WSDL: -

   <complexType name='String.Array'>
    <sequence>
     <element maxOccurs='unbounded' minOccurs='0' name='value' nillable='true' type='string'/>
    </sequence>
   </complexType>

This type is not mapped in the generated JAX-RPC mapping so the following error is reported on deployment: -

Caused by: org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://www.jboss.org/support/phonebook/types}String.Array
        at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.processDocElement(JAXRPCMetaDataBuilder.java:613)
        at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildParameterMetaDataDoc(JAXRPCMetaDataBuilder.java:865)
        at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.setupOperationsFromWSDL(JAXRPCMetaDataBuilder.java:214)
        at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCServerMetaDataBuilder.buildMetaData(JAXRPCServerMetaDataBuilder.java:219)
        at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:81)
        at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127)
        at org.jboss.ws.integration.jboss42.DeployerInterceptorJSE.createServiceEndpoint(DeployerInterceptorJSE.java:130)
        at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list