我试图通过camel配置文件使用apache创建一个代理服务。
我已经成功地为axis 2版本的webservice创建了代理服务。
唯一的问题是,代理服务最终的wsdl url和地址都指向同一个url。
下面是我的camel-config.xml文件部分:
<cxf:cxfEndpoint id="securityService"
address="https://0.0.0.0:9080/services/version.SecurityHttpsSoap11Endpoint"
endpointName="s:version.SecurityHttpsSoap11Endpoint"
serviceName="s:version"
wsdlURL="etc/version.wsdl"
xmlns:s="http://axisversion.sample"/>现在唯一的问题是来自上面的配置,如果我必须看到上面服务的wsdl。我的wsdl url将是:
https://0.0.0.0:9080/services/version.SecurityHttpsSoap11Endpoint?wsdlsoap地址的位置将是:
soap:address location="https://0.0.0.0:9080/services/version.SecurityHttpsSoap11Endpoint"现在我想要的是wsdl url应该与soap地址位置不同,即
wsdl url应该是:
https://0.0.0.0:9080/services/version.Security?wsdlsoap地址的位置应该类似于:
soap:address location="https://0.0.0.0:9080/services/version.SecurityHttpsSoap11Endpoint"我该怎么做呢?提前谢谢。
发布于 2014-12-01 02:17:21
可以通过添加属性设置来定义CxfEndpoint,如下所示
<cxf:cxfEndpoint id="securityService"
address="https://0.0.0.0:9080/services/version.SecurityHttpsSoap11Endpoint"
endpointName="s:version.SecurityHttpsSoap11Endpoint"
serviceName="s:version"
wsdlURL="etc/version.wsdl"
xmlns:s="http://axisversion.sample">
<cxf:properties>
<entry key="publishedEndpointUrl" value="http://www.simple.com/services/test" />
</cxf:properties>
</cxf:cxfEndpoint>
</cxf:cxfEndpoint>https://stackoverflow.com/questions/27169275
复制相似问题