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)