Results 1 to 4 of 4

Thread: Webservice / Webmodule

  1. #1
    Join Date
    Jul 2009
    Posts
    8

    Default Webservice / Webmodule

    I am really stuck here... I canīt find a working sample of webservice (server/cliente) as a webmodule for dmserver.

    First of all in Spring documentations I found this:

    17.5. Web services
    Spring provides full support for standard Java web services APIs:
    *Exposing web services using JAX-RPC
    *Accessing web services using JAX-RPC
    *Exposing web services using JAX-WS
    *Accessing web services using JAX-WS

    This means that i can get it to work only with "import library spring 2.5.6" ?

    Or I have other dependencies?

    I really try to get the simplier first, no AXIS, NO CXF(XFIRE), NO NOTHING..

    Even SimpleJaxWsServiceExporter does not creat the service endpoint in a webmodule bundle.

    I am totally lost all samples I found is not DM Server specific, and probably I missing some think to map de service URL...

    I dreaming to get my hands on a working as a webmodule "Hello World" sample...

    Can anyone point me some directions?

    Thanks!

  2. #2
    Join Date
    Oct 2008
    Posts
    493

    Default

    Before I start looking at this in detail, I'd like to know what version of dm Server you're targetting. Would I be right in thinking that, as you've mentioned Spring 2.5.6 above, you're using dm Sever 1.0.2?
    Andy Wilkinson
    SpringSource

  3. #3
    Join Date
    Jul 2009
    Posts
    8

    Default DM Server Version

    Thanks for helping Andy!

    Yes I using DM Server 1.0.2.

    best regards,

  4. #4
    Join Date
    Oct 2008
    Posts
    493

    Default

    Apologies for the slight delay.

    I've produced a very simple sample project based on the account service sample in the remoting section of the Spring 2.5 documentation. I've attached it to this post.

    The sample project should work fine with STS 2.1.0.SR01 (that's what I used to make it). It should run fine on dm Server 1.0.2. dm Server will need to be running on Java 6 as it makes use of the embedded JAX-WS support in the JDK.

    There's only a single bundle, which is a plain bundle rather than a Web module. However, it also works fine as a Web module, i.e. with Module-type: web specified in the bundle's manifest. With the bundle installed in dm Server the account service should be available at http://localhost:9999/AccountService.

    I hope this gives you a reasonable starting point. Good luck, and let us know how you get on.
    Attached Files Attached Files
    Andy Wilkinson
    SpringSource

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •