Announcement Announcement Module
Collapse
No announcement yet.
Programmatic xsd & wsdl generation Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Programmatic xsd & wsdl generation

    Hi, I'm working on a system that already have many services developed using Spring core. Now I want to publish some of them via web services. I'm trying to develop some automatic mechanism to do that, but I'm falling at the "automatic" generation of the xsd and wsdl.

    I'm trying to generate the xsd with JaxB, but I don't want to use annotations because it would be too hard.

    Does anyone know some framework or library that could help me?
    Thanks!!!

    Leandro

  • #2
    Can you describe more precisely the problems you're facing?

    Comment


    • #3
      Thanks for replying tareq, the problems I have are:
      *.- Generation of xml schema from my java classes without annotating them. I've tried to do this with JaxB (the reference implementation) but I couldn't find the way to configure the generation without using annotations.

      *.- Generation of wsdl from a service interface including the xml schema and configuring ws-addressing and ws-security. Is it possible using DefaultWsdl11Definition class?

      *.- I want to develop some marshaller/unmarshaller that, respecting the generated xsd, translates xml to java and vice versa. I would like not using annotations or mapping files to relate xml to java classes.

      I know that there is an eclipse plugin that using axis creates the wsdl and some other files but I don't know how this integrates with Spring.
      Thanks!!!

      Leandro

      Comment


      • #4
        Spring-WS is a contract first framework. It does not expose automatically existing objects as web services.

        For the xsd generation issue, you can infer the xsd from sample xml messages. Check out Trang, an open source tool that can do that.

        As for the OXM framework, check out XStream, which does not need external configuration to marshall/unmarshall objects. It is also supported by Spring OXM.

        Comment


        • #5
          Thanks tareq.

          What do you think about the integration between Spring and Axis? and Spring-WS and Axis? Do you think it could be useful?
          Thanks!

          Leandro

          Comment

          Working...
          X