--- In gsoap@yahoogroups.com, "sunbeacher_243" <[EMAIL PROTECTED]>
wrote:
>
> I'm a newbie to gsoap. I get in trouble when compiling wsdl files.
> I get some wsdl file, in wich the following setences are included:
> <!-- ============== Import Type Definitions ============= -->
> <wsdl:types>
> <xsd:schema targetNamespace="tmf854.v1.ws">
> <xsd:import namespace="tmf854.v1"
> schemaLocation="../../xsd/interfaces/AlarmRetrieval.xsd"/>
> </xsd:schema>
> </wsdl:types>
> <!-- =============== Import Exception Definitions ======== -->
> <wsdl:import location="Exceptions.wsdl"
namespace="tmf854.v1.ws"/>
>
> When I compile this file by "wsdl2h -s -o %fileName%_Common.h %
> fileName%.wsdl",I found that wsdl2h only read the XML Schema files
> included in the Exceptions.wsdl, and dosen't read
> the "AlarmRetrieval.xsd" included directly in this wsdl file.
> In result I get warnings such as:
> "Warning: no part 'mtosiBody'
> element '"tmf854.v1":getActiveAlarmsCount' in WSDL
> definitions 'TMF854-FaultService' namespace tmf854.v1.ws"
>
> "tmf854.v1":getActiveAlarmsCount is an element defined in
> AlarmRetrieval.xsd. And I can't go on with the generated header
file.
>
> If I mask the imported wsdl file,that's delete the sentence,such as
> this:
> "<!-- <wsdl:import location="Exceptions.wsdl"
> namespace="tmf854.v1.ws"/> -->"
> then WSDL2H will read the directly imported xsd files and the
> warnings will disappear.
>
>
> I wonder how I can instruct WSDL2H to read both directly imported
> wsdl files and xsd files.
>
> Your help is appreciated.
>
> P.S.
> (1)the following is the simplified output of wsdl2h with unmasked
> imported wsdl file.
> Reading file '..\wsdl\common\FaultService.wsdl'...
> Reading file '..\wsdl\common/Exceptions.wsdl'...(wsdl2h do read the
> imported wsdl file)
> Reading schema
> file '..\wsdl\common/../../xsd/interfaces/Exceptions.xsd'... (this
> schema file is included in Exceptions.wsdl)
>
> ... (here,output is omitted)
>
> done reading '../../xsd/interfaces/Exceptions.xsd'
> done reading 'Exceptions.wsdl'
> done reading '..\wsdl\common\FaultService.wsdl'
>
> (here, the directly imported XSD files don't be read )
>
> Warning: no part 'mtosiBody'
> element '"tmf854.v1":getActiveAlarmsCount' in WSDL
> definitions 'TMF854-FaultService' namespace tmf854.v1.ws
>
>
> (2)Here is the simplified output of wsdl2h with masked imported
wsdl
> file.
> Reading file '..\wsdl\common\FaultService.wsdl'...
> Reading schema
> file '..\wsdl\common/../../xsd/interfaces/AlarmRetrieval.xsd'...
> (wsdl2h do read the imported xsd file)
>
> ... (here,output is omitted)
>
> done reading '../../xsd/interfaces/AlarmRetrieval.xsd' (finished
> reading the xsd file)
> done reading '..\wsdl\common\FaultService.wsdl'
>
> (the warnings mentioned above do disappear. Of course there are
some
> other problems according to the missed imported wsdl file.)
>
Is there anyone can help? or this is a bug within gsoap