Yes, you can use the same target for as many transports as you like. We have done this with HTTP/SOAP & JMS/SOAP
-Brice -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Chris Mathrusse Sent: Thursday, December 07, 2006 2:01 PM To: [email protected] Subject: [xfire-user] Multiple Transports for a single Service My environment is as follows: Spring 2.0 XFire 1.2.1 The Web Service I am exposing is functional exposing a class that takes an XmlBean as an argument, which is representative of an XmlDocument based upon a No Namespace schema. (XFire 1.2.3 seems to not support this by throwing exceptions) I want to configure my service not only with the defaul http transport but also with a JMS transport. Can my service be configured to support both? If not can I define 2 services with separate transports within the same namespace? I've attached my service configuration for your review. Thanks for the help.... <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <bean id="OrderServiceTarget" class="com.sybase.it.cosmos.web.services.OrderServiceImpl" autowire="byName"/> <xfire> <transports> <bean id="jmsTransport" class="org.codehaus.xfire.transport.jms.JMSTransport" xmlns="http://xbean.org/schemas/spring/1.0"> <constructor-arg ref="xfire"/> <constructor-arg ref="jmsConnectionFactory"/> </bean> </transports> </xfire> <service xmlns="http://xfire.codehaus.org/config/1.0"> <name>OrderService</name> <namespace>http://it.sybase.com/rosettanet/pip3A4/purchaseorder</namespa ce> <serviceClass>com.sybase.it.cosmos.web.services.OrderService</serviceCla ss> <serviceBean>#OrderServiceTarget</serviceBean> <style>document</style> <serviceFactory>org.codehaus.xfire.xmlbeans.XmlBeansServiceFactory</serv iceFacto ry> <!-- The additional properties to be set on the service --> <properties> <!-- Removes all import statements fromt the wsdl. --> <property key="wsdlBuilder.removeAllImports">true</property> </properties> </service> </beans> --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
