This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Runtime configuration of JaxWsPortProxyFactoryBean

Aug 7th, 2012, 03:07 PM

I am going to need to make several JaxWsPortProxyFactoryBeans to access soap services but I will not know their base url for the wsdlDocumentUrl and endpointAddress until runtime. I am thinking that possibly I could use Spring Configuration class(es), but I can't get the syntax right. What would be the syntax to translate this xml based config into a Spring Configuration class? or any other suggestions on how I could provide the base url at runtime? or other suggestions on best way to access soap services when getting the base url at runtime?

Working with just static xml configuration as a test. I was able to get that to work and included it below. But, I have tried making an @Configuration class but I am stomped on JaxWsPortProxyFactoryBean becomes a Lineup (my soap service) type (included below) In Java Configuration, I can't cast it. Suggestions?