简体   繁体   English

gSoap 在从.wsdl 创建.h 期间出现错误

[英]gSoap unfriedly error during creation of .h from .wsdl

I am trying to produce.h file from.wsdl using gsoap:我正在尝试使用 gsoap 从.wsdl 生成.h 文件:

wsdl2h.exe -v -s -c++11 -o a.h a.wsdl

With a.wsdl it is working like a charm, but with b.wsdl I am getting the unfriendly error:使用a.wsdl它就像一个魅力,但是使用b.wsdl我得到了不友好的错误:

SOAP 1.1 fault SOAP-ENV:Client [no subcode]
"End of file or no input: message transfer interrupted"
Detail: [no detail]

Any idea how to find out a rootcause of this?知道如何找出造成这种情况的根本原因吗? I suppose it is something with.wsdl or.xsd file, but how to identify it?我想它与.wsdl 或.xsd 文件有关,但是如何识别呢? Both.wsdl files are not created by me, but on first sight they look fine. Both.wsdl 文件不是我创建的,但乍一看它们看起来不错。 When I imported problematic b.wsdl into SOAPUI i was able to send request / receive response.当我将有问题的 b.wsdl 导入 SOAPUI 时,我能够发送请求/接收响应。

I also tried this web:我也试过这个 web:

https://www.wsdl-analyzer.com/ https://www.wsdl-analyzer.com/

But unsuccesfully, it is showing me error also on a.wsdl which works fine with gSoap.但没有成功,它也在 a.wsdl 上向我显示错误,该错误适用于 gSoap。

It was some whitespace which was preventing wsdl2h in parsing the wsdl / xsd file.是一些空格阻止 wsdl2h 解析 wsdl / xsd 文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM