Print

Print


Alan,

Can you check the date of the srw-types.xsd file you are using. It
should be 27 February. An earlier version had a missing definition for
the whereInList type.

Matthew  

> -----Original Message-----
> From: Z39.50 Next-Generation Initiative [mailto:[log in to unmask]] 
> On Behalf Of Alan Darnell
> Sent: Thursday, April 01, 2004 11:52 PM
> To: [log in to unmask]
> Subject: Cold Fusion and Web Services
> 
> I'm wondering if anyone has any experience using the Web Services
> support in Cold Fusion MX against and SRW Web Service.  The 
> WSDL file I
> point to is based on "srw-sample-service.wsdl", where I've used
> "http://z3950.loc.gov/voyager" as the location attribute for
> "soap:address".  I point to this WSDL file from Cold Fusion using the
> CFINVOKE tag and try to call the method 
> searchRetrieveOperation as follows:
> 
> <cfinvoke
>     
> webservice="http://test.library.utoronto.ca/srw-sample-service.wsdl"
>     method="searchRetrieveOperation"
>     returnVariable="myrecords">
>     <cfinvokeargument name="version" value="1.1">
>     <cfinvokeargument name="query" value="water">
> </cfinvoke>
> 
> 
> All the dependent WSDL files are included but Cold Fusion stops with
> this error:
> 
> 17:38:17.017 - Application Exception - in 
> D:\web-dir\lc_search.cfm : line 6
>         []coldfusion.jsp.CompilationFailedException: Errors 
> reported by
> Java compiler:
> Found 1 semantic error compiling
> "C:/CFusionMX/stubs/WS-2014337397/gov/loc/www/zing/srw/TermType.java":
> 
>     44.     public gov.loc.www.zing.srw._whereInListType0 
> getWhereInList() {
>                                         <--------------->
> *** Error: Type gov/loc/www/zing/srw/_whereInListType0 was not found.
> .
> Any help would be appreciated.
> 
> Alan
> 
> ---
> 
> Alan Darnell
> University of Toronto
> P: 416 946 7706
> 
> 
> ----
> WSDL file
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- ZiNG SRU/SRW WSDL Specification                   -->
> <!-- Version 1.1                                       -->
> <!-- 17 Feb 2004                                       -->
> 
> <definitions
> xmlns:srw-bindings="http://www.loc.gov/zing/srw/srw-bindings/"
> xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> targetNamespace="http://www.loc.gov/zing/srw/srw-sample-service/"
> name="SRW">
>   <import namespace="http://www.loc.gov/zing/srw/srw-bindings/"
> location="srw-bindings.wsdl"/>
>   <service name="SRW">
>     <port name="SRW" binding="srw-bindings:SRW-SoapBinding">
>         <soap:address location="http://z3950.loc.gov/voyager"/>
>     </port>
>     <port name="ExplainSOAP" 
> binding="srw-bindings:Explain-SoapBinding">
>         <soap:address location="http://z3950.loc.gov/voyager"/>
>     </port>
>     <port name="ExplainHTTPGet"
> binding="srw-bindings:Explain-HTTPGetBinding">
>         <http:address location="http://z3950.loc.gov/voyager"/>
>     </port>
>   </service>
> </definitions>
>