以下JIRA Jelly + Soap脚本有什么问题?

时间:2009-08-10 16:15:27

标签: soap wsdl jira jelly

任何人都知道以下Jira,Jelly + Soap脚本有什么问题? 假设WSDL文件是正确的,因为它直接使用soap。

    <JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns:core="jelly:core" xmlns:soap="jelly:soap">
<core:new var="endpointvar" className="java.lang.String">
    <core:arg type="java.lang.String" value="http://somehost:9080/newWSDLService/newWSDLPort"/>
</core:new>
<core:new var="Saction" className="java.lang.String">
    <core:arg type="java.lang.String" value="POST http://somehost:9080/newWSDLService/newWSDLPort HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ''
User-Agent: Jakarta Commons-HttpClient/3.1
Host: somehost:9080
Content-Length: 308"/>
</core:new>
<soap:invokeRaw endpoint="${endpointvar}" soapAction="${Saction}" var="answer">
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:new="http://j2ee.netbeans.org/wsdl/BpelModuleJira/newWSDL">
       <soapenv:Header/>
       <soapenv:Body>
          <new:newWSDLOperation>
             <part1>Hello</part1>
          </new:newWSDLOperation>
       </soapenv:Body>
    </soapenv:Envelope>
</soap:invokeRaw>
</JiraJelly>

1 个答案:

答案 0 :(得分:1)

  1. 查看所有日志,JellyRunner会在奇怪的地方出现错误消息。
  2. 暂且不说:这是一种非常奇怪的方式来初始化字符串。尝试:
  3. &lt; core:set var =“endpointvar”&gt; http:// somehost:9080 / newWSDLService / newWSDLPort&lt; / core:set&gt;