使用gSoap根據wsdl檔案生成標頭檔案報錯 Error -1 fault: SOAP-ENV:Client [no subcode]
近來我在linux上使用gSoap,根據客戶提供的WSDL檔案生成標頭檔案的時候,不知什麼原因老報錯,資訊如下:
[[email protected] usertools]# wsdl2h -o AAAserver.h AAAserver.wsdl
** The gSOAP WSDL/Schema processor for C and C++, wsdl2h release 2.8.16 ** Copyright (C) 2000-2013 Robert van Engelen, Genivia Inc. ** All Rights Reserved. This product is provided "as is", without any warranty. ** The wsdl2h tool is released under one of the following licenses: ** GPL or the commercial license by Genivia Inc. Use option -l for details.
Saving AAAserver.h
Cannot open file 'typemap.dat' Problem reading type map file 'typemap.dat'. Using internal type definitions for C++ instead.
Reading file 'AAAserver.wsdl'... Warning: unexpected element 'xsd:element' at level 4 is skipped (safe to ignore) Warning: unexpected element 'xsd:element' at level 4 is skipped (safe to ignore) Warning: unexpected element 'xsd:element' at level 4 is skipped (safe to ignore) Warning: unexpected element 'xsd:element' at level 4 is skipped (safe to ignore) Warning: unexpected element 'xsd:element' at level 4 is skipped (safe to ignore) Warning: unexpected element 'xsd:element' at level 4 is skipped (safe to ignore) Warning: unexpected element 'wsdl:message' at level 2 is skipped (safe to ignore) Warning: unexpected element 'wsdl:message' at level 2 is skipped (safe to ignore) Warning: unexpected element 'wsdl:message' at level 2 is skipped (safe to ignore) Warning: unexpected element 'wsdl:message' at level 2 is skipped (safe to ignore) Warning: unexpected element 'wsdl:message' at level 2 is skipped (safe to ignore) Warning: unexpected element 'wsdl:message' at level 2 is skipped (safe to ignore) Warning: unexpected element 'wsdl:message' at level 2 is skipped (safe to ignore) Warning: unexpected element 'wsdl:message' at level 2 is skipped (safe to ignore) Warning: unexpected element 'wsdl:portType' at level 2 is skipped (safe to ignore) Warning: unexpected element 'wsdl:binding' at level 2 is skipped (safe to ignore) Warning: unexpected element 'wsdl:service' at level 2 is skipped (safe to ignore)
An error occurred while parsing WSDL from 'AAAserver.wsdl' Error -1 fault: SOAP-ENV:Client [no subcode] "End of file or no input: Operation interrupted or timed out" Detail: [no detail]
不知道什麼原因,請教各位大牛