Saturday, 20 February 2016

List of BPEL Activities1



        List of BPEL Activities1

Assign Actitivity: This Activity provide a method for manipulation, such as copying the contents of one variable to another. Copy operation enables you to transfer information between variables, expressions, end points& other elements

Wait Activity: This Activity allows a process to specify a delay for a certain period or until a certain deadline is reached. A typical use of this activity is to invoke an operation at a certain time.
                           The wait activity is a Asynchronous process because it gives response after some period of time. In BPEL 2.0, the Wait dialog includes a Documentation tab & doesn't include a skip condition tab.


Terminate Activity: A Terminate Activity enables you to end the task of an Activity. This Activity is replaced by the exit activity in BPEL 2.0
         (For example: if a clients bad credit history or social history number is identified invalid, a loan application process is terminated, & the clients loan application is never submitted to the service loan provider.)


 Empty Activity: This Activity only used for representation purpose, it does nothing. This Activity enables you to insert a no operation instruction into a process, This Activity is useful when you must use an Activity that does nothing. In BPEL 2.0 the empty dialog includes a Documentation tab & doesn't include a skip condition tab.


 Invoke Activity: An Invoke Activity directs a web service to perform an operation. Or with an invoke activity a process can call another web service that has been defined as a partner. The Invoke can be either Synchronous or Asynchronous


 Receive Activity: This activity specifies the partner link from which to receive information and the port type and operation for the partner link to invoke. This activity waits for an asynchronous callback response message from a service, such as a leave approval service,while the BPEL Process is waiting, it is dehydrated(compressed and stored) until the callback message arrives. The receive activity plays an important role in the life cycle of a business process.


Reply Activity: A reply activity is used for sending a response after receive activity has been called. A replay is only useful in a synchronous interaction. An asynchronous reaction always has to be use of an invoke.
The combination of a receive and a reply activity forms a request-response operation on the WSDL port type for the process.



Pick Activity: The Pick will wait for the specified time (or) The Pick Activity waits till one event in a set of events occurs.When an event occurs the activities associated event are executed. Generally it is used for Leave Process, Loan Process. The two branches of Pick Activity are OnMessage & OnAlarm.


 Switch Activity: This activity consists of an ordered list of one or more conditional branches defined in a case branch, followed optionally by an otherwise branch. The branches are considered   in the order in which they appear. 
             The first branch whose condition is true is taken and provides the activity performed for the switch. If no branch with a condition is taken, then the otherwise branch is taken. If the otherwise branch is not explicitly specified, then an otherwise branch with an empty activity is assumed to be available.
            The switch activity is complete when the activity of the selected branch completes. A Switch Activity is differs in functionality from a flow activity. This Activity is replaced by the if activity in BPEL 2.0



  While Activity: In BPEL, whenever you think of a loop, think of a while. There is no for loop or do while.
            This activity supports repeated performance of a specified iterative activity. The iterative activity is repeated until the given while condition is no longer true. In BPEL 2.0, the While dialog includes a Documentation tab & doesn't include a skip condition tab.



Scope Activity: In a Programming language Scope is a group of variables and statements. In BPEL a Scope is a group of Variables and activities.
            A Scope Activity is a structured activity & it's also container activity, in that it contain other activities. A Parent scope contain child scopes, each with the possibility of creating their own variables. The Primary or parent scope variables are visible from within the whole process, while variables of the child scope are not visible to the parent.
            You can use a scope to contain a unit of work, making it easy to manage and execute, and if necessary reverse. For example, if a customer cancels a paid ticket order, the money must be returned & the ticket cancelled, without affecting orders. you can use a scope to manage these activities as a unit. Each scope offers a compensation handler, a fault handler & an event handler, variables.     




 Sequence Activity: The Sequence activity arranges and executes a collection of activities sequentially in an ordered list. In a Sequence, the first activity in a sequence executes, and when it finishes, the second activity begins.  The activity is complete when the last activity in the Sequence is finished. In a Scope more than one activity & those activities should be kept in a sequence.

o      Validate Activity: Validate variables in the list against their XML schema.

Tuesday, 9 February 2016

SOA Basic Interview Questions

SOA Basic Interview Questions



Question : What is SOA?
Ans: Service Oriented Architecture (SOA) is used to develop Enterprise applications by using a collection of services which communicates each other. Service-Oriented Architecture (SOA) is a set of principles and methodologies for designing and developing software in the form of interoperable services.

Question : Is Oracle SOA same as Oracle Fusion Middleware? 
Ans: No because SOA is one of the parts in Fusion middleware and SOA behaves like user interface where as Fusion is big platform 

Question :Principles of SOA? 
Ans:
  • Loose coupling
  • Re-usability 
  • Interoperability 
  • Flexible 

Question :  What is SCA? 
Ans: Service Component Architecture defines how various enterprise pieces are created and assembled together as modular components to increase IT Sustainability and flexibility. SCA provides a programming model for building applications and systems based on a Service Oriented Architecture. In simple terms, its like a platform on which you deploy your SOA applications in a more standard,easier and flexible manner.

Question :What is the difference between 10g and 11g?
Ans: 
  • SCA architecture was followed in 11g and not in 10g 
  • In 11g you can put all your project SOA components in composite.xml file and deploy as a single deployment unit to single server, where in 10g you have to deploy each component to the respective server (i.e. ESB to ESB server, BPEL to BPEL Server) 
  • Basically all the SOA components like BPEL, ESB (Called Mediator in 11g), & OWSM are brought into one place in 11g using SCA composite concept. 
  • The major difference between 10g & 11g would be the app server container. 10g by default runs onOC4J while 11g runs on Web logic Server. 
  • In 10g every BPEL is a separate project, but in 11g several components can make 1 project as SCA. 
  • In 10g consoles are separate for BPEL and ESB, but in 11g Enterprise Manager contains all. 
  • In 10g BAM and business rules are outside SOA Suite, but in 11g they are in SOA Suite. 
Question : What is xml?
Ans: extensible markup language is used to store or transfer data temporary. In XML all tags are user defined.

Question :Diff between well formed XML and valid XML?
Ans: If an XML satisfying all XML syntax rules then it called well formed XML, if an XML satisfying both XML rules and XSD definitions then it called valid XML.
All valid XML’s are well formed xml, but all well-formed XML may not be valid XML.

Question :XML syntax rules?
Ans:              XML Tags are Case Sensitive
a.     All XML Elements Must Have a Closing Tag
b.     XML Elements Must be Properly Nested
c.     XML Documents Must Have a Root Element
d.    XML Attribute Values Must be quoted

Question :What is XSD?
Ans: XSD (XML Schema definition) is used to define the structure of an XML. An XML Schema:
·         defines elements that can appear in a xml document
·         defines attributes that can appear in a xml document
·         defines the order of parent and child elements
·         defines data types for elements and attributes
·         Defines default and fixed values for elements and attributes.

Question :What is namespace?
Ans: XML namespaces provide a simple method for qualifying element and attribute names used in xml or  Namespace are a simple and straightforward way to distinguish names used in xml documents. namespace logically creates a separate room for the element and attribute definitions. XML Namespaces provide a method to avoid element name conflicts.

Question :What is target namespace?
Ans: A target name space in XSD used to represents all the element and attribute definitions in that current XSD.

Question: Different  types of elements in XML?
Ans: Simple type:A simple element is an XML element that contains only text. It cannot contain any other elements or attributes.
Complex type:if an element contains complex structure like child elements, attributes then it called complex type.

QuestionDifference between import and include in namespace?
Ans:  If the importing XSD namespace is equal to the current target namespace then we have to use include keyword, If the importing XSD name space is different from the current XSD target namespace then use IMPORT keyword.

QuestionHow to specify mandatory and optional elements in XSD? Or how to specify xml element occurrence in XSD?
Ans: by using keywords minoccures and maxoccures , by default minoccures=1 and maxoccures=1 (i.e all fields are mandatory).

QuestionHow to specify restrictions in XSD for xml element values?
<xs:restriction base="xs:string">

      <xs:pattern value="[a-z]"/>
    </xs:restriction>

<xs:restriction base="xs:string">

      <xs:length value="8"/>
    </xs:restriction>



Question : What is Web Service ?

Answer: Web service is a piece of code which is available on web (internet). That code of piece can be developed in any language (java, .net etc). A client invokes the web service by sending XML message and it wait for xml response (synchronously or asynchronously).

Or
Web services are application components, which are self-contained and self-describing and provide services based on the open protocol communication (i.e SOAP UI, HTTP over the net).




Question: What is WSDL ?
Answer : WSDL stands for Web Services Description Language, is an XML-based language for describing Web services and how to access them.

WSDL is a document written in XML. The document describes a Web service. It specifies the location of the service and the operations (or methods) the service exposes.



Question: Explain elements/tags of WSDL ?
Answer :  


Element Name
Description
types
It defines the xml schema data types used by the web service. inside types we have XSD.
message
Defines the data elements for each operation.Messages are connected to the elements in XSD, it brings details from TYPE. there are two messages,first message links to Process, second message links to Process response.
portType
Describes the operations that can be performed and the message involved.the port type element defines a web service,the operation that can performed and the messages that are involved.(port is logical grouping of operations),the request,response types is the most common operations,but WSDL defines four port type operations.
binding
It gives the information about the message level and transport level protocol
service
A collection of related endpoints, where an endpoint is defined as a combination of a binding and an address (URI)



Question:
What are the client service communication protocols? Or what are the service interaction patters or WSDL operation types.


 Ans:
   Service Type
Type
Definition
One Way
One-way
The service can receive a message but will not return a response
Synchronous
Request-response
The service can receive a request and will return a immediate response. Synchronous services works on single port
ASynchronous
Solicit-response
The service can receive a request and will return a delayed response.
Asynchronous services required two ports, one for request and one for send the response back.
Notification
Notification
The service can send a notification response without request



Question: Difference between Abstract and Concrete WSDL ?
Ans : Abstract WSDL contains only messages and operations. it dont have services and bindings.Abstract WSDL is also called Design time WSDL, Abstract WSDL is used by SOAP Server. 

Where as concrete WSDL contains messages, operations and transport specific information (JMS or Http).It also called run time WSDL, This is used by SOAP client. 


QuestionCan a WSDL contain multiple bindings?
 Ans: Yes, in each <binding> element we can specify specific communication protocols.



Question:What is End point URL, or End point location?

Ans: The full address of the service where it is running called “End Point Location” , or “End Point URI”. Ex:http://soathnologies:7001/soa-infra/ADD

Sunday, 7 February 2016

Basic Introduction about Middleware

Basic Introduction about Middleware:
               At First you go for SOA, we know basic knowledge about what the background of SOA. In first we have to know about MiddleWare.

Middleware: 

  • Middleware is the infrastructure which facilitates creation of Business Applications and Provides core services like Concurrency, Transactions, Threading, Messaging and the SCA Framework applications.
  • It also provide security and enables high availability functionality to enterprise
  • Middleware includes webservers, application servers, content management systems and similar tools that support application development and delivery.Image result for articles about middleware images
  • Oracle Fusion Middlewarem offers Complete Support for development, deployment and management of Application.
  • Lets come to the point SOA, SOA is an architecture it will define the design, you need something framework of platform where your services can deploy,you can develop, you can maintain them, that is Fusion Middlewae, which provide platform where your services can run For Example: You Consider Fusion Middleware as a Country&its States Consider as different Tools & SOA one part of the Middleware like SOA is One State Of Fussion Middleware. Every State has different rules, similarly SOA has there own rule, but they have centralized authority that is Fussion Middleware which is controlling by SOA.
  • Oracle Fusion Middleware will Provide deployment, development, maintenance, management and all the support for SOA Services in real time environment.
  • Oracle Fusion Middleware Consists of the Following different Modulus:
                              SOA
                              OSB
                              ODF
                              AIA
                              B2B
                              BPM
                             ADF
  • SOA is One of the Module In Middleware