Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 30858 invoked from network); 6 Mar 2007 09:13:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2007 09:13:35 -0000 Received: (qmail 14690 invoked by uid 500); 6 Mar 2007 09:13:43 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 14678 invoked by uid 500); 6 Mar 2007 09:13:43 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 14667 invoked by uid 99); 6 Mar 2007 09:13:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2007 01:13:43 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jayawark@gmail.com designates 64.233.162.225 as permitted sender) Received: from [64.233.162.225] (HELO nz-out-0506.google.com) (64.233.162.225) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2007 01:13:33 -0800 Received: by nz-out-0506.google.com with SMTP id m7so1781910nzf for ; Tue, 06 Mar 2007 01:13:13 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=L+9MdyDFogOKCyPRBgdUvtT9G4d/ZLTvoH7SaUdry1Xd2lYDc4XjDABCtAe8ZJXfys1CSoMiqvJ5I1EnSTpugA7C3oSF5/qqKO+X2D9Wz7gZQW+7hceM1zxU0UTek3Xl/RAvK17Lc/Zx4msh3w+IwUfQXLZjIPk7gQYhWnlE320= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=O6X+ZwdeNXZtRHVN+8KuUvZ2FdgnMySuzBGwuEp7UZhGAV7ES74DgvoZ0uZ+SuIdq1YPJepMNJnlWxkdPeHHWz1HEUYo28vpjcuv+SejPrSb9pSe66j39Jnu7vd/rShR539OPgOMnSanALJMtQf1PE7TFmdb/jxPN7TNbH9QuB4= Received: by 10.64.180.20 with SMTP id c20mr11736057qbf.1173172392608; Tue, 06 Mar 2007 01:13:12 -0800 (PST) Received: by 10.64.251.1 with HTTP; Tue, 6 Mar 2007 01:13:12 -0800 (PST) Message-ID: <5e8118f30703060113w6025dc5foae12318b1d97ce2b@mail.gmail.com> Date: Tue, 6 Mar 2007 14:43:12 +0530 From: "Nandika Jayawardana" To: "Apache AXIS C User List" Subject: Re: dll description has invalid state In-Reply-To: <22a059a60703060051n32cb49a8n6300407517bba97@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_101546_16699579.1173172392492" References: <7b2e07fa0703050803v47627948n6b1de21de17b4459@mail.gmail.com> <22a059a60703052041o7a09d3bfy1f42e063619bcd34@mail.gmail.com> <7b2e07fa0703052318j3b66f9dci1a960cb106cfac1c@mail.gmail.com> <22a059a60703060051n32cb49a8n6300407517bba97@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_101546_16699579.1173172392492 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Zoli, AXIS2_EXTERN means whether the function is exported or not from the dll and AXIS2_CALL is the calling convention of the function. On windows AXIS2_CALL is expanded as __stdcall and AXIS2_EXTERN as __declspec(dllexport).You can find more on this by looking at the header file axis2_utils_defines.h. When there is AXIS2_CALL in the function, LoadLibrary() function, which is used to load the dll fails. Regards, Nandika On 3/6/07, Milinda Pathirage wrote: > > hi, > Please try to compile the source after replacing > > AXIS2_EXTERN int AXIS2_CALL > axis2_get_instance(struct axis2_svc_skeleton **inst, > const axis2_env_t *env) > { > ... > } > > AXIS2_EXTERN int AXIS2_CALL > axis2_remove_instance(axis2_svc_skeleton_t *inst, > const axis2_env_t *env) > { > ... > } > > to > > AXIS2_EXTERN int > axis2_get_instance(axis2_svc_skeleton_t **inst, > const axis2_env_t *env) { > ... > } > > > AXIS2_EXTERN int > axis2_remove_instance(axis2_svc_skeleton_t *inst, > const axis2_env_t *env) { > ... > } > > Also it's better if you can use the current Axis2/C trunk. > > Thnaks > Milinda > > > > > On 3/6/07, Zolt=E1n Altfatter wrote: > > > Hi Milinda, > > > > Yes, you're right about that functions, there is something wrong with > > them. > > > > I found out something. In Microsoft Visual Studio I build the project > > like Win32 application, and building this way the sample echo service f= rom > > Axis2/C and dll created is ok, meaning that I can connect to that with = a > > Java client using Axis2/Java. > > > > I tried also this with my generated SayHelloService service. > > But unfortunately has compile errors which I don't understand: > > > > error C2491: 'axis2_get_instance' : definition of dllimport function no= t > > allowed > > error C2491: 'axis2_remove_instance' : definition of dllimport function > > not allowed > > > > The generated axis2_get_instance and axis2_remove_instance functions > > look like the following: > > > > AXIS2_EXTERN int AXIS2_CALL > > axis2_get_instance(struct axis2_svc_skeleton **inst, > > const axis2_env_t *env) > > { > > ... > > } > > > > AXIS2_EXTERN int AXIS2_CALL > > axis2_remove_instance(axis2_svc_skeleton_t *inst, > > const axis2_env_t *env) > > { > > ... > > } > > > > I don't understand the AXIS2_EXTERN and AXIS2_CALL what are those... > > > > The axis2_get_instance and axis2_remove_instance functions from sample > > echo service from AXIS2/C look different: > > > > AXIS2_EXPORT int > > axis2_get_instance(axis2_svc_skeleton_t **inst, > > const axis2_env_t *env) { > > ... > > } > > > > > > AXIS2_EXPORT int > > axis2_remove_instance(axis2_svc_skeleton_t *inst, > > const axis2_env_t *env) { > > ... > > } > > > > I've attached the generated files to this mail. > > > > Could you check them? > > Thank you. > > > > Zoli > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > > > > > > -- > milinda@wso2.com > WSO2, Inc: http://www.wso2.com "Oxygenating the Web Service Platform" > http://www.milindalakmal.wordpress.com > --=20 nandika@wso2.com WSO2 INC www.wso2.com ------=_Part_101546_16699579.1173172392492 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Zoli,

AXIS2_EXTERN= means whether the function is exported or not from the dll and AXIS2_CALL = is the calling convention of the function. On windows AXIS2_CALL is expande= d as __stdcall and AXIS2_EXTERN as __declspec(dllexport).You can find more = on this by looking at the header file axis2_utils_defines.h.
   When there is AXIS2_CALL in the function, LoadLibrary() fu= nction, which is used to load the dll fails.

Regards,
Nandika
=



On 3/6/07, Milinda Pathirage <mi= linda.pathirage@gmail.com> wrote:
hi,
Please try to compile the source after replacing <= br>
AXIS2_EXTERN int AXIS2_CALL
    axis2_get_instance(struct axis2_svc_skeleton *= *inst,
           &nbs= p;            &= nbsp;   const axis2_env_t *env)
    {          ...
  =   }

AXIS2_EXTERN int AXIS2_CALL
    axis2_remove_instance(axis2_svc_skeleton_t *inst,
            = ;            &n= bsp;   const axis2_env_t *env)
    {
=       ...
    }

to=

AXIS2_EXTERN int
axis2_get_instance(axis2_svc
_skeleton_t **inst,
     &= nbsp;  const axis2_env_t *env) {
...
}


AXIS2_EXTERN int
axis2_remove_instance(axis2_svc_skeleton_t *inst,
        const a= xis2_env_t *env) {
= ...
}

Also it's better if you can use the current A= xis2/C trunk.
<= /span>
Thnaks
Milinda




On 3/6= /07,=20 Zolt=E1n Altfatter <altfatterz@gmail.com> w= rote:
Hi Milinda,

Yes, you're right about that functions, there is something wron= g with them.

I found out something. In Microsoft Visual Studio I bui= ld the project like Win32 application, and building this way the sample ech= o service from Axis2/C and dll created is ok, meaning that I can connect to= that with a Java client using Axis2/Java.

I tried also this with my generated SayHelloService service.
But= unfortunately has compile errors which I don't understand:

erro= r C2491: 'axis2_get_instance' : definition of dllimport function no= t allowed
error C2491: 'axis2_remove_instance' : definition of dllimport = function not allowed

The generated axis2_get_instance and axis2_remo= ve_instance functions look like the following:

AXIS2_EXTERN int AXI= S2_CALL
    axis2_get_instance(struct axis2_svc_skeleton *= *inst,
           &nbs= p;            &= nbsp;   const axis2_env_t *env)
    {          ...
  =   }

AXIS2_EXTERN int AXIS2_CALL
    axis2_remove_instance(axis2_svc_skeleton_t *inst,
            = ;            &n= bsp;   const axis2_env_t *env)
    {
=       ...
    }

I don'= ;t understand the AXIS2_EXTERN and AXIS2_CALL what are those...

The = axis2_get_instance and axis2_remove_instance functions from sample echo ser= vice from AXIS2/C look different:

AXIS2_EXPORT int
axis2_get_instance(axis2_svc_skeleton_t **inst,=
        const axis2_env_t *env) {...
}


AXIS2_EXPORT int
axis2_remove_instance(axis2_= svc_skeleton_t *inst,
        const axis2_env_t *en= v) {
...
}

I've attached the generated files to this mail.
=
Could you check them?
Thank you.

Zoli

----------------------------------------------------------= -----------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org




--
milinda@ws= o2.com
WSO2, Inc: http://www.wso2.com "Oxygenating the Web Service Platform" http://www.milindalakmal.wordpress.com



--
nandika@wso2.com
WSO2 INC www.wso2.com ------=_Part_101546_16699579.1173172392492--