LISTSERV mailing list manager LISTSERV 16.0

Help for ZNG Archives


ZNG Archives

ZNG Archives


[email protected]


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Monospaced Font

LISTSERV Archives

LISTSERV Archives

ZNG Home

ZNG Home

ZNG  April 2004

ZNG April 2004

Subject:

Re: Cold Fusion and Web Services

From:

"Matthew J. Dovey" <[log in to unmask]>

Reply-To:

Z39.50 Next-Generation Initiative

Date:

Mon, 5 Apr 2004 11:50:38 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (284 lines)

Odd, as far as I can tell, the WSDL you have is correct, and clearly
gives port 7090, which makes me suspect a problem with ColdFusion. I
don't have CF, so can't do much testing of this myself.

Matthew

> -----Original Message-----
> From: Z39.50 Next-Generation Initiative [mailto:[log in to unmask]]
> On Behalf Of Alan Darnell
> Sent: 02 April 2004 22:50
> To: [log in to unmask]
> Subject: Re: Cold Fusion and Web Services
>
> Some more progress with the new draft schema and this CF code:
>
> ----
> <cfset args = StructNew()>
> <cfset args.body.query = "water">
> <cfinvoke
>
> webservice="http://linkdev.library.utoronto.ca/alan/srw-sample
> -service.wsdl"
> method="searchRetrieveOperation"
> argumentCollection="#args#"
> >
> ----
>
> But I'm now seeing this error:
>
> Could not perform web service invocation "searchRetrieveOperation"
> because AxisFault faultCode: {http://xml.apache.org/axis/}HTTP
> faultSubcode: faultString:
> (404)Not Found faultActor:
> faultNode: faultDetail: {}string: return code: 404
> &lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML
> 2.0//EN&quot;&gt; &lt;HTML&gt;&lt;HEAD&gt; &lt;TITLE&gt;404
> Not Found&lt;/TITLE&gt; &lt;/HEAD&gt;&lt;BODY&gt;
> &lt;H1&gt;Not Found&lt;/H1&gt; The requested URL /voyager was
> not found on this server.&lt;P&gt; &lt;HR&gt;
> &lt;ADDRESS&gt;Web Server at z3950.loc.gov Port
> 80&lt;/ADDRESS&gt; &lt;/BODY&gt;&lt;/HTML&gt;
>
> I know that the service resides on port 7090 of z3950.loc.gov
> and have used that in the WSDL file, but something seems to
> be forcing it to port 80:
>
> <?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="http://samantha.oucs.ox.ac.uk:8080/srw1-1/srw-bindin
> gs.wsdl"/>
> <service name="SRWSampleService">
> <port name="SRW" binding="srw-bindings:SRW-SoapBinding">
> <soap:address location="http://z3950.loc.gov:7090/voyager?"/>
> </port>
> <port name="ExplainSOAP"
> binding="srw-bindings:Explain-SoapBinding">
> <soap:address location="http://z3950.loc.gov:7090/voyager?"/>
> </port>
> <port name="ExplainHTTPGet"
> binding="srw-bindings:Explain-HTTPGetBinding">
> <http:address location="http://z3950.loc.gov:7090/voyager?"/>
> </port>
> </service>
> </definitions>
>
> Alan
> Matthew J. Dovey wrote:
>
> >Alan,
> >
> >It appears to be a bug in the more recent versions of Axis
> in handling
> >simple XML schema types in global elements!
> >
> >Try using the new draft schemas at
> >http://samanatha.oucs.ox.ac.uk:8080/srw1-1
> >
> >Matthew
> >
> >
> >
> >>-----Original Message-----
> >>From: Z39.50 Next-Generation Initiative
> [mailto:[log in to unmask]] On Behalf
> >>Of Alan Darnell
> >>Sent: 02 April 2004 00:32
> >>To: [log in to unmask]
> >>Subject: Re: Cold Fusion and Web Services
> >>
> >>Matthew,
> >>
> >>I'm using the 27 February version which includes this
> relevant chunk:
> >>
> >> <xsd:element name="term" type="termType" nillable="false"/>
> >> <xsd:complexType name="termType">
> >> <xsd:all>
> >> <xsd:element ref="value"/>
> >> <xsd:element ref="numberOfRecords" minOccurs="0"/>
> >> <xsd:element ref="displayTerm" minOccurs="0"/>
> >> <xsd:element ref="whereInList" minOccurs="0"/>
> >> <xsd:element ref="extraTermData" minOccurs="0"/>
> >> </xsd:all>
> >> </xsd:complexType>
> >> <xsd:element name="value" type="xsd:string" nillable="false"/>
> >> <xsd:element name="displayTerm" type="xsd:string"
> nillable="false"/>
> >> <xsd:element name="whereInList">
> >> <xsd:simpleType>
> >> <xsd:restriction base="xsd:string">
> >> <xsd:enumeration value="first"/>
> >> <xsd:enumeration value="last"/>
> >> <xsd:enumeration value="only"/>
> >> <xsd:enumeration value="inner"/>
> >> </xsd:restriction>
> >> </xsd:simpleType>
> >> </xsd:element>
> >>
> >>Alan
> >>
> >>Matthew J. Dovey wrote:
> >>
> >>
> >>
> >>>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-ser
> vice.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/TermT
> >>>>
> >>>>
> >>ype.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>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
>

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

July 2017
October 2016
July 2016
August 2014
February 2014
December 2013
November 2013
October 2013
February 2013
January 2013
October 2012
August 2012
April 2012
January 2012
October 2011
May 2011
April 2011
November 2010
October 2010
September 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
October 2009
September 2009
August 2009
July 2009
May 2009
April 2009
March 2009
February 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001

ATOM RSS1 RSS2



LISTSERV.LOC.GOV

CataList Email List Search Powered by the LISTSERV Email List Manager