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 Trackback on September 2, 2014 at 12:37 PM
- 2 Trackback on May 27, 2014 at 4:30 PM
Hi Siva,
Thanks for the tutorial. Can you check the Google Drive, please? The files are no longer available.
Thanks Buddy!
Yesterday..i updated the links…could you recheck once..i will also take a look..
did the update of links again..please do verify
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.
Brgds
Patrick
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..
Reblogged this on mylearningbits.
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
Never tried from command line…can you open it from soap ui and try it. Or can u run cmd as administrator and check..
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
CUST
—————-
Response Document
The invocation resulted in an error: Not Found.
—————-
Response Metadata
1164
text/html; charset=UTF-8
Wed, 26 Nov 2014 19:30:08 GMT
3
Not Found
UTF-8
404
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.
Thanks.
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.
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.
Thanks,
Vivek
Vivek, the following link might help you in that regard.
http://www.soapui.org/Service-Mocking/mocking-soap-services.html
Thanks Shiva, Mock service is working after importing the OSBTutorialMockServices-soapui-project.xml file to SOAPUI
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!
Could you try giving the namespace alias for Check in your expression and see..
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’.
How Check/text() came into picture when x is initialized with literal value. Could you initialize x like JMS and use xpath as ./text()
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.
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>
When you are initializing the variable x with value JMS, you should use Xpath as ./text() in conditional branch. This will work for you.
Thank you Shiva. Yeah, Please upload if you can. Appreciate the early reply.
given the link in the post itself. could you try once.
Thank You Siva :)
Hi Shiva, Tutorial is great. But I am unable to downloand wsdls. In document, links are not highlighted.
Will verify and upload again.if required…
Great document for beginners. Much appreciated. Thanks
Really a very helpful Siva
Thank you for the Hands-on. It is Very helpful.
Thanks a lot bro.. This is a very nice and will deftly be helpful.