The cd parameter for a string has to have a declaration of *c and requires a
string list.
'........... *c .....' cd .....;(,'2');....
----- Original Message -----
From: "Yuvaraj Athur Raghuvir" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Monday, August 20, 2007 9:30 PM
Subject: Re: [Jprogramming] Re: Web Service Client?
Hello,
I am struggling on a strange problem...."to pass an integer as a string
from
J so that it is interpreted as an integer in the dll"
1) There is a parameter expected by the web server that has to be integer
2) The wrapper dll (axiom.dll in this case) has a method that takes
strings
only.
3) When I pass the integer as a string from J(for example '2'), I get a
cder
that says that the parameter is not right (error 6 2 in this case).
Now, how do I pass an integer as a string to the C dll such that it is
interpreted as a integer in the receiving environment correctly?
Regards,
Yuva
On 8/13/07, bill lam <[EMAIL PROTECTED]> wrote:
>
> Hello Yuvaraj,
>
> I set up the repository at c:\axis2c and look into the original
> yahoo.csources.
> I found that you translated the following 3 lines incorrectly, they
> should be
>
> re=: element_create e;0;'yahoo_rest_search';0;(iad 'rn')
> ae=: element_create e;rn;'appid';0;(iad 'an')
> ....
> qe=: element_create e;rn;'query';0;(iad 'qn')
>
> having changing them, I managed to execute the line without problem.
> retn=: svc_client_send_receive c;e;rn
>
> please kindly complete the example and post here for our reference.
>
>
> PS. relevant definitions for the verb 'iad' in dll.ijs are as follows:
>
> symget=: 15!:6
>
> symdat=: 3 : 0 NB. symdat symget <'name'
> had=. {.memr y,(IF64{4 8),1,JPTR
> had+{.memr had,0,1,JPTR
> )
>
> iad=: [EMAIL PROTECTED]@boxopen
>
> --
> regards,
> bill
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm