2017-04-25 11 views
0

실행 중 WSDL2Javasample 웹 서비스에서 client code Netbeans generated에 문제가있어서 WSDL을 검사하고 싶습니다. thisWSDL은 유효합니까? 무효 인 경우 URLXML에있는 "광고"된 이유는 WSDL입니까? WSDL2Javavalidator from the CLI 실행이 WSDL이 유효합니까?

가 무효 보여줍니다

[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이 있습니까?

https://www.wsdl-analyzer.com/service/service/893784871?version=1

+0

WSDL은 .Net의 ClientService로 확인되지만 서비스는 [down]입니다 (https://www.w3schools.com/xml/tempconvert.asmx?op=CelsiusToFahrenheit). – Seyran

답변

1

전술 WSDL은 세 가지 다른 바인딩을 포함 :

내가 보고서를 저장 할 수 없습니다 있지만, 는 업로드 다음 페이지를 다운로드 한 후, 유효 보인다 비누 당신이 여기에서 볼 수있는 바와 같이 temperaturte 컨버터 웹 서비스를 호출하는 세 가지 방법/프로토콜이 존재 의미 1.1, SOAP 1.2 및 HTTP : https://www.w3schools.com/xml/tempconvert.asmx?op=CelsiusToFahrenheit

그러나 WSDL 공구 및 상호 운용성은 B를 작동 만약 당신이 단지 비누 1.1 바인딩에 충실한다면. 학습 목적으로 SOAP 1.1 바인딩을 사용하는 WSDL을 찾으십시오.