So, my new ApplicationContext is now :
Code:
<bean id="consultWebService"
class="org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean">
<property name="serviceInterface">
<value>com.socgen.bva.cdn.consultationimagevaleur.IConsultationImageValeur</value>
</property>
<!-- <property name="portInterface">
<value>com.socgen.bva.cdn.consultationimagevaleur.ConsultationImageValeur.RemoteConsultationImageValeur</value>
</property> -->
<property name="wsdlDocumentUrl">
<value>
https://asys.dns21.socgen:50249/bva/servlet/glue/consultationImageValeurCDN.wsdl
</value>
</property>
<property name="namespaceUri">
<value>
http://www.socgen.com/wsdl/ConsultationImageValeur/
</value>
</property>
<property name="serviceName">
<value>ConsultationImageValeur</value>
</property>
<property name="portName">
<value>IConsultationImageValeur</value>
</property>
</bean>
And, I call :
Code:
BeanFactory factory = new XmlBeanFactory(new FileSystemResource("src/ApplicationContext.xml"));
service=(ConsultationImageValeur)factory.getBean("consultWebService");
But, I have the error :
Code:
21 juin 2006 10:27:41 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from file [D:\Utilisat\a432566\Mes Documents\Workspace\SpringTest\src\ApplicationContext.xml]
21 juin 2006 10:27:42 org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'consultWebService'
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'consultWebService' defined in file [D:\Utilisat\a432566\Mes Documents\Workspace\SpringTest\src\ApplicationContext.xml]: Initialization of bean failed; nested exception is javax.xml.rpc.ServiceException: Provider com.sun.xml.rpc.client.ServiceFactoryImpl not found
javax.xml.rpc.ServiceException: Provider com.sun.xml.rpc.client.ServiceFactoryImpl not found
at javax.xml.rpc.FactoryFinder.newInstance(FactoryFinder.java:44)
at javax.xml.rpc.FactoryFinder.find(FactoryFinder.java:137)
at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:58)
at org.springframework.remoting.jaxrpc.LocalJaxRpcServiceFactory.createServiceFactory(LocalJaxRpcServiceFactory.java:163)
...
And, I don't know where can i find this class, in what jar file ?