You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "C. Manchet" <ce...@orange-ftgroup.com> on 2008/10/01 11:31:38 UTC

Re: JaxWsProxyFactoryBean creation fails if the value of serviceClass property doesn't ended with "Service"

Hi,
I try the 2nd solution, so I modify the Spring Configuration and it's OK now
:

  	<bean id="serviceName" class="javax.xml.namespace.QName">
		<constructor-arg type="java.lang.String" value="urn:Securite"/>
 		<constructor-arg type="java.lang.String" value="Securite"/> 		
 	</bean>
 	
 	<bean id="endpointName" class="javax.xml.namespace.QName">
 		<constructor-arg type="java.lang.String" value="urn:Securite"/>
 		<constructor-arg type="java.lang.String" value="SecuriteSOAP11port"/> 		
 	</bean>
	<bean id="securiteServiceFactory"
class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">	
		<property name="serviceClass"
value="test.securite.client.cxf.SecuritePortType"/>
		<property name="address"
value="http://localhost:9000/securitecxf/services/Securite"/>
		<property name="wsdlURL" value="classpath:wsdl/securite.wsdl" />
		<property name="serviceName" ref="serviceName"/>		
		<property name="endpointName" ref="endpointName"/>						
	</bean>

I think the first solution is not the good way, because we are on the client
side and use the classes generated by wsdl2java and don't want to modify
them.

Perhaps you could explain in the documentation these JAXWsProxyFactoryBean's
properties and their default values (N.B. if the endpointName is not found
in wsdl, the (unique ?) port defined in WSDL is used).

The serviceClass property is the service endpoint Interface, and not the
Service class as I believed.


Thank you very much for your help.
-- 
View this message in context: http://www.nabble.com/JaxWsProxyFactoryBean-creation-fails-if-the-value-of-serviceClass-property-doesn%27t-ended-with-%22Service%22-tp19737751p19757117.html
Sent from the cxf-user mailing list archive at Nabble.com.