From: Graham B. <gb...@po...> - 2002-07-11 13:09:19
|
On Sat, Jul 06, 2002 at 01:28:17AM -0700, Murugan K G wrote: > Hi > Thanks for your help in advance. > I want to know , whether i am doing something > wrong in my code or any other problem. > > please refer the following response value > > responseValue ::= > SEQUENCE of SEQUENCE { > name OCTET STRING > SEQUENCE of ATTRIBUTES > } > where > ATTRIBUTES:: OCTET STRING > > But when i am decoding the above response value , i > had given like this. > ............. > $asn->prepare(q< > name OCTET STRING, > attributeList SEQUENCE OF OCTET STRING > >); > my $res=$asn->decode($response->response); You seem to have forgotten the outer SEQUENCE OF SEQUENCE > But i am always getting $res as undefined value as a > result. Whenever youhave a deode problem it is always worth a look at the result of asn_dump($data), which can be imported from Convert::ASN1 Graham. > But the server is returning the correct result. Is it > a problem in the decoding module or something. But > other than this response structure, i am getting all > the values properly without any problem like SEQUENCE > OF OCTET STRING,SEQUENCE OF INTEGER. etc > > Any HELP. > > Regards > K.Murugan > > > > __________________________________________________ > Do You Yahoo!? > Sign up for SBC Yahoo! Dial - First Month Free > http://sbc.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Got root? We do. > http://thinkgeek.com/sf |