使用gSoap

时间:2015-06-04 19:24:23

标签: warnings deserialization gsoap

这是我用soapcpp2.exe运行WSservice.h头文件后得到的cmd

C:\Users\Tushar\Desktop\zzzzz>soapcpp2 -i -C -I C:\Users\Tushar\Desktop\gsoap_2.
8.22\gsoap-2.8\gsoap\import WSservice.h

**  The gSOAP code generator for C and C++, soapcpp2 release 2.8.22
**  Copyright (C) 2000-2015, Robert van Engelen, Genivia Inc.
**  All Rights Reserved. This product is provided "as is", without any warranty.

**  The soapcpp2 tool is released under one of the following licenses:
**  GPL or the commercial license by Genivia Inc.


WSservice.h(3525): *WARNING*: identifier 'ns2__UserConfigurationPropertyType__Xm
lData' starts with or embeds 'Xml' character sequence exclusively reserved for t
he XML standard (for enum constants: please ignore this warning)


WSservice.h(7290): *WARNING*: template type 'std::vector<xsd__base64Binary>' of
attachment objects may lead to deserialization failures, use 'std::vector<*xsd__
base64Binary>' instead


WSservice.h(12370): *WARNING*: template type 'std::vector<xsd__base64Binary>' of
 attachment objects may lead to deserialization failures, use 'std::vector<*xsd_
_base64Binary>' instead


WSservice.h(14544): *WARNING*: identifier 'XmlData' starts with or embeds 'Xml'
character sequence exclusively reserved for the XML standard (for enum constants
: please ignore this warning)


WSservice.h(24953): *WARNING*: identifier 'Xml' starts with or embeds 'Xml' char
acter sequence exclusively reserved for the XML standard (for enum constants: pl
ease ignore this warning)

Saving soapStub.h annotated copy of the source input
Saving soapH.h declarations to #include
Using ns1 service name: ExchangeServiceBinding
Using ns1 service style: document
Using ns1 service encoding: literal
Using ns1 service location: http://localhost:80
Using ns1 schema namespace: http://schemas.microsoft.com/exchange/services/2006/
messages
Saving soapExchangeServiceBindingProxy.h client proxy class
Saving soapExchangeServiceBindingProxy.cpp client proxy class
........
....
...
..// here the list of all generated proxy and xml files are saving.
..
...
.....
Compilation successful (5 warnings)

所以在头文件中编辑第2和第3个警告并重新运行soapcpp2之后我发现了以下错误,为什么?

    C:\Users\Tushar\Desktop\test>soapcpp2 -j -C -I C:\Users\Tushar\Desktop\gsoap_2.8
.22\gsoap-2.8\gsoap\import WSservice.h

**  The gSOAP code generator for C and C++, soapcpp2 release 2.8.22
**  Copyright (C) 2000-2015, Robert van Engelen, Genivia Inc.
**  All Rights Reserved. This product is provided "as is", without any warranty.

**  The soapcpp2 tool is released under one of the following licenses:
**  GPL or the commercial license by Genivia Inc.


WSservice.h(3525): *WARNING*: identifier 'ns2__UserConfigurationPropertyType__Xm
lData' starts with or embeds 'Xml' character sequence exclusively reserved for t
he XML standard (for enum constants: please ignore this warning)

WSservice.h(7290): syntax error
WSservice.h(7289): Syntax error: declaration expected
WSservice.h(7292): syntax error
WSservice.h(7291): Syntax error: declaration expected
WSservice.h(12370): syntax error
WSservice.h(12369): Syntax error: declaration expected
WSservice.h(12372): syntax error
WSservice.h(12371): Syntax error: declaration expected

WSservice.h(14544): *WARNING*: identifier 'XmlData' starts with or embeds 'Xml'
character sequence exclusively reserved for the XML standard (for enum constants
: please ignore this warning)


WSservice.h(24953): *WARNING*: identifier 'Xml' starts with or embeds 'Xml' char
acter sequence exclusively reserved for the XML standard (for enum constants: pl
ease ignore this warning)

Saving soapStub.h annotated copy of the source input
Saving soapH.h declarations to #include
Using ns1 service name: ExchangeServiceBinding
Using ns1 service style: document
Using ns1 service encoding: literal
Using ns1 service location: http://localhost:80
Using ns1 schema namespace: http://schemas.microsoft.com/exchange/services/2006/
messages
Saving soapExchangeServiceBindingProxy.h client proxy class
Saving soapExchangeServiceBindingProxy.cpp client proxy class
Saving ExchangeServiceBinding.ResolveNames.req.xml sample SOAP/XML request
Saving ExchangeServiceBinding.ResolveNames.res.xml sample SOAP/XML response
Saving ExchangeServiceBinding.ExpandDL.req.xml sample SOAP/XML request
Saving ExchangeServiceBinding.ExpandDL.res.xml sample SOAP/XML response
........
....
...
..// here the list of all generated proxy and xml files are saving.
..
...
.....   
There were errors:
4 syntax errors
3 warnings

如果我忽略了之前的所有5个警告,那么如果忽略它们,那么这5个警告是否会导致Web服务的开发出现问题?

请帮助我。在此先感谢您的帮助。

0 个答案:

没有答案
相关问题