KoynovStas / onvif_srvd

ONVIF Device(IP camera) Service server (Linux daemon)
GNU General Public License v2.0
280 stars 116 forks source link

wsdl2h generation stage #33

Open p3im4n opened 3 years ago

p3im4n commented 3 years ago

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

p3im4n commented 3 years ago

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

KoynovStas commented 3 years ago

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 <>

p3im4n commented 3 years ago

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

best regards