Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-374

Support anonymous types in jaxrpc-mapping.xml

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Critical Critical
    • jbossws-1.0Beta
    • None
    • jbossws-native
    • None

      tdiesler@TDDELL /cygdrive/d/projects/jboss-head/webservice/test
      $ ant -Dtest=org.jboss.test.ws.samples.stockquote.StockQuoteTestCase one-test

      java.lang.IllegalStateException: Cannot obtain xmlType for element:

      {http://example.com/stockquote/schemas}

      GetLastTradePrice
      at org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationInput.getXMLType(WSDLInterfaceOperationInput.java:95)
      at org.jboss.ws.metadata.AbstractMetaDataBuilder.buildParameterMetaDataDoc(AbstractMetaDataBuilder.java:519)
      at org.jboss.ws.metadata.AbstractMetaDataBuilder.setupOperationsFromWSDL(AbstractMetaDataBuilder.java:369)
      at org.jboss.ws.metadata.JSR109MetaDataBuilder.buildMetaData(JSR109MetaDataBuilder.java:170)

      Adding debug of the WSDLTypes containes xsModel gives

      2005-08-24 12:45:57,095 INFO [STDOUT] [Fatal Error] :-1:-1: Premature end of file.
      2005-08-24 12:45:57,095 ERROR [org.jboss.util.xml.DOMUtils] Cannot parse:
      2005-08-24 12:45:57,095 ERROR [org.jboss.ws.metadata.wsdl.WSDLTypes] Cannot parse xsModelString:
      java.io.IOException: org.xml.sax.SAXParseException: Premature end of file.
      at org.jboss.util.xml.DOMUtils.parse(DOMUtils.java:105)
      at org.jboss.util.xml.DOMUtils.parse(DOMUtils.java:84)
      at org.jboss.ws.metadata.wsdl.WSDLTypes.getXMLType(WSDLTypes.java:86)
      at org.jboss.ws.metadata.wsdl.WSDLInterfaceOperationInput.getXMLType(WSDLInterfaceOperationInput.java:77)
      at org.jboss.ws.metadata.AbstractMetaDataBuilder.buildParameterMetaDataDoc(AbstractMetaDataBuilder.java:519)
      at org.jboss.ws.metadata.AbstractMetaDataBuilder.setupOperationsFromWSDL(AbstractMetaDataBuilder.java:369)
      at org.jboss.ws.metadata.JSR109MetaDataBuilder.buildMetaData(JSR109MetaDataBuilder.java:170)

      This suggests that the xsModel is invalid.

              jgreene@redhat.com Jason Greene
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: