5 Replies Latest reply on Jul 3, 2014 6:17 PM by brmeyer

    Does S-RAMP support Restful Services and/or WADLs as artifacts?

    jkampf

      I am looking into a service registry for my companies SOA implementation and UDDI seems to be so heavy weight.  I am looking at using Apache JUDDI because it is one of the few UDDI implementations that supports WADLs and Restful services.

       

      I really like the concept of S-RAMP. However everything I read for S-RAMP is geared towards WSDLs.  No mention of how to register Restful Services and/or WADLs.

       

      Anyone have anything on this?  Any examples, direction or documentation?

       

      Thanks,

       

      Joe Kampf

        • 1. Re: Does S-RAMP support Restful Services and/or WADLs as artifacts?
          kurtstam

          Hi Joseph,

           

          You may know I actually also work on the jUDDI project . jUDDI is registry (pointers to where stuff is) while S-RAMP is a repo containing the actual stuff. You are right that we fully support WADL in jUDDI. Depending on your needs the registry can be all you need, but most people have a need for both a registry and a repository. You can store WADL content in S-RAMP right now, but we did not implement a model for it yet (like we did for WSDL), nor is there a specification for it in the S-RAMP spec. S-RAMP in extensible though, and we've already added models for for instance SwitchYard. It'd be great to have a model for WADL. Want to give it a shot implementing it ? We have easy API's around this - so it's easy to write a plugin for it. I can help you get you going.

           

          Cheers,

           

          --Kurt

          • 2. Re: Does S-RAMP support Restful Services and/or WADLs as artifacts?
            eric.wittmann

            I agree that it would be amazing to have a WADL model (rhyming FTW!) in s-ramp.  And Kurt is right that it's actually super easy to implement a custom Deriver, especially if the source artifact is XML based.  So if you wanted to tackle that as a contribution we would be thrilled!

             

            That said, if you don't have the time/ability/inclination to do an implementation, you could contribute a feature request with documentation regarding what specific content you'd like to see derived from the source WADL file.  That would be super helpful as well.

             

            Feature Request:  [SRAMP-404] Create a Deriver for WADL files - JBoss Issue Tracker

            • 3. Re: Does S-RAMP support Restful Services and/or WADLs as artifacts?
              jkampf

              I will look into creating a WADL Deriver.

               

              I also think it would be good if XSDs had the namespace as a property.  This would help create relationships on the WADL representations for the XSD elements.  Would this be done via a Custom Deriver, or would modifications to the existing Deriver be the way to go?

               

              Thanks,

               

              Joe

              • 4. Re: Does S-RAMP support Restful Services and/or WADLs as artifacts?
                eric.wittmann

                It turns out that the XSD targetNamespace is already a property set on the XsdDocument artifact, and it's already being set by the XsdDeriver.

                 

                In fact, the QName of an XSD element or type is already used to create links between derived WSDL artifacts and their appropriate schema types.  For example, during the "link" phase of the WSDL Deriver for a derived WSDL Part artifact, the WsdlLinker will query the S-RAMP repository looking for an appropriate (previously derived) schema type or element.  There's some more work to be done on this relative to dis-ambiguating the results (there may be multiple versions of the same Schema in the repository, and therefore we may find multiple copies of the same Schema Element by QName).  But it's a start!

                 

                Feel free to use the WSDL deriver and linker as a guide to how the WADL one might work.  And also please feel free to offer suggestions for improvement!

                • 5. Re: Does S-RAMP support Restful Services and/or WADLs as artifacts?
                  brmeyer

                  Hey Joseph!  Out of curiosity, was any progress made toward the deriver?  I might start taking a look at it, but thought I'd check to see if anything was already started.  Thanks