<unlurk>
Ello sir, all.. long time no see. not sure what you mean by deserialize
yourself? the following fragment just makes a call and all the black
magic of encoding and decoding is taken care of by the stub
SRWPort srw_port = new SRWSoapBindingStub(url,
new org.apache.axis.client.Service());
SearchRetrieveRequestType req = new SearchRetrieveRequestType();
req.setQuery("dc.title=splot");
req.setVersion("1.1");
req.setRecordSchema("lom");
req.setRecordPacking("xml");
req.setStartRecord(new org.apache.axis.types.PositiveInteger("1"));
req.setMaximumRecords(new
org.apache.axis.types.NonNegativeInteger("10"));
// Do It!
SearchRetrieveResponseType resp = srw_port.searchRetrieveOperation(req);
and the resp comes back as a java type all nicely unpacked for you. Are
you doing something a little more funky intercepting the xml streams or
is this pretty much what you're after? This chunk of code is ripped (and
edited for inclusion) from a working app, so pretty sure the axis
generated stubs work ok.
Actually. since resending this (the list bounced my first attempt for
some reason) I popped up a small java SRW unit test that just compiles
the stubs using a maven ant task then explains and searches loc... just
to prove it does work ;) code here:
http://developer.k-int.com/svn/jzkit2/jzkit2_samples/simple_srw
Hope you're all well,
Ian.
--
-------------------------------------
Ian Ibbotson ([log in to unmask])
Director, Knowledge Integration Ltd
35 Paradise Street, Sheffield S3 8PZ
+44 870 803 4661 www.k-int.com
-------------------------------------
|