以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DTD/XML Schema 』  (http://bbs.xml.org.cn/list.asp?boardid=23)
----  gsoap开发webservice问题,请赐教  (http://bbs.xml.org.cn/dispbbs.asp?boardid=23&rootid=&id=56197)


--  作者:lingjiexie
--  发布时间:11/29/2007 6:05:00 PM

--  gsoap开发webservice问题,请赐教
本人最近在用gsoap开发webservice服务端程序,从网站上下载了gsoap_2.7.9l,安装后Make时报错,错误如下:
bash-2.00$ make     
        make  all-recursive
Making all in soapcpp2
        make  all-recursive
Making all in src
Target "all" is up to date.
Making all in wsdl
        ../../soapcpp2/src/soapcpp2 -SC -pwsdl -I. ./wsdl.h

**  The gSOAP Stub and Skeleton Compiler for C and C++ 2.7.9l
**  Copyright (C) 2000-2007, Robert van Engelen, Genivia Inc.
**  All Rights Reserved. This product is provided "as is", without any warranty.
**  The gSOAP compiler is released under one of the following three licenses:
**  GPL, the gSOAP public license, or the commercial license by Genivia Inc.

Critical error: Cannot #import: soapcpp2 not compiled with flex
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 2.
Stop.
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 2.
Stop.

我忽视这个错误我在编译例子程序时出现如下错误
bash-2.00$ make
        /new_product1/boss/interface/client_source/gsoap-2.7/soapcpp2/src/soapcpp2 -padd -i -n -c add.h
**  The gSOAP Stub and Skeleton Compiler for C and C++ 2.7.9l
**  Copyright (C) 2000-2007, Robert van Engelen, Genivia Inc.
**  All Rights Reserved. This product is provided "as is", without any warranty.
**  The gSOAP compiler is released under one of the following three licenses:
**  GPL, the gSOAP public license, or the commercial license by Genivia Inc.
Saving addStub.h
Saving addH.h
Saving addC.c
Using ns service name: Service
Using ns service style: document
Using ns service encoding: literal
Using ns service location: http://localhost:80
Using ns schema namespace: http://tempuri.org/ns.xsd
Saving ns.wsdl Web Service description
Saving ns.add.req.xml sample SOAP/XML request
Saving ns.add.res.xml sample SOAP/XML response
Saving ns.xsd XML schema
Saving add.nsmap namespace mapping table
Compilation successful
        xlC -g -DWITH_NONAMESPACES -c addserver.c -I /new_product1/boss/interface/client_source/gsoap-2.7/soapcpp2
xlC: 1501-245 Warning: Hard ulimit has been reduced to less than RLIM_INFINITY.  There may not be enough space to complete the compilation.
"addStub.h", line 59.1: 1506-278 (S) The structure definition must specify a member list.
make: The error code from the last command is 1.
addStub.h这个头文件为自动生成
59行为
struct SOAP_ENV__Header
{
#ifdef WITH_NOEMPTYSTRUCT
        char dummy;     /* dummy member to enable compilation */
#endif
};
#endif
应该是WITH_NOEMPTYSTRUCT这个宏没定义,请问哪位大侠碰到过这种情况。
不吝赐教,谢谢!


--  作者:lingjiexie
--  发布时间:12/4/2007 5:04:00 PM

--  
没有人用过这个吗
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms