-
Feature Request
-
Resolution: Done
-
Critical
-
None
-
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.