2012-02-20 4 views
1

일부 Java 클래스를 생성하는 동안 문제가 발생합니다. 라인 81에서 다음 내용java wsimport string

C:\Users\kon\Desktop>wsimport -keep -verbose -extension -d generated http://XXXXXXWebServicesPort?wsdl 
parsing WSDL... 

[INFO] Trying to read authorization file : "C:\Users\kon\.metro\auth"... 

[ERROR] Schema descriptor {http://www.w3.org/2001/XMLSchema}string in message part "return" is not defined and could not be bound to Java. Perhaps the schema descriptor {http://www.w3.org/2001/XMLSche 
ma}string is not defined in the schema imported/included in the WSDL. You can either add such imports/includes or run wsimport and provide the schema location using -b switch. 
    line 81 of http://XXXXXXWebServicesPort?wsdl 

: 전에 wsimport를 사용하지 않은 웹에 유사한 문제를 찾을 수 없습니다

<message name="getJDBCConnectionURLOutput"> 
    <part name="return" element="xsd:string"/> 
</message> 

. 이 문제가 맞춤법 문제입니까?

+0

당신에게 당신이 사이에 제어 문자가없는 확신 ':'아마 WSDL 스펙이 정보가 도움이 될 것입니다와의 '의 xsd : string @ 81? –

+0

나는 이것을 WireShark로 확인했으나 정확함에 틀림 없다. [link] (http://img217.imageshack.us/img217/5594/stringh.png) – kon

+0

내 대답을 읽었습니까? – davidfrancis

답변

1

WSDL이 잘못되었다고 생각합니다.

WSDL에서 앞에서 정의한 xsd : string이라는 요소를 가리키고 있다고 생각합니다.

xsd : string이 올바르지 않으므로 이전에 정의한 유형이어야합니다.

여기에 몇 가지 예에 비교 : http://www.w3.org/2001/03/14-annotated-WSDL-examples

HTH

편집 : 당신은 바로 그와 같은 문자열 형식 인으로 정의 할 수 없습니다. 은 아마 당신이 의미 :

<part name="return" type="xsd:string"/> 

편집 : http://www.w3.org/TR/wsdl#_soap:body

+0

안녕하세요 @ davidfrancis, 도와 주셔서 감사합니다. xsd : 문자열은 xmlns : xsd = "http://www.w3.org/2001/XMLSchema"에 정의되어 있습니다. 나는 동료가 문자열에 문제가있는 파서를 말했습니다. 최신 버전의 축은 올바르게 작동합니다. 이 진술에 대한 버그 보고서를 찾을 수있었습니다. – kon

+0

내 답변보기 내 대답을 – davidfrancis

+0

어쩌면 그게 네가 찾고있는거야? – davidfrancis