关于解析本地WSDL文件

原创 2017-01-11 11:13:52 593
摘要:WSDLReader reader = wsdlFactory.newWSDLReader(); 定义DEF = reader.readWSDL(NULL,“C:\\ \\ web服务1.wsdl”); 我使用上面的代码解析本地存在的WSDL有误么? 代码老是报没有资源错误 WSDLException(AT / WSDL: definitions / wsd

WSDLReader reader = wsdlFactory.newWSDLReader(); 
定义DEF = reader.readWSDL(NULL,“C:\\ \\ web服务1.wsdl”); 

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

WSDLException(AT / WSDL: definitions / wsdl:message [68] / wsdl:part [2]):faultCode = INVALID_WSDL:遇到非法部分扩展属性'ame'。扩展属性必须位于WSDL以外的命名空间中。 
WSDLException(at / wsdl:definitions / wsdl:message [68] / wsdl:part [2]):faultCode = INVALID_WSDL:遇到非法部分扩展属性'ame'。扩展属性必须是比WSDL的其他:一个命名空间 
在com.ibm.wsdl.xml.WSDLReaderImpl.getPartAttributes(来源不明) 
在com.ibm.wsdl.xml.WSDLReaderImpl.parsePart(来源不明) 
在com.ibm.wsdl .xml.WSDLReaderImpl.parseMessage(来源不明) 
在com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(来源不明) 
在com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(来源不明) 
在com.ibm.wsdl.xml .WSDLReaderImpl.readWSDL(来源不明) 
在com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(来源不明) 
在com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(来源不明) 
在wsclient.util.ComponentBuilder.buildserviceinformation(ComponentBuilder的.java:90) 
在wsclient.test.WSClient.testWSDL4J(WSClient.java:22) 
在wsclient.test.WSClient.main(WSClient.java:67) 

发布手记

热门词条