Guilherme Saraiva wrote:
> Hi !
>
> I'm working on a web client based on SRW 2.0 (Search and Retrieve Web
> Service) and i'm having problems importing the wsdl file
> (http://www.loc.gov/standards/sru/xml-files/srw-sample-service.wsdl), on
> this web-site (http://www.loc.gov/standards/sru/xml-files/). I've already
> wrote the code in Java, on Eclipse IDE.
> My point is to access from a web client on .NET to a computer that as a
> DSpace repository installed, with the SRW. On eclipse, while importing the
> wsdl, worked fine ( i used the WSDL2JAVA pluggin on Eclipse).
> On the other computer, with .NET, when i import the wsdl file with the URL
> http://192.168.82.142:8080/SRW/search/DSpace?wsdl, ( the ip, is the ip of
> the other machine) the .NET recognizes well the services available, but
> while writing the code, .NET doesn't recognize any methods or classes of the
> web-service... strange thing, and while importing the wsdl, it points to
> another wsdls and xsd's that make part of the SRW... I've wroted already the
> line code "using DSpace" (name of my web reference) and it doesen't
> recognize anything...
> Could anyone help me ?
> Do i have to change the namespaces of the wsdl ?
>
> Above is the link to the WSDL file.
> Many thanks
> Guilherme Saraiva
>
While I can not help you with your WSDL problems, I'd like to point out
that you might circumvent the problem by using a ZOOM .NET binding.
While constructed for the binary Z39.50 protocol, it will also work for
SRU GET/POST/SOAP (aka SRW), since the undelying YAZ C-lib does the job.
ZOOM: The Z39.50 Object-Orientation Model
http://zoom.z3950.org/
ZOOM .NET binding:
http://sourceforge.net/projects/zoomdotnet/
Details on what you can do with ZOOM C
http://www.indexdata.dk/yaz/doc/zoom.tkl
Another route might be to use the MONO projects WSDL stub code generator
for SRW, which - as far as I remember - does work (can anybody
confirm??). MONO runs on both Windows and Unix like systems.
http://www.mono-project.com/Main_Page
Your's Marc Cromme, Index Data
> __________________________________________________________
> Sabe quanto gasta com a sua ligação à Internet?
> Verifique aqui: http://acesso.portugalmail.pt/contas
>
--
Marc Cromme
M.Sc and Ph.D in Mathematical Modelling and Computation
Senior Developer, Project Manager
Index Data Aps
Købmagergade 43, 2
1150 Copenhagen K.
Denmark
tel: +45 3341 0100
fax: +45 3341 0101
http://www.indexdata.com
INDEX DATA Means Business
for Open Source and Open Standards
|