From: David F. <fre...@gm...> - 2008-03-31 02:19:16
|
Pointed to the SOAPSERVER tool by Adam to resolve my issues with SOAP and eXist, I downloaded the files as they were not in my original eXist distribution (project.version=1.2.0 project.build=20080115). However, something still needs to be sorted out to get this to work as the generated wsdl is rejected as invalid by both SOAP-UI and Intalio when I try to use it. I followed the instructions in the tools/soapserver/readme.txt and tested with the supplied stored query 'echo' accessed through the browser at http://localhost:8080/exist/rest/db/home/echo.xqws (looking for the echo xquery module in the home collection). This responded as expected with a description of the operations available. http://localhost:8080/exist/rest/db/home/echo.xqws?WSDL responds with a WSDL, again as expected. To test the execution of the Xquery through soap and SOAPSERVER, I used SOAP-UI (v 2.0.2) and created a new project and added the WSDL by supplying the URL above. This resulted in a 'Failure to Load' message box. Mon Mar 31 14:27:49 NZDT 2008:DEBUG:Getting wsdl component from [http://localhost:8080/exist/rest/db/home/echo.xqws?WSDL] Mon Mar 31 14:27:52 NZDT 2008:INFO:Initializing SSL Mon Mar 31 14:27:52 NZDT 2008:DEBUG:Loading definition from cache Mon Mar 31 14:27:52 NZDT 2008:DEBUG:Returning baseInputSource [http://localhost:8080/exist/rest/db/home/echo.xqws?WSDL] Mon Mar 31 14:27:52 NZDT 2008:DEBUG:Loaded definition: ok Mon Mar 31 14:27:52 NZDT 2008:INFO:Loading schema types from [http://localhost:8080/exist/rest/db/home/echo.xqws?WSDL] Mon Mar 31 14:27:52 NZDT 2008:INFO:Getting schema http://localhost:8080/exist/rest/db/home/echo.xqws?WSDL Mon Mar 31 14:27:52 NZDT 2008:ERROR:An error occured [Invalid QName value: Localname not a valid NCName in 'node()'], see error log for details Mon Mar 31 14:27:52 NZDT 2008:ERROR:An error occured [com.eviware.soapui.impl.wsdl.support.xsd.SchemaException], see error log for details Mon Mar 31 14:27:52 NZDT 2008:ERROR:Loading of definition failed for [http://localhost:8080/exist/rest/db/home/echo.xqws?WSDL]; com.eviware.soapui.impl.wsdl.support.xsd.SchemaException: Error loading schema types Mon Mar 31 14:27:52 NZDT 2008:ERROR:An error occured [Error loading schema types], see error log for details Mon Mar 31 14:27:52 NZDT 2008:ERROR:Error loading schema types from http://localhost:8080/exist/rest/db/home/echo.xqws?WSDL, see log for details The SOAP-UI error log provided the same basic information with a stackdump Mon Mar 31 14:27:52 NZDT 2008:ERROR:org.apache.xmlbeans.XmlException: Invalid QName value: Localname not a valid NCName in 'node()' The generated wsdl includes the following which appears to be the source of the error... <xs:element name="echoNode"> −<xs:complexType> −<xs:sequence> <xs:element type="node()" name="arg1"/> </xs:sequence> </xs:complexType> </xs:element> −<xs:complexType name="echoNodeResponseType"> −<xs:sequence> <xs:element type="node()" name="echoNodeResult"/> </xs:sequence> </xs:complexType> <xs:element type="tns:echoNodeResponseType" name="echoNodeResponse"/> Clues??? -- David French |