Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 77133 invoked from network); 12 Mar 2007 09:20:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2007 09:20:21 -0000 Received: (qmail 13025 invoked by uid 500); 12 Mar 2007 09:20:28 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 12948 invoked by uid 500); 12 Mar 2007 09:20:27 -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 12912 invoked by uid 99); 12 Mar 2007 09:20:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 02:20:27 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [203.99.192.104] (HELO CTSINTCOSXIA.cts.com) (203.99.192.104) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 02:20:14 -0700 Received: from ctsinchnsxuk.cts.com ([10.237.100.22]) by mail3.cognizant.com with InterScan Message Security Suite; Mon, 12 Mar 2007 14:49:48 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C76487.944BC7CB" Subject: how to get rid of linker error- following the steps in "Writing Web Services Skeleton Using Code Generator" topic in Axis 2c User guide. Date: Mon, 12 Mar 2007 14:49:47 +0530 Message-ID: <1CD6F28228FC07408856475765D3D425F9D68A@ctsinchnsxuk.cts.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: how to get rid of linker error- following the steps in "Writing Web Services Skeleton Using Code Generator" topic in Axis 2c User guide. Thread-Index: Acdkh5Q070L+a2ZRSaGBqVNsmR7l5g== From: To: , , X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C76487.944BC7CB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 =20 Can any one tell how to write web service using generated files?=20 The steps I have followed to create a web services using Axis2c are=20 =20 =20 Generated files using the wsdl and it has operation with a request string type and response a string type =20 Wsdl name as "myecho" with "echoString" as operation =20 =20 <--class path details> org.apache.axis2.wsdl.WSDL2C -D org.apache.adb.properties=3Dorg/apache/axis2/schema/c-schema-compile.prope rties -uri myecho.wsdl -o genfiles -a -l c -d adb -ss -sd -u =20 Generated files axis2_skel_myecho.h axis2_skel_myecho.c axis2_svc_skel_myecho.c =20 And in src folder the files are axis2_echoString.h axis2_echoStringResponse.h axis2_echoString.c] =20 axis2_echoStringResponse.c and a service.xml file =20 =20 =20 I have return my code as follows in the function "axis2_echoStringResponse_t* axis2_skel_myecho_echoString (const axis2_env_t *env , axis2_echoString_t* echoString )" of file "axis2_skel_myecho.c " { axis2_echoString_t* echo_in =3D echoString; axis2_echoStringResponse_t* echo_out =3D NULL; =20 char* echo_string =3D NULL; =20 /* retrieve the string input */ echo_string =3D AXIS2_ECHOSTRING_GET_PARAM0 ( echo_in, env ); =20 /* create the response and set the output string */ echo_out =3D axis2_echoStringResponse_create ( env ); AXIS2_ECHOSTRUCTRESPONSE_SET_RETURN ( echo_out, env, echo_string ); =20 return echo_out; } =20 =20 Compiled it compiled but gives linker error related to generated functions. Linking... Creating library C:\Axis2cdll\myecho\Debug\myecho.lib and object C:\Axis2cdll\myecho\Debug\myecho.exp axis2_skel_myecho.obj : error LNK2019: unresolved external symbol _AXIS2_ECHOSTRUCTRESPONSE_SET_RETURN referenced in function _axis2_skel_myecho_echoString axis2_skel_myecho.obj : error LNK2019: unresolved external symbol _AXIS2_ECHOSTRING_GET_PARAM0 referenced in function _axis2_skel_myecho_echoString C:\Axis2cdll\myecho\Debug\myecho.dll : fatal error LNK1120: 2 unresolved externals =20 =20 =20 =20 I think axis2c user guide is incomplete.=20 It is not clear whether to use WSDL2C or WSDL2Code to generate C code. The naming convention used in the generated=20 Files are not clear.=20 "Writing Web Services Skeleton Using Code Generator" from user gide, topic is not clear to follow. =20 =20 =20 -Viji. This e-mail and any files transmitted with it are for the sole use of the= intended recipient(s) and may contain confidential and privileged= information. If you are not the intended recipient, please contact the sender by reply= e-mail and destroy all copies of the original message.=20 Any unauthorized review, use, disclosure, dissemination, forwarding,= printing or copying of this email or any action taken in reliance on this= e-mail is strictly=20 prohibited and may be unlawful. ------_=_NextPart_001_01C76487.944BC7CB Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

 

Can any one tell how to write web service using= generated files?

The steps I have followed to create a web services using Axis2c are

 

 

Generated files using the wsdl and it has operation with= a request string type and response a string type =

Wsdl name as “myecho” with= “echoString” as operation

 

 

ßclass path details>= org.apache.axis2.wsdl.WSDL2C -D org.apache.adb.properties= =3Dorg/apache/axis2/schema/c-schema-compile.properties -uri myecho.wsdl -o genfiles -a -l c -d adb -ss -sd= -u

 

Generated files= axis2_skel_myecho.h

         &n= bsp;            = ;  axis2_skel_myecho.c

         &n= bsp;            = ;  axis2_svc_skel_myecho.c

 

And in src folder the files are=       axis2_echoString.h

      = ;            &n= bsp;               &nb= sp; axis2_echoStringResponse.h

      =     =            =             &n= bsp;          = axis2_echoString.c]

         &n= bsp; =            =                       &nb= sp; axis2_echoStringResponse.c

and a= service.xml file     

 

 

I have return my code  as follows in the function “axis2_echoStringResponse_t* axis2_skel_myecho_echoString (const axis2_env_t *env  ,

                       &nb= sp;            =           axis2_echoStrin= g_t* echoString )”        &= nbsp; =20 of file “axis2_skel_myecho.c ”

         &n= bsp;            = ;             {

axis2_echoString_t* echo_in =3D= echoString;

           &n= bsp;       axis2_echoStringResponse_t* echo_out =3D NULL;

 

           &n= bsp;       char* echo_string =3D= NULL;

           &n= bsp;       

           &n= bsp;       /* retrieve the string input= */

           &n= bsp;       echo_string =3D AXIS2_ECHOSTRING_GET_PARAM0 ( echo_in, env );

 

           &n= bsp;       /* create the response and set= the output string */

           &n= bsp;       echo_out =3D axis2_echoStringResponse_create ( env );

           &n= bsp;       AXIS2_ECHOSTRUCTRESPONSE_SET_RETURN ( echo_out, env, echo_string );

 

           &n= bsp;       return= echo_out;

           &n= bsp;    }

           &n= bsp;            = ;           =

 

 Compiled it compiled but gives linker error= related to generated functions.

Linking...

   Creating= library C:\Axis2cdll\myecho\Debug\myecho.lib and object C:\Axis2cdll\myecho\Debug\myecho.exp

axis2_skel_myecho.obj := error LNK2019: unresolved external symbol _AXIS2_ECHOSTRUCTRESPONSE_SET_RETURN referenced in function= _axis2_skel_myecho_echoString

axis2_skel_myecho.obj := error LNK2019: unresolved external symbol _AXIS2_ECHOSTRING_GET_PARAM0 referenced= in function _axis2_skel_myecho_echoString

C:\Axis2cdll\myecho\Debug\myecho.dll : fatal= error LNK1120: 2 unresolved externals

 

 

 

 

I think axis2c user guide is incomplete.=

It is not clear whether to use WSDL2C or WSDL2Code to generate C code. The naming convention used in the generated=

Files are not clear.

"Writing Web Services Skeleton Using Code Generator” from user gide, topic is not clear to= follow.

 

 

 

-Viji.

This e-mail and any= files transmitted with it are for the sole use of the intended= recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply= e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding,= printing or copying of this email or any action taken in reliance on this= e-mail is strictly
prohibited and may be unlawful.
------_=_NextPart_001_01C76487.944BC7CB--