在ode中调用带有身份验证标头的web服务bpel
我正在使用eclipse bpel设计器,并试图调用需要传递身份验证标头的外部服务。在ode中调用带有身份验证标头的web服务bpel
这是我已经做
1.创建一个文件headers.endpoint使用以下内容
*alias.sample_ns="http://sample.com"
sample_ns.serviceName.portName.ode.http.default-headers.username=system
sample_ns.serviceName.portName.ode.http.default-headers.password=admin*
- 在.. \ web应用把它\ ODE \ WEB-INF \处理\ $过程夹
当我调用我发现了以下错误
“发送邮件时出错(MEX = {#PartnerRoleMex hqejbhcnphrckf492s9n9b [PID {服务} CreateReservation-1541]调用[email protected](...)Status ASYNC}):传输错误:401错误:Unautho“。
我想我也需要在调用BPEL流程中的服务时添加标题信息。但找不到办法。如果这实际上是我缺少的东西,怎么能这样做呢?或者还有其他事情要做吗?
在此先感谢
注:HTTP认证信息不能在* .endpoint文件中设置。
用于调用HTTP服务
Testcase will show you how to do it
https://github.com/apache/ode/tree/ode-1.3.x/axis2-war/src/test/resources/TestEndpointPropertiesAdd message part in WSDL as shown here
https://github.com/apache/ode/blob/ode-1.3.x/axis2-war/src/test/resources/TestEndpointProperties/Echo.wsdl#L66Assign credentials in Process
https://github.com/apache/ode/blob/ode-1.3.x/axis2-war/src/test/resources/TestEndpointProperties/test-endpoint-properties.bpel#L73
用于调用SOAP服务
我使用第三方WSDL需要身份验证和修改WSDL是不是一种选择。 – Arun
向未映射到soap主体或soap头的输入消息添加附加的虚拟消息部分不会影响WSDL及其内部/外部WSDL文档。 但是如果你不愿采取那种方式,那么你可以为它提出一个[JIRA](https://issues.apache.org/jira/secure/RapidBoard.jspa?rapidView=7&projectKey=ODE)。 – Sathwik
我尝试添加虚拟消息部分输入消息,但问题仍然存在,任何其他解决方案? – Arun