用C实现WebService[2]
2014-03-28 09:30
218 查看
原文出自:http://blog.chinaunix.net/uid-20314256-id-1967289.html
用C实现WebService[2]
2009-08-05 17:52:56
分类: LINUX
上一篇文章我说过原文的Makefile错误很多,现在我把它修改了一下,基本上能用了,但还有一点警告信息。
#cat Makefile
GSOAP_ROOT=/usr/local/gsoap
SOAPNAME=soap
WSNAME=add
CC=g++ -g -DWITH_NONAMESPACES
SERVER_OBJS=$(SOAPNAME)C.o $(SOAPNAME)Server.o stdsoap2.o
CLIENT_OBJS=$(SOAPNAME)C.o $(SOAPNAME)Client.o stdsoap2.o
#总的目标
all:server client
$(WSNAME).wsdl:$(WSNAME).h
$(GSOAP_ROOT)/bin/soapcpp2 -c $(WSNAME).h
stdsoap2.o:stdsoap2.c
$(CC) -c $?
#编译一样生成规则的.o文件
$(SERVER_OBJS):%.o:%.c
$(CC) -c $?
$(CLIENT_OBJS):%.o:%.c
$(CC) -c $?
#编译服务器端
server:Makefile $(WSNAME).wsdl $(WSNAME)server.o $(SERVER_OBJS)
$(CC) -o $(WSNAME)server $(SERVER_OBJS) $(WSNAME)server.o
#编译客户端
client:Makefile $(WSNAME).wsdl $(WSNAME)client.o $(CLIENT_OBJS)
$(CC) -o $(WSNAME)client $(CLIENT_OBJS) $(WSNAME)client.o
clean:
rm -f *.o *.xml *.a *.wsdl *.nsmap $(SOAPNAME)H.h $(SOAPNAME)C.c $(SOAPNAME)Server.c $(SOAPNAME)Client.c $(SOAPNAME)Stub.* $(SOAPNAEM)$(WSNAME)Proxy.* $(SOAPNAME)$(WSNAME)Object.* $(SOAPNAME)ServerLib.c $(SOAPNAME)ClientLib.c $(WSNAME)server ns.xsd $(WSNAME)client
用C实现WebService[2]
2009-08-05 17:52:56
分类: LINUX
上一篇文章我说过原文的Makefile错误很多,现在我把它修改了一下,基本上能用了,但还有一点警告信息。
#cat Makefile
GSOAP_ROOT=/usr/local/gsoap
SOAPNAME=soap
WSNAME=add
CC=g++ -g -DWITH_NONAMESPACES
SERVER_OBJS=$(SOAPNAME)C.o $(SOAPNAME)Server.o stdsoap2.o
CLIENT_OBJS=$(SOAPNAME)C.o $(SOAPNAME)Client.o stdsoap2.o
#总的目标
all:server client
$(WSNAME).wsdl:$(WSNAME).h
$(GSOAP_ROOT)/bin/soapcpp2 -c $(WSNAME).h
stdsoap2.o:stdsoap2.c
$(CC) -c $?
#编译一样生成规则的.o文件
$(SERVER_OBJS):%.o:%.c
$(CC) -c $?
$(CLIENT_OBJS):%.o:%.c
$(CC) -c $?
#编译服务器端
server:Makefile $(WSNAME).wsdl $(WSNAME)server.o $(SERVER_OBJS)
$(CC) -o $(WSNAME)server $(SERVER_OBJS) $(WSNAME)server.o
#编译客户端
client:Makefile $(WSNAME).wsdl $(WSNAME)client.o $(CLIENT_OBJS)
$(CC) -o $(WSNAME)client $(CLIENT_OBJS) $(WSNAME)client.o
clean:
rm -f *.o *.xml *.a *.wsdl *.nsmap $(SOAPNAME)H.h $(SOAPNAME)C.c $(SOAPNAME)Server.c $(SOAPNAME)Client.c $(SOAPNAME)Stub.* $(SOAPNAEM)$(WSNAME)Proxy.* $(SOAPNAME)$(WSNAME)Object.* $(SOAPNAME)ServerLib.c $(SOAPNAME)ClientLib.c $(WSNAME)server ns.xsd $(WSNAME)client
相关文章推荐
- Java调用WebService接口实现发送手机短信验证码功能
- 从零开始学android开发-通过WebService进行网络编程,使用工具类轻松实现
- Spring Boot实现RESTful webservice服务端示例
- Spring工程集成CXF实现WebService接口
- WebService服务的实现及调用
- 使用Forms实现WebService身份验证
- WebService大讲堂之Axis2(1):用POJO实现0配置的WebService
- Apache CXF与Spring集成实现Soap Webservice与RESTFul WebService
- 架设用Webservice实现文件上传功能CentOS服务器(二)--WebService
- jquery实现调用webservice
- WebService(二)—JDK内置JAX-WS实现SOAP WebService
- Java开发中经常使用到的几种WebService技术实现方案
- iOS开发之结合asp.net webservice实现文件上传下载
- 关于JQuery 中$.ajax函数利用jsonp实现Ajax跨域请求ASP.NET的WebService成功获取数据的案例
- C++语言实现的WebService开发库—gsoap应用介绍
- castor + xml schema 实现webservice中复杂结构数据传输-转载 [Zone Yan]
- Linux下gsoap实现webservice功能
- 在PHP中利用wsdl创建标准webservice的实现代码 SoapDiscovery.class.php
- WebService的实现——Hessian
- WebService—快速实现一个基于JAX-WS的WebService项目(一)