> Person is trying to access server (via SRW) from Cold Fusion . . .
>
> "which has support for accessing Web Services through a tag
> called CFINVOKE. The tag takes as an attribute the URL
> pointing to the WSDL file for the service, the name of the
> method to invoke, and any parameters to pass to this method.
> For some other Web services I've used, the WSDL file is
> generated dynamically by the host that also accepts the
> remote method call. That's not the case here, and so I'm
> having trouble getting things working. Here's an example for Google.
>
> <cfinvoke
> webservice="http://api.google.com/GoogleSearch.wsdl"
> method="doGoogleSearch"
> returnvariable="aGoogleSearchResult">
> <cfinvokeargument name="q" value="water"/>
> <cfinvokeargument name="ie" value="UTF-8"/>
> <cfinvokeargument name="oe" value="UTF-8"/> </cfinvoke>
>
> I'm not exactly sure what a corresponding tag should look
> like for SRW, but have tried this and it failed:
>
> <cfinvoke
>
> webservice="http://www.loc.gov/z3950/agency/zing/srw/srw-bindi
> ngs.wsdl"
> method="searchRetrieveOperation"
> returnVariable="myrecords">
> <cfinvokeargument name="version" value="1.1"/>
> <cfinvokeargument name="query" value="water"/> </cfinvoke>"
>
Srw-bindings.wsdl doesn't actually include an endpoint for a specific
SRW instance (i.e where to send the SRW request). There should be a file
like the sample at
http://www.loc.gov/z3950/agency/zing/srw/srw-sample-service.wsdl for the
specific service. I don't have Cold Fusion to test, but I suspect that
this is the problem.
Matthew
P.S. Apologies for the silence on the wsdl schema corrections, I've been
off ill the last week.
|