THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
 
  Apache ServiceMix NMR #usernavbar() #printableicon() #feedicon()  
When you contribute content to this Wiki, you grant a license to the ASF for inclusion in ASF works (as per the Apache Software License).
  1. Quick Start

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

1. Quick start

Installing the NMR

  • Install ServiceMix Kernel
  • Inside the Runtime console, launch the following commands:
    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-snapshot.xml
    nmr   
    
    Note that it can take a while to download all the needed bundles.

You should have the following output:

gnodet@Guillaume-Nodets-MacPro.local:/> features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-snapshot.xml
gnodet@Guillaume-Nodets-MacPro.local:/> nmr
This feature is not yet installed.  Do you want to install it (y/n) ? 
Installing feature.  Please wait...

Installing an example

  • Inside the Kernel console, launch the following commands:
    features addUrl http://svn.apache.org/repos/asf/servicemix/smx4/obr-repo/features-snapshot.xml
    wsdl-first-example
    
  • Alternatively, you can also use the following commands:
    osgi install -s jbi:mvn:org.apache.servicemix/servicemix-shared-compat/3.2.1/zip/installer
    osgi install -s jbi:mvn:org.apache.servicemix/servicemix-jsr181/3.2.1/zip/installer
    osgi install -s jbi:mvn:org.apache.servicemix/servicemix-http/3.2.1/zip/installer
    osgi install -s jbi:mvn:org.apache.servicemix.samples.wsdl-first/wsdl-first-sa/3.2.1/zip
    
  • Check the JBI components and Service Assembly are started:
    gnodet@Guillaume-Nodets-MacPro.local:/> jbi list
    Shared Libraries
    ----------------
    servicemix-shared - 3.2.1 - ServiceMix :: Shared Compat
    
    Components
    ----------
    servicemix-jsr181 - Started - ServiceMix :: JSR-181 Service Engine
    servicemix-http - Started - ServiceMix :: HTTP
    
    Service Assemblies
    ------------------
    wsdl-first-sa - Started - ServiceMix :: Samples :: WSDL first :: SA
    
  • Point your web browser to the following location to see the WSDL of the deployed web service:
    http://guillaume-nodets-macpro.local:8192/PersonService/main.wsdl
    
  • Download the following html locally, browse it in your web browser and see the service in action:
    http://svn.apache.org/repos/asf/servicemix/smx3/trunk/samples/wsdl-first/client.html
    
  • Shutdown the Service Assembly by running the following command:
    jbi shutdown wsdl-first-sa
    

#top

  • No labels