'programming/C_C++'에 해당되는 글 279건

  1. 2017.10.11 gsoap

gsoap

programming/C_C++ 2017. 10. 11. 15:16
반응형

gsoap stub code.

@ https://sourceforge.net/projects/gsoap2/

DOWNLOAD - 2017.10.11 - gsoap_2.8.54.zip

@
./configure

@
make

@

su - root

@

make install


@ file copy.

---------------------
gsoap/stdsoap2.c      
gsoap/stdsoap2.h      
gsoap/dom.c           
gsoap/import/dom.h    
gsoap/import/wsse.h   
gsoap/plugin/mecevp.c 
gsoap/plugin/mecevp.h 
gsoap/plugin/smdevp.c 
gsoap/plugin/smdevp.h 
gsoap/plugin/threads.c
gsoap/plugin/threads.h
gsoap/plugin/wsseapi.c
gsoap/plugin/wsseapi.h

gsoap/samples/ssl/cacert.pem
---------------------

@ wsdl file download

wsdl2h -c -s -o test.h test.wsdl


@ vi test.h
--------------------

#import "wsse.h"

--------------------

@

soapcpp2 -c -C -L -x -I/usr/local/share/gsoap/import test.h


@ makefile create.

-------------
#!/bin/sh

CC        = gcc
AR        = ar
MV        = mv -f
RM        = rm -f
DEPEND    = makedepend
LINT      = lint
CFLAGS    = -O -g -DWITH_DOM -DWITH_OPENSSL -DDEBUG

INC_PATH  = -I. -I/usr/include
LIB_PATH  = -L. -L/usr/lib
LIBS      =

SRCS      = stdsoap2.c mecevp.c smdevp.c dom.c threads.c soapC.c soapClient.c wsseapi.c
OBJS      = $(SRCS:.c=.o)
AOUT      = libtest.a

DEST      = ./

all: $(AOUT)

$(OBJS): $(@:.o=.c)
        $(CC) $(CFLAGS) $(DEFINES) $(INC_PATH) $(LIB_PATH) $(LIBS) -c $(@:.o=.c)

$(AOUT): $(OBJS)
        $(AR) rcus $@ $(OBJS)

-------------


 

반응형
Posted by 공간사랑
,