<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.
Hope you're all well,
Ian.
On Fri, 2007-06-01 at 17:01 -0400, LeVan,Ralph wrote:
> I’m trying to use the Axis WSDL2Java generated SRW data type to
> deserialize an SRW response.
>
>
>
> Has anyone figured out how to do this?
>
>
>
> It looks to me like the SRWSoapBindingStub has created a
> TypeMappingRegistry with all the deserializers we need in it. But I
> cannot figure out how to use that information to deserialize things
> myself.
>
>
>
> Any help would be appreciated!
>
>
>
> Thanks!
>
>
>
> Ralph
>
>
--
-------------------------------------
Ian Ibbotson ([log in to unmask])
Director, Knowledge Integration Ltd
35 Paradise Street, Sheffield S3 8PZ
+44 870 803 4661 www.k-int.com
-------------------------------------
|