Friday, August 25, 2006

XFire Example: Contract First & Spring

From: Michael Vorburger
Subject: Proposed new XFire example: Use of wsgen/xfire (contract first), and Spring


The XFire distribution includes only one simple example of a "contract first" design (write WSDL/XSD and generate Java from it), the 'geoip-client'. There is also a simple 'spring' example in the current distribution.

I put together another, more complete such example, which runs wsgen with the JAXWSProfile. In addition, my example also ties the former together with Spring, showing both the XFireExporter as well as the XFireClientFactoryBean (which the 'spring' example does not).

ZIP is on


PS: If the ZIP does not work for you, you might have to follow the instructions that mvn prints, to locally install the the modules/xfire-jaxws-1.2-RC.jar found in the xfire-1.2-RC distribution, as that does not appear to be on the Codehaus repository today.


Blogger Unknown said...

Is this example meant to work.
I notice in the logs that you get the same error i do org.codehaus.xfire.XFireRuntimeException: Unable to parse WSDL at: THIS-IS-NEVER-READ-IF-SERVICENAME-AND-NAMESPACE-URL-ARE-SET. Nested exception is javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'THIS-IS-NEVER-READ-IF-SERVICENAME-AND-NAMESPACE-URL-ARE-SET'.: This file was not found: file:/C:/MyCode/Visana1/xfire-examples-wsgen-jaxws-spring12/THIS-IS-NEVER-READ-IF-SERVICENAME-AND-NAMESPACE-URL-ARE-SET


10 April, 2007 19:31  
Blogger Michael said...

Mark - try using the example as it was included in the actual (latest) XFire distribution (samples dir) - not the ZIP originally attached to my blog.

Email the xfire-user list if that still doesn't work.

10 April, 2007 22:06  
Blogger Unknown said...

Will do, thanks!

10 April, 2007 22:45  

Post a Comment

<< Home