OSB 11g – A Hands-on Tutorial

I published a OSB11g tutorial considering the use case described in my earlier blog posts. The tutorial can be accessed from here as I am not sure on how to place it in OTN. I would like to know your valuable comments on this. The WSDLs and other material used in this tutorial can be downloaded from here.


33 Responses to “OSB 11g – A Hands-on Tutorial”

  1. 1 Sappy July 5, 2016 at 9:23 PM

    Hi Siva,

    Thanks for the tutorial. Can you check the Google Drive, please? The files are no longer available.

    Thanks Buddy!

  2. 4 Patrick March 19, 2015 at 8:32 PM

    Hi Siva, I am a total beginner to all related matter. I’m trying the tutorial. When testing the BS ‘UserIDServiceBS’ from OEPE test console I always get ‘The call has lead to an error: NotFound.’ in the response document part. Also, I am very confused about endpoint URIs entered in BS. They seem not to relate to anything, right? Can I just chose any?
    I hope the question isn’t too stupid, but I am really kind of lost in this new material.

    • 5 svgonugu March 19, 2015 at 8:42 PM

      Hi Patrick, thanks for trying out. Actually, i used SOAP UI mock services to imitate the service provider. And the url points to those mock services. If you want, you can find the soap ui project here in this link. It’s always recommended to test business services alone so that you can identify any problems with the service provider.

      Otherwise, you can have your own implementation of the services in java or language of your choice by using the WSDLs i have provided. Hope this helps..

  3. 7 harry December 9, 2014 at 1:26 PM

    hi shiva,

    i try to run your mockupservice, but it can be run..
    this is my command :
    mockservicerunner.bat -m “OSBTutorial MockService” “C:\Users\pcn\osb\osb_hands_on\mockup\OSBTutorialMockServices-soapui-project.xml”

    and i got this message :

    2014-12-09 14:48:15,309 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\pcn\soapui-settings.xml]
    2014-12-09 14:48:18,666 INFO [WsdlProject] Loaded project from [file:/C:/Users/pcn/osb/osb_hands_on/mockup/OSBTutorialMockServices-soapui-project.xml]
    2014-12-09 14:48:19,559 INFO [SoapUIMockServiceRunner] Running MockService [OSBTutorial MockService] in project [OSBTutorialMockServices]
    2014-12-09 14:48:19,560 INFO [SoapUIMockServiceRunner] Press any key to terminate
    2014-12-09 14:48:19,560 INFO [SoapUIMockServiceRunner] Started 0 runners
    2014-12-09 14:48:20,562 INFO [SoapUIMockServiceRunner] time taken: 1002ms

    can you tell me, where my mistake?

    thanks siva

  4. 9 Marcos November 27, 2014 at 1:13 AM

    Thanks a lot.

    I did at pg 21, but i get error 404 at test Bussiness Service. Someone get this problem?

    Business Service Testing – BusinessService


    Response Document
    The invocation resulted in an error: Not Found.
    Response Metadata

    text/html; charset=UTF-8
    Wed, 26 Nov 2014 19:30:08 GMT

    Not Found

    • 10 svgonugu November 27, 2014 at 11:04 AM

      Hi, What’s the endpoint you are using for business service. If you are using the mockservice similar to what mentioned in tutorial, make sure that your service is running.
      You can just try to access the endpoint given in your business service in browser by appening ?wsdl at the end of the url.

  5. 12 vivek June 23, 2014 at 10:30 AM

    Great document, I have been searching for OSB tutorials for some time, and this is the best tutorial i have seen.
    Thanks a lot for sharing, really helpful.

  6. 13 vivek June 19, 2014 at 10:34 AM

    Hi Shiva,
    Could you please also explain how to setup soapUI mock service.
    I am new to SoapUI and not able to proceed with this tutorial because of that.


  7. 16 ed April 29, 2014 at 10:30 PM

    Siva, One thing I am struggling with in OSB is conditional branching on multiple values. I have to check if an element in my incoming XML is one of 10 values. If so, I write the message to JMS else I do not. So I did this:

    Proxy -> PipeLine Pair -> Branch Node

    In the Pipeline node, I have an ‘If then’ to check the element against the 10 values. If so, I set a variable say ‘x’ with JMS

    Now in my Branch node, I set:
    In Variable = x
    XPath = ./Check/text()
    and in the branch I check if = ‘JMS’.

    However, the default branch is always executed. Could you please let me know your thoughts on solving this? Thanks!

    • 17 svgonugu April 30, 2014 at 2:49 PM

      Could you try giving the namespace alias for Check in your expression and see..

      • 18 ed April 30, 2014 at 8:32 PM

        I set the variable x = JMS
        So there was no namespace involved. Now in my Branch node, I set:
        In Variable = x
        XPath = ./Check/text()
        and in the branch I check if = ‘JMS’.

        • 19 svgonugu April 30, 2014 at 9:26 PM

          How Check/text() came into picture when x is initialized with literal value. Could you initialize x like JMS and use xpath as ./text()

          • 20 ed May 1, 2014 at 11:56 PM

            My bad. I meant I assign the variable like so:
            x= JMS
            And then in the branch node, I use the xpath as mentioned in the earlier comment.

            I did try using a literal value as well by setting x=’JMS’. The problem with this is that the conditional branch expects a XPath so I gave ./text() but this results in a runtime error:
            BEA-382108: XPath can only be executed against XML or MFL content

            So looks like one cannot use a string literal in this case.

            • 21 ed May 2, 2014 at 12:03 AM

              Ok, so for some reason the comment removes the XML tags ! I was saying the variable x is set to an XML element called Check with a value of JMS but the comment system seems to remove the XML.

              Let me try with entities:

              x = <Check>JMS</Check>

  8. 23 Rishabh April 28, 2014 at 7:11 PM

    Thank you Shiva. Yeah, Please upload if you can. Appreciate the early reply.

  9. 26 Rishabh April 28, 2014 at 12:40 PM

    Hi Shiva, Tutorial is great. But I am unable to downloand wsdls. In document, links are not highlighted.

  10. 28 Suresh April 25, 2014 at 7:02 PM

    Great document for beginners. Much appreciated. Thanks

  11. 29 Suresh Avula April 17, 2014 at 12:14 PM

    Really a very helpful Siva

  12. 30 safiqksm April 5, 2014 at 10:59 PM

    Thank you for the Hands-on. It is Very helpful.

  13. 31 Shiva April 4, 2014 at 9:27 PM

    Thanks a lot bro.. This is a very nice and will deftly be helpful.

  1. 1 Links | Siva's Blog Trackback on September 2, 2014 at 12:37 PM
  2. 2 SOA Community Newsletter May 2014 | SOA Community Blog Trackback on May 27, 2014 at 4:30 PM

Leave a Reply to ed Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 379 other subscribers

Enter your email address to follow this blog and receive notifications of new posts by email.

%d bloggers like this: