Web services MULE ESB调用SOAP API显示为空

Web services MULE ESB调用SOAP API显示为空,web-services,mule,postman,anypoint-studio,mule-esb,Web Services,Mule,Postman,Anypoint Studio,Mule Esb,我正在尝试使用一个SOAPAPI,它在SOAPUI工具中运行良好,但是当从Mule flow调用它时,它在POSTMAN中显示空白结果,下面是我的flow xml,有人能帮我吗 <flow name="xxxx"> <http:listener config-ref="HTTP_Listener_Configuration" path="/xxxx" allowedMethods="POST" doc:name="HTTP"/> <set-property prop

我正在尝试使用一个SOAPAPI,它在SOAPUI工具中运行良好,但是当从Mule flow调用它时,它在POSTMAN中显示空白结果,下面是我的flow xml,有人能帮我吗

<flow name="xxxx">
<http:listener config-ref="HTTP_Listener_Configuration" path="/xxxx" allowedMethods="POST" doc:name="HTTP"/>
<set-property propertyName="APIKey" value="xxxx-xxxx-xxxx-xxxx-xxxx" doc:name="Property"/>
<dw:transform-message doc:name="Transform Message">
<dw:set-payload><![CDATA[%dw 1.0
%output application/xml
%namespace ns0 http://localhost/eDetails:eDetailsWSD
---
{
ns0#eDetails: {
eDReq: {
IDEmp: "",
AllEmp: ""
}
}
}]]></dw:set-payload>
</dw:transform-message>
<ws:consumer config-ref="Web_Service_Consumer" operation="eDetails" doc:name="Web Service Consumer"/>
</flow>


您需要使用webservice使用者负载,并将其转换为可读格式。默认情况下,它不会为您打印任何内容。

请确保在Postman或SOAP UI中选择application/xml作为内容类型,然后选择POST。使用CXF并选择操作作为代理服务,提供详细信息。Selct和provode(WSDL、启用MTOM、SOAP头、SOAP 1.2) 确保在允许的方法中发布XML请求“POST”方法。 使用2个变压器。XML到DOM和DOM到XML。 使用日志记录请求

[message.payloadAs(java.lang.String)] 使用groovy脚本转换器检索整个负载

def userSoapRequest = new XmlSlurper().parseText(payload);

def userId = userSoapRequest.userId.text();
message.setInvocationProperty('userId', userId);

6.像上面一样检索所有元素的userId。7.根据需要处理它们。

现在我有了一个带有ws-security用户名密码的SOAP web服务,而在SOAP UI中,我调用此服务并添加传出的ws-security配置用户名密码add nonce和add created,并在发送请求时应用此ws。响应正在显示,但如何从Mule CXF执行。我知道mule web service consumer有这个选项,但不幸的是,我不知道bu使用W ws consumer但流没有部署它显示失败,并且在控制台中显示一些WSDLUtils.java错误。