Hello,
configuring my spring client as described in the documentation, I get
the following trace, whenever the server returns a SoapFault.
The main reason is that javax.xml.soap.SOAPFactory tries to load the
class org.apache.axis.soap.SOAPFactoryImpl
Why would my client do this?
How do I configure my client?

Best regards Ralf

Client configuration:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:jaxws="http://cxf.apache.org/jaxws";
        xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schema/jaxws.xsd";>

    <bean id="client" class="de.oc.schulung.QuoteReporter"
      factory-bean="clientFactory" factory-method="create"/>

        <bean id="clientFactory"
class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
          <property name="serviceClass"
value="de.oc.schulung.QuoteReporter"/>
          <property name="address"
value="http://localhost:8080/SpringRemotingServer/QuoteReporter"/>
        </bean>
</beans>

Message:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
 <soap:Body>
  <soap:Fault>
   <faultcode>soap:Server</faultcode>
   <faultstring>Unmarshalling Error : cvc-maxLength-valid: Value 'IBM'
with length = '3' is not facet-valid with respect to maxLength '2' for
type 'ticker-symbol-type'. </faultstring>
  </soap:Fault>
 </soap:Body>
</soap:Envelope>
 
Trace:

javax.xml.ws.WebServiceException: Cannot create SAAJ factory instance.
        at
org.apache.cxf.jaxws.binding.soap.SOAPBindingImpl.getSOAPFactory(SOAPBin
dingImpl.java:118)
        at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:150)
        at $Proxy32.getQuote(Unknown Source)
        at ClientTest.pruefeEinfachenClient(ClientTest.java:18)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethod
Runner.java:99)
        at
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRun
ner.java:81)
        at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAf
terRunner.java:34)
        at
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.j
ava:75)
        at
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45
)
        at
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestC
lassMethodsRunner.java:66)
        at
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRu
nner.java:35)
        at
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRun
ner.java:42)
        at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAf
terRunner.java:34)
        at
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
        at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4Tes
tReference.java:38)
        at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.ja
va:38)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:460)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:673)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
ner.java:386)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
nner.java:196)
Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory:
Provider org.apache.axis.soap.SOAPFactoryImpl not found
        at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:138)
        at
org.apache.cxf.jaxws.binding.soap.SOAPBindingImpl.getSOAPFactory(SOAPBin
dingImpl.java:113)
        ... 23 more

Reply via email to