关于解析本地wsdl文件

WSDLReader reader=wsdlFactory.newWSDLReader();
Definition def=reader.readWSDL(null,"C:\webservice\1.wsdl");

我使用上面的代码解析本地存在的wsdl有误么?
代码老是报没有资源错误

WSDLException (at /wsdl:definitions/wsdl:message[68]/wsdl:part[2]): faultCode=INVALID_WSDL: Encountered illegal part extension attribute 'ame'. Extension attributes must be in a namespace other than WSDL's.
WSDLException (at /wsdl:definitions/wsdl:message[68]/wsdl:part[2]): faultCode=INVALID_WSDL: Encountered illegal part extension attribute 'ame'. Extension attributes must be in a namespace other than WSDL's.:
at com.ibm.wsdl.xml.WSDLReaderImpl.getPartAttributes(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parsePart(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseMessage(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at wsclient.util.ComponentBuilder.buildserviceinformation(ComponentBuilder.java:90)
at wsclient.test.WSClient.testWSDL4J(WSClient.java:22)
at wsclient.test.WSClient.main(WSClient.java:67)

attribute 'ame'?

看看你的wsdl文件中 有没有标签名为ame的?应该是name吧 呵呵

WSDLException (at /wsdl:definitions/wsdl:message[68]/wsdl:part[2]): faultCode=INVALID_WSDL: Encountered illegal part extension attribute 'ame'. Extension attributes must be in a namespace other than WSDL's.

扩展的属性'ame'必须在不同的命名空间里