Announcement Announcement Module
No announcement yet.
xfire wsdl question Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • xfire wsdl question

    Hello All,
    I am working on a project that already has WSDL and XML schemas designed. I have written the business logic for these services as spring beans and I am looking to turn these beans into web services using XFIRE.

    I got some example web services that call spring beans up and running pretty quick, but I was wondering if I can generate server stub implementations from my WSDLs that would be implemented using spring and xfire.

    An example WSDL is here:

    One might ask why I am going at this completely backwards? Well, I had the entire solution implemented using JMS and our enterprise service bus does not support JMS so I need to rewrite the edge components. The business logic is essentially the same, but I need a server stub to call my business logic.

    I would like to use XFIRE to expose these services because it seems to work nice with spring. With the example WSDL in the link above, can anyone give me some advice?


  • #2
    Making some progress

    Hello All,
    I did complete a simple J-unit test which generates stubs from WSDLs:

    import junit.framework.TestCase;
    import org.codehaus.xfire.gen.Wsdl11Generator;
    public class GenerateStubsFromWSDL extends TestCase{
    	public void testGenerate()
       	 Wsdl11Generator gen = new Wsdl11Generator();
    	 try {
    	} catch (Exception e) {
    		// TODO Auto-generated catch block
    I am going to try to make these into spring beans so I can inject the business logic dependencies into them... I will post some sample code when I get that going or perhaps some more questions if I get stuck