Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've had similar problems (CXF 2.2.7) and was able to solve it by adding the <code>serviceName</code> and <code>endpointName</code> attributes to my <code>&lt;jaxws:client&gt;</code> bean definition. check out the section "Configuring a Spring Client (Option 1)" here: <a href="https://cwiki.apache.org/CXF20DOC/jax-ws-configuration.html" rel="nofollow">https://cwiki.apache.org/CXF20DOC/jax-ws-configuration.html</a> for more information on the attributes.</p> <p>Note: I also have the <code>wsdlLocation</code> attribute defined as well. This is likely necessary for CXF to find the XSDs used by the service.</p> <p>Here's an example of what I have:</p> <pre><code>&lt;jaxws:client id="client" serviceClass="com.example.ServiceInterface" address="http://example.com/endpoint" wsdlLocation="WEB-INF/wsdl/SampleWSDLFile.wsdl" serviceName="s:SampleService" endpointName="s:SampleServicePort" xmlns:s="http://www.example.com/some/namesapce"&gt; ... &lt;/jaxws:client&gt; </code></pre> <p>I also noticed when I had this problem the whole schema was printed to my log file by the <code>org.apache.cxf.wsdl.EndpointReferenceUtils</code> class every time the client was invoked. This behavior went away when I setup my client bean like the one above. I wonder if you're seeing something like that too...</p> <p>Another detail I should mention is that I had a lot of unexpected behavior from CXF when I didn't use all the CXF-provided libraries outlined in the <code>WHICH_JARS</code> file. I would also try adding them to the build so they override any server or Java provided libraries. You can always remove them later if they aren't necessary.</p>
    singulars
    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