List Info

Thread: i'm working on implementing External Object to ILL_Request extension field.




i'm working on implementing External Object to ILL_Request extension field.
user name
2006-08-07 01:33:36
 
this is first time ;sending article to mailing list and i'm not good at representing my intention. cause i'm not good at english.
if there is anyone to experience with similar problem please give an advice for me. thanks
 ;
 ;
[ Dev. Environment ]
O/S : Windows XP (Dev.)
YAZ : 2.1.8
ILL : ASN.1 Compiler Used
 ;
first of all. we're using YAZ Toolkit for ILL (Inter Library Loan)
so we compiled some more sources which is made from YAZ ASN.1 Compiler. [ that is to say, codes related with ILL ]
 ;
i'm implementing backend server for ISO ILL APDU transferring and modifying or adding some sources with front-end server. [ yaz-client ]
now normal parameters for ILL_Request were already implemented and i tested. it was successfully sent and received using 'yaz-client' and 'ztest'
 ;
but there are some problems with applying External Object with ILL_Request.extension.
 ;
 ;
we need two external objects "APDU-Delivery-Info" and "Prompt-1" for exchanging APDU between other ISO ILL Institutions.
and i implemented like this but...

[ill_get_ILLRequest]
..
 r->num_iLL_request_extensions = 2; // APDU-Delivery-Info [0], Prompt-1 [1]
 r->iLL_request_extensions = (ILL_Extension **) ill_get_Extensions(gc, element, "ill-request-extensions");
..

[ill_get_Extensions]
ILL_Extension *ill_get_Extensions (
struct ill_get_ctl *gc, const char *name, const char *sub)
{
 ODR o = gc->odr;
 ILL_APDU_Extension *r =
  (ILL_APDU_Extension *) odr_malloc(o, sizeof(*r));
 
 ILL_Extension *p1 =
  (ILL_Extension *) odr_malloc(o, sizeof(*p1));
 
 ILL_Extension *p2 =
  (ILL_Extension *) odr_malloc(o, sizeof(*p2));
 
 char element[128];
 
 strcpy(element, name);
 if (sub)
 {
  strcat (element, ",");
  strcat (element, sub);
 }
 
 r->;apdu_delivery_info = ill_get_APDU_Delivery_Info(gc, element, "identifier");
 r->prompt_one = ill_get_Prompt_One(gc, element, "prompt-1");
 
 return (ILL_Extension *) r;
}

 
we can encode this APDU and send to ztest successfully,
 
but ztest ;got an error while processing odr_sequence_begin method [item-req.c]
anyway there is some problems with implementing extension i think.
 
is there anyone has experience with this kind of problems or idea with this.
 
Thanks
 
 
p.s ) Ref. Site
 
***********************************************************
FutureWin R & D Center / Chief Engineer
Park, Su-Hyuk
809, ACE Techno Tower II, 197-7 Guro-dong, Guro-gu, Seoul
152-755, Korea

E-mail : keris.or.kr href="mailto:parkshfuturewin.co.kr">parkshfuturewin.co.kr
Hompage : www.futurewin.co.kr
daum blog ;: blog.daum.net/psyoblade
egloos
blog : psyoblade.egloos.com
***********************************************************
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )