Hi Developers, As I could see that my previous post to this forum got somehow dropped, I am re-posting the same again. Here is my query on this, I am presently in the process of developing a Printer device/service using ws4d-gSoap stack & to be compatible against Microsoft vista's WSD client (http://blogs.technet.com/askperf/archive/2008/02/11/ws2008-the-wsd-port-monitor.aspx). My printer device/service would follow the specification/schema as mentioned in http://www.microsoft.com/whdc/connect/rally/rallywsd.mspx. Now the problem is; when I try to run "wsdl2h.exe" against the Microsoft's WSDPrintDevice.wsdl (schema is as specified below) as mentioned in your "ws4d-gsoap-refman.pdf" manual, I am getting the following warning msg from it & the header file is also not generated as expected. --------- $ ./wsdl2h.exe -c -n acs.gsoap WSDPrintDevice.wsdl ** The gSOAP WSDL parser for C and C++ 1.2.13 ** Copyright (C) 2000-2009 Robert van Engelen, Genivia Inc. ** All Rights Reserved. This product is provided "as is", without any warranty. ** The gSOAP WSDL parser is released under one of the following two licenses: ** GPL or the commercial license by Genivia Inc. Use option -l for more info. Saving WSDPrintDevice.h Reading type definitions from type map file 'typemap.dat' Reading file 'WSDPrintDevice.wsdl'... Warning: element 'wsp:Policy' at level 1 w as not recognized and will be ignored Warning: element 'wsp:PolicyReference' at level 2 was not recognized and will be ignored done reading 'WSDPrintDevice.wsdl' To complete the process, compile with: soapcpp2 WSDPrintDevice.h
sath...@sathyas /cygdrive/d/WSD/gsoap-binaries/gsoap_2.7.13/gsoap-2.7/gsoap/WS $ ------------------- My gSoap stack version is 2.7.13. Does it mean that WSDL's WS-Policy framework is not support by "wsdl2.h.exe". If yes, could you please suggest me an alternative for this. ---- WSDPrintDevice.wsdl file, <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsdp="http://schemas.xmlsoap.org/ws/2006/02/devprof" xmlns:wsp="http://schemas..xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wprt="http://schemas.microsoft.com/windows/2006/08/wdp/print" targetNamespace="http://schemas.microsoft.com/windows/2006/08/wdp/print" name="WSDPrintDevice"> <wsp:Policy wsu:Id="DevicePolicy"> <wsdp:Profile /> </wsp:Policy> <wsdl:portType name="PrintDeviceType" /> <wsdl:binding name="PrinterSoapBinding" type="wprt:PrintDeviceType" > <wsoap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> <wsp:PolicyReference URI="#DevicePolicy" wsdl:required="true" /> </wsdl:binding> </wsdl:definitions> ------ Could someone please let me know with your suggestions by earlist. It is because WS-Policy framework is not support with this version of wsdl2h.exe. If yes, as I am new to the XML world, could you please suggest me with an alternative. Thanks a lot in advance. Regards, Sathya
