- 论坛徽章:
- 0
|
本帖最后由 jiayanfu 于 2011-09-08 08:45 编辑
问题其实比较多,比较抽象,所以不方便贴。。
问题1:
官方提供的是wsdl文件,在通过gsoap将wsdl转换成.h文件的时候,出现问题。
使用的命令如下:- wsdl2h.exe -s -o remotediscovery.h remotediscovery.wsdl
复制代码 结果。。。出错了,- ** The gSOAP WSDL/Schema processor for C and C++, wsdl2h release 2.8.3
- ** Copyright (C) 2000-2011 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 two licenses:
- ** GPL or the commercial license by Genivia Inc. Use option -l for details.
- Saving remotediscovery.h
- Cannot open file 'typemap.dat'
- Problem reading type map file 'typemap.dat'.
- Using internal type definitions for C++ instead.
- Reading file 'remotediscovery.wsdl'...
- Connecting to 'http://schemas.xmlsoap.org/ws/2005/04/discovery/ws-discovery.xsd' to retrieve schem
- Connected, receiving...
- An error occurred while parsing schema from 'http://schemas.xmlsoap.org/ws/2005/04/discovery/ws-di
- Error 3 fault: SOAP-ENV:Client [no subcode]
- "Validation constraint violation: tag name or namespace mismatch in element 'html'"
- Detail: [no detail]
- HTTP/1.1 200 OK
- Expires: -1
- Cache-Control: no-store
- Cache-Control: must-revalidate
- Pragma: no-cache
- Connection: close
- Content-Type: text/html
- <html>
- <!-- ** HERE ** -->
- <script language=javascript>function r(){setTimeout("g()", 2000);}function g(){window.location.hre
- If this schema namespace is considered "built-in", then add
- namespaceprefix = <namespaceURI>
- to typemap.dat.
- E:\Downloads\bosch\gsoap_2.8.3\gsoap-2.8\gsoap\bin>
复制代码 “Error 3 fault: SOAP-ENV:Client [no subcode]” 这个到底是什么错误,为什么Google上大家都是有提问的,没有解答的。。。求高手 |
|