• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/36

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

36 Cards in this Set

  • Front
  • Back

What is SOA?

Service Oriented Architecture is an architecture for building loosely coupled, blackbox, and modular, black box services that can be orchestrated in tandom to achieve a specific function.

Do we need to build SOA from scratch?

No, we can wrap systems to loosely couple our system and provide a generic way for external applications and services to use the system as a service.

Are Web-Services SOA?

To be SOA, they need to be:


-Loosely coupled


-be Described (WSDL)


-Be Discoverable (UDDI)


What is a reusable service?

A reuseable service is a reusable, loosely coupled, granular, autonomous and stateless.



It needs to be able to be described.


its constraints can be defined by multiple runtime contracts.


Its lifecycle should be goverened at the enterprise level from design time through runtime.


How can you achieve loose coupling in a SOA

You can provide a service interface like WSDL for a SOAP web service to make it loosely coupled, hiding the implementation from the user.

What is ESB

ESB is the Enterprise Service bus, which provides an infrastructure to implement a Service Oriented Architecture.



The Enterprise Service bus facilitates standards based integration. It also provides mechanisms for security, Service Level Agreements, Transformation, Routing, Registry, and Transformation capabilities.

What are the common pitfalls of SOA?

Developers who focus on building an SOA solution, rather than addressing a specific business problem are more likely to create unnecessarily complex interconnections between resources, or may attempt to solve too many problems at once in one service.

What is a Web Service?

A Web Service is a service accessible over the web with a standardized messaging system like XML.

Why are Web Services Needed?

Web Services provide interoperability between platforms. They are reusable, can be used independent of the client's platform, and can use http protocol.

What are the types of web services?

SOAP (Simple Object Access Protocol) - Its a description of an xml messaging protocol(?)



REST (Representation State Transfer) - its a description of an architecture for distributed hypermedia systems(?)

What is the difference between SOAP and REST?

Soap Has a WSDL Contract


Provides Web Services Security, Reliable messaging, and Transactions. But it requires tools to implement the web service, uses more bandwidth due to the SOAP headers, and the message is contained within the soap envelope.



Rest has no contract, only provides SSL over http for security. But it doesn't require tools, uses less bandiwdth, and transports raw XML or JSON over http.

When should you use SOAP or Rest?

You should use SOAP when you need some sort of encryption, if connectivity is an issue, or need to enforce atomic transactions.



Rest can be used for simple data manipulation using common http methods. Get Put Post Delete

What is the goal of Web services?

The goal of web services is to achieve service oriented architecture within an organization.

What are the two approaches to create a SOAP based web service.

Top-Down/Contract First and Bottom Up/Contract Last

What is the web service protocol stack.

The Web Service protocol stack is a set of protocols that allow for a service to be described, discovered, and implemented.



There are 4 layers to the stack.



Xml Messaging


Service Transport


Service Description


Service Discovery

Is SOAP Stateful or Stateless.

Stateless. Http!

What is an XML schema. How does it differ from a Document Type Definition?

A schema describes an XML markup language, by defining elements and attributes and how they're used, ordered, nested, and their type.



XML allows for much stronger typing than a Document Type Definition, and using the schema, can provide validation and compound documents using multiple markup languages.

What is the difference between complex types and simple types in XML schemas?

Complex types describe how elements are organized and nested, whereas simple types represent primitive types. Complex types and simple types can represent objects with properties and primitives types in java respectively.

What is an XML namespace?

XML namespaces provide a similar utility as packages, where they help organize elements, provide access control, and prevent naming conflicts.

What is SOAP?

Simple Object Access Protocol is a distributed protocol. 1.1 is the standard messaging protocol used by J2EE Web Services. Its purpose is to provide a generic way of interaction between applications over a network using XML.

What is the basic Structure of soap?

A soap message's root is the soap:envelope element, with and optional soap:header contained inside it. The header has infrastructure data like security tokens, transaction ids, and routing information.



inside the envelope there is a soap:body which actually carrys the application specific message data to be exchanged.

What are the different SOAP messaging modes?

Soap supports Document/Literal and RPC/Encoded messaging modes. There are also RPC/Literal and Document/Encoded messaging modes.



maybe be fuzzy on whats supported.


web sources say document/literal and rpc/literal

What is the Document/Literal messaging mode?

The body of a soap message can be validated against an xml schema.

What is RPC/Literal?

Document-style message that formats its body according to a schema. This schema is included in the WSDL.



a well formed xml element that contains arbitrary application data and belongs to an xml schema and namespace is located in the soap body.

What is RPC/Literal?

RPC-style message that formats its body according to a schema that reflects the rules defined in the SOAP standard. This schema is included in the WSDL. This can model calls to produres or method calls with parameters and return values.

What are the different Messing Exchange Patterns in SOAP?

One-Way and Request-Response

How are SOAP messages delivered. What is their protocol?

HTTP primarily, though other protocols are possible.

Are SOAP messages delivered using post or get?

POST, get can't store enough information to carry the SOAP message.

What is WSDL?

WSDL is an XML markup language used to describe a web service and specify the exact message format, internet protocol, and address that a client must use to communicate with a particular web service.

Can you explain the structure of a WSDL? What is the structure of a WSDL?

Its an XML document that adheres to the WSDL XML schema. It contains important elements inside definitions:


types


import,


message


portType,


operations,


binding,


service

What is UDDI?

Universal Description, Discovery and Integration.



Its a tool used to create a registry of web services within an organization.



You can access data in a UDDI using SOAP, making the UDDI a web service.

What is SAAJ?

SOAP with Attachments API for Java is SAAJ. Its used for creating, reading and modifying SOAP messages using Java.



Its based on the abstract factory pattern. Message Handlers in JAX RPC use SOAP with Attachments API for Java to represent a SOAP java message.

Which API is used to implement web services?

JAX-WS The Java API for XML Web Services - Centerpiece of the API stack for web services called the integrated stack which includes JAX-WS, JAX-B, and SAAJ.



JAX-RPC Java API for XML-based RPC - for building web applications and web services that incorporate xml-based rpc functionality according to the SOAP 1.1 specification.



JAX-RS Java API for XML Restful Services - creating a web service according to the Representational State Transfer architectural style,

What is JAX-B

Java API for XML Binding allows develops to bind an XML schema to a representation in java code, allowing for the use of XML without necessarily needing to know much about xml itself.

JAX-RPC

Java API for Remote procedure Calls is Java RMI over soap, which connects a remote service to a local object using xml messages.

What are the ways of accessing a web service?

Synchronously and Asynchronously.