BreeeZe / node-soap-servicegenerator

Nodejs based service stub generator for node-soap
MIT License
2 stars 3 forks source link

Help adding extra ONVIF services #1

Open RogerHardiman opened 8 years ago

RogerHardiman commented 8 years ago

Hi there I need some help. I have forked node-soap-generator and added the PTZ, Imaging and Events services to test-wsdl and a small script called go.sh which generates all the stubs. The PTZ service works fine (and I'm using it in my fork of RPOS) but the imaging stub and the events stub are empty.

Could you help me figure it out please?

Thanks

BreeeZe commented 8 years ago

I checked out your fork and started debugging in vscode, the first thing I noticed, after the "wsdl loaded" message, it doesn't output the message "Generating ***Service". (for the imaging service) When I step through the code, it doesn't find any services defined in the imaging WSDL. I'll have a look in the wsdl and keep you posted.

BreeeZe commented 8 years ago

The events service has the wrong binding type : https://github.com/RogerHardiman/node-soap-servicegenerator/blob/master/test-wsdl/events_service.wsdl#L10 I noticed that the events service has a total of 8 bindings, so you probably need to add all 8 as ports, I'll see if I have some more time tomorrow to try some more, I couldn't fix the imaging service generation yet..

RogerHardiman commented 8 years ago

Thanks for taking a look. Don't worry if you don't have time. I will not be doing events or imaging for a while. I don't have any CCTV software that uses imaging (eg focus/iris control) and have never looked into the events service so will be a while before I need them.

klukaspl commented 7 years ago

I am trying as well generate some services like AccessControl. But I have similar problems as above. Had you had a chance to look how it is with other services. The WSDL files I am taking from ONVIF site seem to differ a bit from the one in your repo (device, media).