簡體   English   中英

SOAP請求在SOAP UI中運行,但不在WSO2ESB“嘗試此服務”頁面中運行,因此相關的計划任務不起作用

[英]SOAP requests run in SOAP UI but not in WSO2ESB “Try this service” page, so the related scheduled task doesn't work

我已經在WSO2 ESB中部署了自定義代理服務,但無法從在“嘗試此服務”頁面中調用的Web服務獲得任何響應。 我嘗試通過WSO2ESB的代理服務通過SOAP UI發送請求(我將代理服務的端點而不是WS的端點放在SOAP UI中),並且它可以正常工作。 相同的SOAP請求在WSO2ESB頁面中無法正常工作。

因此,當我使用選定的代理服務創建計划任務時,會向我返回錯誤。 我不知道如何更改SOAP消息的內容以使其適合ESB。

   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://ec.europa.eu/eurostat/sri/service/2.0">
  <soapenv:Header/>
   <soapenv:Body>
   <ns:QueryStructure>
     <!--Optional:-->
     <ns:Query>
    <RegistryInterface xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message SDMXMessage.xsd" xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message" xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common" xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact" xmlns:cross="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross" xmlns:generic="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic" xmlns:query="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure" xmlns:registry="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry" xmlns:utility="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Header>
        <ID>JD014</ID>
        <Test>true</Test>
        <Truncated>false</Truncated>
        <Name xml:lang="en">Trans46302</Name>
        <Prepared>2001-03-11T09:30:47-05:00</Prepared>
        <Sender id="BIS"/>
    </Header>
    <QueryStructureRequest resolveReferences="false">
   <registry:DataflowRef/>
</QueryStructureRequest>
</RegistryInterface>
     </ns:Query>
  </ns:QueryStructure>
</soapenv:Body>
</soapenv:Envelope>

它在SOAP UI(通過ESB)上運行,而不在同一ESB上運行。

要更改消息的內容,可以使用Payload Mediator

還有一個有關如何執行此操作的示例

希望能有所幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM