在运行WSDL2Java
sample我想检查生成WSDL
,因为我是有在client code Netbeans generated从web服务的问题。是thisWSDL
有效还是无效?如果无效,为什么它在XML
“公布”,在URL
,以及作为WSDL
?这个WSDL有效吗?
运行WSDL2Java
validator from the CLI显示为无效:
[email protected]:~$
[email protected]:~$ echo $JAVA_HOME
/usr/lib/jvm/java-8-openjdk-amd64/
[email protected]:~$
[email protected]:~$ jars/apache-cxf-3.1.11/bin/wsdlvalidator https://www.w3schools.com/xml/tempconvert.asmx?WSDL
WSIBP Validator found <{https://www.w3schools.com/xml/}TempConvertHttpPost> is NOT a SOAP binding
WSDLValidator Error :
line 127 column 66 of https://www.w3schools.com/xml/tempconvert.asmx?WSDL: cvc-complex-type.4: Attribute 'part' must appear on element 'mime:content'.
line 136 column 66 of https://www.w3schools.com/xml/tempconvert.asmx?WSDL: cvc-complex-type.4: Attribute 'part' must appear on element 'mime:content'.
[email protected]:~$
然而,这,从字面上看,第一次我用WSDL2Java
API的。也许有一个online验证程序作为Web服务运行?
虽然我没能保存报表,它似乎是有效的,下载页面,然后上传后:
https://www.wsdl-analyzer.com/service/service/893784871?version=1
WSDL是确定,在.net检查作为ClientService,但服务是[向下](https://www.w3schools.com/xml/tempconvert.asmx?op=CelsiusToFahrenheit); – Seyran