Chris Snape
Dec 15th, 2004, 05:33 AM
I have successfully set up and installed a web service within an Orion web server using Axis. I have been able to communicate with the web service using some client code based on the jpetstore example.
I am now trying to make the application more secure using Acegi so that any attempt to access the web service requires Basic Authentication. The web service still works correctly when I access it through code generated via .NET, Axis (WSDL2Java) and JDeveloper.
However, when I try to access the same web service using the code based upon the jpetstore example I get the following error:
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'jaxRpcProxy' defined in file [C:\CPS\IdeaProjects\SupportSystem\clientTicketCont ext.xml]: Initialization of bean failed; nested exception is javax.xml.rpc.ServiceException: Error processing WSDL document:
java.io.IOException: Server returned HTTP response code: 401 for URL: http://xxxx/supportsystem/ssint/soap/TicketService?wsdl
javax.xml.rpc.ServiceException: Error processing WSDL document:
java.io.IOException: Server returned HTTP response code: 401 for URL: http://xxxx/supportsystem/ssint/soap/TicketService?wsdl
at org.apache.axis.client.Service.initService(Service .java:278)
at org.apache.axis.client.Service.<init>(Service.java:193)
at org.apache.axis.client.ServiceFactory.createServic e(ServiceFactory.java:232)
at org.springframework.remoting.jaxrpc.LocalJaxRpcSer viceFactory.createJaxRpcService(LocalJaxRpcService Factory.java:152)
at org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor.afterPropertiesSet(JaxRpcPortClientI nterceptor.java:225)
at org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean.afterPropertiesSet(JaxRpcPortProxyFac toryBean.java:55)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1057)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:287)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:205)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:136)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:230)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:284)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationContext.java:83)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationContext.java:68)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationContext.java:59)
at com.easynet.supportsystem.client.modules.ticket.so ap.TicketServiceClient.main(TicketServiceClient.ja va:71)
Any feedback on this problem would be appreciated.
Regards,
Chris
I am now trying to make the application more secure using Acegi so that any attempt to access the web service requires Basic Authentication. The web service still works correctly when I access it through code generated via .NET, Axis (WSDL2Java) and JDeveloper.
However, when I try to access the same web service using the code based upon the jpetstore example I get the following error:
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'jaxRpcProxy' defined in file [C:\CPS\IdeaProjects\SupportSystem\clientTicketCont ext.xml]: Initialization of bean failed; nested exception is javax.xml.rpc.ServiceException: Error processing WSDL document:
java.io.IOException: Server returned HTTP response code: 401 for URL: http://xxxx/supportsystem/ssint/soap/TicketService?wsdl
javax.xml.rpc.ServiceException: Error processing WSDL document:
java.io.IOException: Server returned HTTP response code: 401 for URL: http://xxxx/supportsystem/ssint/soap/TicketService?wsdl
at org.apache.axis.client.Service.initService(Service .java:278)
at org.apache.axis.client.Service.<init>(Service.java:193)
at org.apache.axis.client.ServiceFactory.createServic e(ServiceFactory.java:232)
at org.springframework.remoting.jaxrpc.LocalJaxRpcSer viceFactory.createJaxRpcService(LocalJaxRpcService Factory.java:152)
at org.springframework.remoting.jaxrpc.JaxRpcPortClie ntInterceptor.afterPropertiesSet(JaxRpcPortClientI nterceptor.java:225)
at org.springframework.remoting.jaxrpc.JaxRpcPortProx yFactoryBean.afterPropertiesSet(JaxRpcPortProxyFac toryBean.java:55)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1057)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:287)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:205)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:136)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:230)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:284)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationContext.java:83)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationContext.java:68)
at org.springframework.context.support.FileSystemXmlA pplicationContext.<init>(FileSystemXmlApplicationContext.java:59)
at com.easynet.supportsystem.client.modules.ticket.so ap.TicketServiceClient.main(TicketServiceClient.ja va:71)
Any feedback on this problem would be appreciated.
Regards,
Chris