Hi,
you need to set preprosessor directive AXIS2_DECLARE_EXPORT in your project.
Regards
Nandika
On 3/9/07, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
Hi,
Trying to create a simple web service with Axis2c and trying to deploy
in IIS, steps followed and getting the error attached.
Can any one suggest how to get rid of the errors?
1. Created a new solution in VC++7.0
2. Created New Project for LL
3 Generated skeleton files with the option
With classpath + "jar org.apache.axis2.wsdl.WSDL2C -D
org.apache.adb.properties=org/apache/axis2/schema/c-schema-compile.properties-uri
myecho.wsdl -o genfiles -a -l c -d adb -ss -sd –u "
4. It generated the following files:
axis2_skel_myecho.c
axis2_skel_myecho.h
axis2_svc_skel_myecho.c and service.xml and
in src folder the following files were generated: axis2_echoString.c
axis2_echoString.h
axis2_echoStringResponse.c
axis2_echoStringResponse.h
5. Done my code in axis2_skel_myecho.c file.
6. Added the Include Path and library path with Axis2C Include and Lib
Compiled the above setup: Getting the following error
"\src\axis2_echoString.c(29): error C2491: 'axis2_echoString_create' :
definition of dllimport function not allowed
\src\axis2_echoStringResponse.c (30): error C2491:
'axis2_echoStringResponse_create' : definition of dllimport function not
allowed
\axis2_svc_skel_myecho.c (197): error C2491: 'axis2_get_instance':
definition of dllimport function not allowed
\axis2_svc_skel_myecho.c (211): error C2491: 'axis2_remove_instance' :
definition of dllimport function not allowed"
-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.
--
[EMAIL PROTECTED]
WSO2 INC www.wso2.com