Jar introuvable qd appel WebServices
Je souhaiterai appeler un WebService via Spring et l'utiliser, j'ai éssayé différentes méthodes, mais aucune ne fonctionne. J'galère sur la doc...
Là, j'ai une classe non trouvé, quelqu'un sait où elle est ? Dans quel .jar ?
Merci.
ApplicationContext.xml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<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:// ....... /consultationImageValeurCDN.wsdl
</value>
</property>
<property name="namespaceUri">
<value>
http:// .... /ConsultationImageValeur/
</value>
</property>
<property name="serviceName">
<value>ConsultationImageValeur</value>
</property>
<property name="portName">
<value>IConsultationImageValeur</value>
</property>
</bean>
</beans> |
Mon appel:
Code:
1 2
| BeanFactory factory = new XmlBeanFactory(new FileSystemResource("src/ApplicationContext.xml"));
service=(ConsultationImageValeur)factory.getBean("consultWebService"); |
Mon rapport d'erreur:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| 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)
at org.springframework.remoting.jaxrpc.LocalJaxRpcServiceFactory.createJaxRpcService(LocalJaxRpcServiceFactory.java:178)
at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.prepare(JaxRpcPortClientInterceptor.java:290)
at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.afterPropertiesSet(JaxRpcPortClientInterceptor.java:268)
at org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean.afterPropertiesSet(JaxRpcPortProxyFactoryBean.java:55)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:966)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:358)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at socgen.test.spring.TestAppli.serv(TestAppli.java:64)
at socgen.test.spring.TestAppli.maMethode(TestAppli.java:38)
at socgen.test.spring.TestAppli.main(TestAppli.java:27) |