Note that there are some explanatory texts on larger screens.

plurals
  1. POsoapaction in WSDL using CXF
    primarykey
    data
    text
    <p>I am developing webservice using CXF. I use HTTP binding so according to <a href="http://www.w3.org/TR/wsdl#_soap:operation" rel="noreferrer">http://www.w3.org/TR/wsdl#_soap:operation</a> <strong>soapaction</strong> is mandatory for this type of transport. </p> <p>The problem is that I want to deploy the same application for test and production server. I would like to do it without rebuilding application or keeping external WSDL files, which will add one more thing on maintenance list.</p> <p>I had the same problem with <em>location</em>, but that one was trivial to solve. I used <em>publishedEndpointUrl</em> in endpoint configuration to set proper value. The value is retrieved during initialization of application from external property file, which I placed on classpath <em>tomcat/common/classes</em> .</p> <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:soap="http://cxf.apache.org/bindings/soap" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"&gt; &lt;bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt; &lt;property name="locations"&gt; &lt;list&gt; &lt;value&gt;classpath:ws.properties&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; &lt;/bean&gt; &lt;jaxws:endpoint xmlns:tns="http://example.org/ds" id="ds" implementor="org.example.Ds" wsdlLocation="wsdl/ds.wsdl" endpointName="tns:dsSOAP" serviceName="tns:Ds" address="/dsSOAP" publishedEndpointUrl="${publishedEndpointUrl}"&gt; &lt;jaxws:features&gt; &lt;bean class="org.apache.cxf.feature.LoggingFeature" /&gt; &lt;/jaxws:features&gt; &lt;/jaxws:endpoint&gt; &lt;/beans&gt; </code></pre> <p>I would like to achieve the same functionality for soapaction. The value for this attribute should be not relative URI. So for test it should be:</p> <pre><code>&lt;soap:operation soapAction="https://test.example.org/dsSOAP/operation1" /&gt; </code></pre> <p>and for production</p> <pre><code>&lt;soap:operation soapAction="https://example.org/dsSOAP/operation1" /&gt; </code></pre> <p>any idea how to achieve this?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload