我有两台不同的笔记本电脑运行 MS Windows,并注意到在一台笔记本电脑上,Eclipse 的终端视图中有一个用于新终端窗口的 Git Bash 选项,而在另一台笔记本电脑上不可用。
经过一些试验和错误,我能够确定只有在安装了来自https://git-scm.com的 git cli 客户端时,Git Bash 选项才可用。
我喜欢能够在 Eclipse 中从命令行运行 git,而无需切换窗口。希望这可以帮助尝试做同样事情的人。
我正在尝试使用WSDL并使用maven-jaxb2-plugin生成绑定类.
WSDL是这样的,
<wsdl:definitions>
<wsdl:types>
...
</wsdl:types>
...
<wsdl:message name="IServiceWeb_GetPaymentInfo_InputMessage">
<wsdl:part name="parameters" element="tns:GetPaymentInfo"/>
</wsdl:message>
...
<wsdl:portType name="IServiceWeb">
...
<wsdl:operation name="GetPaymentInfo">
<wsdl:input wsaw:Action="*****" message="tns:IServiceWeb_GetPaymentInfo_InputMessage"/>
<wsdl:output wsaw:Action="*****" message="tns:IServiceWeb_GetPaymentInfo_OutputMessage"/>
</wsdl:operation>
</wsdl:portType>
Run Code Online (Sandbox Code Playgroud)
当我最初尝试生成类时,我收到此错误,
org.xml.sax.SAXParseException: A class/interface with the same name "org.package.GetPaymentInfoResponse" is already in use. Use a class customization to resolve this conflict.
Run Code Online (Sandbox Code Playgroud)
我在这个内容中添加了binding.xjb文件,
<?xml version="1.0" encoding="UTF-8"?>
<bindings xmlns="http://java.sun.com/xml/ns/jaxb" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
xsi:schemaLocation=" http://java.sun.com/xml/ns/jaxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" version="2.1">
<bindings
node="wsdl:definitions/wsdl:message[@name='IServiceWeb_GetPaymentInfo_OutputMessage']/wsdl:part[@name='parameters']">
<class name="GetPaymentInfoOutputMessage" />
</bindings>
</bindings>
Run Code Online (Sandbox Code Playgroud)
而我得到的错误是,
com.sun.istack.SAXParseException2: XPath evaluation of "wsdl:definitions/wsdl:message[@name='IServiceWeb_GetPaymentInfo_OutputMessage']/wsdl:part[@name='parameters']" results in empty target node
Run Code Online (Sandbox Code Playgroud)
是否有任何建议来生成这些文件?
编辑 …