KoynovStas / onvif_srvd

ONVIF Device(IP camera) Service server (Linux daemon)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wsdl2h generation stage

p3im4n opened this issue · comments

hi Mr @KoynovStas

how did u combine .wsdl and .xsd file to generate corresponding .h file with generated wsdl2h.exe(at previos stage) ?

abviously these wsdl generate those .h:
devicemgmt.wsdl ---> "soapDeviceBindingService.h"
media.wsdl ---> "soapMediaBindingService.h"
ptz.wsdl ---> "soapPTZBindingService.h"

I saw in make file:

---- gSOAP ----

$(GENERATED_DIR)/onvif.h:
@$(build_gsoap)
@mkdir -p $(GENERATED_DIR)
$(WSDL2H) -d -t ./wsdl/typemap.dat -o $@ $(WSDL_FILES)
$(WSSE_IMPORT)
........
......
and in typemap.dat:

OASIS recommended prefixes

wsnt = http://docs.oasis-open.org/wsn/b-2
wsntw = http://docs.oasis-open.org/wsn/bw-2
wsrfbf = http://docs.oasis-open.org/wsrf/bf-2
wsrfr = http://docs.oasis-open.org/wsrf/r-2
wsrfrw = http://docs.oasis-open.org/wsrf/rw-2
wstop = http://docs.oasis-open.org/wsn/t-1

the available xsd file in your project are mentioned there!

but i didnt understand the relation between them

best regards

ok.. i concluded the .xsd file which are needed,automatically downloaded based on typemap.dat information!!!
am i right?

about typemap.dat see: https://www.genivia.com/doc/guide/html/index.html

If .xsd file is located locally, then the link should be in brackets <>

hi Mr @KoynovStas
how did you generate these cpp files?
ServiceDevice.cpp
ServiceMedia.cpp
ServicePTZ.cpp

best regards