SlideShare uma empresa Scribd logo
1 de 7
Web Services
BOA
West Region
Cloud – Data Resources Web Apps Cloud Apps
BOA
East Region
Web Services are based on XML.
From UI we cannot understand the difference between web application and web services.

Orbit 2 WSDL1
Travelocity WSDL 2
Web
Web Service Provider 2
Service
Provider 1
|
_ _____________|
|
|
|
|
|
|
Broker
|
Published Published
WSDL 1 WSDL 2
UDDI
UDDI – Registry having who provides what ticket.
|
|
Request and Response (Two way communication)
|
|
|
Web Services Consumer / Client App

www.kayak.com

SOAP – Simple Object access protocol
UDDI – Universal Description Discovery Integration It’s a company.
Orbits and Travelocity developers create WSDL and publish to UDDI. I.e. giving the access
rights for taking the service
Request and Response done using protocol known as SOAP XML based request and SOAP
XML based response.
WSDL – Web Services Definition Language; WSDL constructed using XML and Java by
developer.
Difference between HTTP and SOAP
Special wrappers for transferring web services
data (XML) over the internet.
SOAP messages are not easily blocked by the
firewall.

The whole architecture is called as Service Oriented Architecture
Components of SOA
WSDL
Web Service Provider
Web Service Consumer
UDDI
SOAP Protocol
Example of Web Services
Technology – Web Services
Architecture – SOA
Google Docs
DropBox
XML vs HTML
HTML is presentation language – Static
For transferring data into to web – Dynamic
XML – allows dynamic content to be transferred.
XML allows custom tags but HTML has only pre-defined tags.
WSDL is a xml file with extension .wsdl
WSDL contains
Messages (operations)
Bindings
Service end points –Where actual services are deployed; Server is deployed
Port
E.g.1 MathService – Add and Subtract.
E.g.2 Airline reservation system – operations are getTicketInfogetAirlineDetails etc.
E.g.3 TransferMoney – RegisterTransMoneyServ, TransferWithinBank, TransferOutisdeBank
Questions on Web Services messages
Check the websites of the projects and find the custom messages.
Test cases – 300
100 to 110 for each message
E.g. of BOA transfer money service;
SOAP message structure looks like –
Envelope
Header

Body
Message
Fault

Request
<envelope>
<header></header>
<body>
<message></message>
</body>
</envelope>
Response
<envelope>
<header></header>
<body>
<fault></fault>
</body>
</envelope>
Framework used – Spring
Types of Web Services
1) SOAP based web services. More popular.
2) RESTful Web Services. – Using HTTP protocol.
3) JMS Web Services.
HTTP – Messages – POST GET DELETE and PUT
Representational State Transfer
XML Doc
Well Formed XML Doc - Tags are missing.
Valid XML Doc
XML Schema
XML Schema Doc – Tells the structure of XML document.
Every XML document should confirm to a schema document.
Extension of Schema - .xsd
NOTE First validate the WSDL document using a Schema – Check whether Vaild or not.
You will be provided a schema file provided. Manually or using tools.
XML Namespace
Attribute – Property of element or tag. <price fontcolor=”Blue”>
BOA
<xmlns: TransFunds =”https:BOAfinServTransMoney”>
<CustomerInfo>
<CustID></CustID>
<fromAcct></fromAcct>
</CustomerInfo>
Chase
<xmlns: TransFunds =”https:ChasetransService”>
<CustomerInfo>
<CustNbr></CustNbr>
<fromAcct></fromAcct>
</CustomerInfo>
Xmlns – Meaning of the tags are defined and the XML engine looks to the xmlns so that

Things asked in the interview
What is XML message?
<?xml version=”1.0” encoding=”UTF-8”?>>
Contains elements, nodes and tags
Elements nested inside each other.
Root node and child nodes.
What did you do in SOAP?
Application was following SOAP Architecture
Request and response message – Created lot of test cases based on different scenarios. Then I
created a test suite based on these test cases. Finally I ran this test suite.
Java – How can Idosome coding – Java Collection API –
List – ArrayList, LinkedList and Vector
Sets – TreeSet and Hashset
What is JUnit?
Test unit framework for performing unit tests and automation tests based on the test cases
It has annotations and methods like assert and verify.
What is XML?
Xml has tags and data. It gives structure to the data. It has a container and nodes inside it. The
element contains the corresponding data.
What are the three major role players?
Service provider, Registry, Consumer are three major role players
What are three major operations?
Publish, find and bind are major operations.
Why web services?
Web services are language independent. Interconnecting systems is easy.
Why XML in Web Service?
Advantage of being independent of data position; Due to presence of tags; Positions of nodes can
change within the container.
Where is web service deployed?
Web service is deployed in the web server.
What is SOA?
Service oriented architecture.
Eg. Shopping Portal = get product catalog, get price for product, add to cart, payment gateway;
Create a platform and make the operations/functions independent so that third party vendors can
build their application on top of the base.
Social Websites and Salesforce platform is extensible due to SOA;
What is in the messages?
XML contains tags and data
SOAP contains an envelop, header and body.
WSDL contains data types, messages and service ports.
UDDI = Yellow pages, public information = Common information. Universal business registries.
What is need of Service Oriented Architecture?
If you make interfaces generic. Then third party can add services in the interface – Eg. Shopping
cart. E.g. Secured Paypal gateway, Secured Credit Card gateway;
Testing a web service is as simple as testing a form.
What did you do in Web Services Testing in previous project?
In my previous project where I was handling web services like money transfer between banks;
In this web services, I created test cases for the SOAP Requests and responses by inserting
assertions and then testing them and created test suites and ran them.
Request consists of envelope header body inside message and response consist of header body
fault and message. Included various requests in a test suite and inserted assertions and then ran
them and verified. Payment gateway.
Other concepts o Web Services are = WSDL Service Provider like Paypal and service consumers
lie the client applications and UDDI where the service provider publishes and provides the rights
to access. The communication is done through SOAP protocol.
I used SoapUI Pro 4.5.1
Web services SOAP Notes

Mais conteúdo relacionado

Mais procurados

Topic6 Basic Web Services Technology
Topic6 Basic Web Services TechnologyTopic6 Basic Web Services Technology
Topic6 Basic Web Services Technology
sanjoysanyal
 
Xml For Dummies Chapter 15 Using Xml With Web Servicesit-slideshares.blogsp...
Xml For Dummies   Chapter 15 Using Xml With Web Servicesit-slideshares.blogsp...Xml For Dummies   Chapter 15 Using Xml With Web Servicesit-slideshares.blogsp...
Xml For Dummies Chapter 15 Using Xml With Web Servicesit-slideshares.blogsp...
phanleson
 

Mais procurados (20)

Web Services
Web ServicesWeb Services
Web Services
 
Web Services
Web ServicesWeb Services
Web Services
 
web technologies Unit 5
 web technologies Unit 5 web technologies Unit 5
web technologies Unit 5
 
Unit 5 WEB TECHNOLOGIES
Unit 5 WEB TECHNOLOGIES Unit 5 WEB TECHNOLOGIES
Unit 5 WEB TECHNOLOGIES
 
SOAP, WSDL and UDDI
SOAP, WSDL and UDDISOAP, WSDL and UDDI
SOAP, WSDL and UDDI
 
Web services for developer
Web services for developerWeb services for developer
Web services for developer
 
Lecture 16 - Web Services
Lecture 16 - Web ServicesLecture 16 - Web Services
Lecture 16 - Web Services
 
WSDL 2.0 and Apache Woden
WSDL 2.0 and Apache WodenWSDL 2.0 and Apache Woden
WSDL 2.0 and Apache Woden
 
ISI Institute E-Services TP 3
ISI Institute E-Services TP 3 ISI Institute E-Services TP 3
ISI Institute E-Services TP 3
 
Web Services (SOAP, WSDL, UDDI)
Web Services (SOAP, WSDL, UDDI)Web Services (SOAP, WSDL, UDDI)
Web Services (SOAP, WSDL, UDDI)
 
Topic6 Basic Web Services Technology
Topic6 Basic Web Services TechnologyTopic6 Basic Web Services Technology
Topic6 Basic Web Services Technology
 
SynapseIndia dotnet web applications development
SynapseIndia  dotnet web applications developmentSynapseIndia  dotnet web applications development
SynapseIndia dotnet web applications development
 
Cloud computing 20 service modelling
Cloud computing 20 service modellingCloud computing 20 service modelling
Cloud computing 20 service modelling
 
Xml For Dummies Chapter 15 Using Xml With Web Servicesit-slideshares.blogsp...
Xml For Dummies   Chapter 15 Using Xml With Web Servicesit-slideshares.blogsp...Xml For Dummies   Chapter 15 Using Xml With Web Servicesit-slideshares.blogsp...
Xml For Dummies Chapter 15 Using Xml With Web Servicesit-slideshares.blogsp...
 
Day1 : web service basics
Day1 :  web service basics Day1 :  web service basics
Day1 : web service basics
 
Mule execution
Mule executionMule execution
Mule execution
 
Web services SOAP
Web services SOAPWeb services SOAP
Web services SOAP
 
Java servlets
Java servletsJava servlets
Java servlets
 
Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0Secc tutorials development and deployment of rest web services in java_v2.0
Secc tutorials development and deployment of rest web services in java_v2.0
 
Develop ASP.Net Web Service
Develop ASP.Net Web Service Develop ASP.Net Web Service
Develop ASP.Net Web Service
 

Semelhante a Web services SOAP Notes

Service Oriented Architecture Updated Luqman
Service Oriented Architecture Updated  LuqmanService Oriented Architecture Updated  Luqman
Service Oriented Architecture Updated Luqman
guesteb791b
 

Semelhante a Web services SOAP Notes (20)

Web services and SOA [Modified]
Web services and SOA [Modified]Web services and SOA [Modified]
Web services and SOA [Modified]
 
Service Oriented Architecture Updated Luqman
Service Oriented Architecture Updated  LuqmanService Oriented Architecture Updated  Luqman
Service Oriented Architecture Updated Luqman
 
Web services and SOA
Web services and SOAWeb services and SOA
Web services and SOA
 
SOA and web services
SOA and web servicesSOA and web services
SOA and web services
 
Web Service Basics and NWS Setup
Web Service  Basics and NWS SetupWeb Service  Basics and NWS Setup
Web Service Basics and NWS Setup
 
Web services overview
Web services overviewWeb services overview
Web services overview
 
Web services
Web servicesWeb services
Web services
 
Xml.ppt
Xml.pptXml.ppt
Xml.ppt
 
Exposing EJBs As Web Services
Exposing EJBs As Web ServicesExposing EJBs As Web Services
Exposing EJBs As Web Services
 
Web Services
Web Services Web Services
Web Services
 
Understanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company indiaUnderstanding Web Services by software outsourcing company india
Understanding Web Services by software outsourcing company india
 
Web Programming
Web ProgrammingWeb Programming
Web Programming
 
Java web services
Java web servicesJava web services
Java web services
 
Web Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptxWeb Services in Cloud Computing.pptx
Web Services in Cloud Computing.pptx
 
Detailed information on webservice by websoles
Detailed information on webservice by websolesDetailed information on webservice by websoles
Detailed information on webservice by websoles
 
Web services Tutorial /Websoles Strategic Digital Solutions
Web services Tutorial /Websoles Strategic Digital SolutionsWeb services Tutorial /Websoles Strategic Digital Solutions
Web services Tutorial /Websoles Strategic Digital Solutions
 
Web services | Websoles
Web services | WebsolesWeb services | Websoles
Web services | Websoles
 
Best Web services tutorial | Websoles Strategic Digital Solutions
Best Web services tutorial | Websoles Strategic Digital SolutionsBest Web services tutorial | Websoles Strategic Digital Solutions
Best Web services tutorial | Websoles Strategic Digital Solutions
 
Introduction to Web Services
Introduction to Web ServicesIntroduction to Web Services
Introduction to Web Services
 
Android chapter16-web-services
Android chapter16-web-servicesAndroid chapter16-web-services
Android chapter16-web-services
 

Mais de Sunil Kumar Gunasekaran

Sample Technical Requirement Document (TRD)
Sample Technical Requirement Document (TRD)Sample Technical Requirement Document (TRD)
Sample Technical Requirement Document (TRD)
Sunil Kumar Gunasekaran
 
Sql commands worked out in sql plus with screen shots
Sql commands worked out in sql plus with screen shotsSql commands worked out in sql plus with screen shots
Sql commands worked out in sql plus with screen shots
Sunil Kumar Gunasekaran
 
Test Life Cycle - Presentation - Important concepts covered
Test Life Cycle - Presentation - Important concepts coveredTest Life Cycle - Presentation - Important concepts covered
Test Life Cycle - Presentation - Important concepts covered
Sunil Kumar Gunasekaran
 
PERL for QA - Important Commands and applications
PERL for QA - Important Commands and applicationsPERL for QA - Important Commands and applications
PERL for QA - Important Commands and applications
Sunil Kumar Gunasekaran
 
JAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examplesJAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examples
Sunil Kumar Gunasekaran
 
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
Sunil Kumar Gunasekaran
 

Mais de Sunil Kumar Gunasekaran (20)

CQL - Cassandra commands Notes
CQL - Cassandra commands NotesCQL - Cassandra commands Notes
CQL - Cassandra commands Notes
 
Java J2EE Complete Syllabus Checklist
Java J2EE Complete Syllabus ChecklistJava J2EE Complete Syllabus Checklist
Java J2EE Complete Syllabus Checklist
 
Amazon search test case document
Amazon search test case documentAmazon search test case document
Amazon search test case document
 
Actual test case document
Actual test case documentActual test case document
Actual test case document
 
Sample Technical Requirement Document (TRD)
Sample Technical Requirement Document (TRD)Sample Technical Requirement Document (TRD)
Sample Technical Requirement Document (TRD)
 
Sql reference from w3 schools
Sql reference from w3 schools Sql reference from w3 schools
Sql reference from w3 schools
 
Sql commands worked out in sql plus with screen shots
Sql commands worked out in sql plus with screen shotsSql commands worked out in sql plus with screen shots
Sql commands worked out in sql plus with screen shots
 
Wells fargo banking system ER Diagram
Wells fargo banking system ER DiagramWells fargo banking system ER Diagram
Wells fargo banking system ER Diagram
 
Business Requirements Document for Acounts Payable System
Business Requirements Document for Acounts Payable SystemBusiness Requirements Document for Acounts Payable System
Business Requirements Document for Acounts Payable System
 
Automation Testing Syllabus - Checklist
Automation Testing Syllabus - ChecklistAutomation Testing Syllabus - Checklist
Automation Testing Syllabus - Checklist
 
Unix short
Unix shortUnix short
Unix short
 
Unix made easy
Unix made easyUnix made easy
Unix made easy
 
Test process - Important Concepts
Test process - Important ConceptsTest process - Important Concepts
Test process - Important Concepts
 
Testing http methods using Telnet
Testing http methods using TelnetTesting http methods using Telnet
Testing http methods using Telnet
 
Test Life Cycle - Presentation - Important concepts covered
Test Life Cycle - Presentation - Important concepts coveredTest Life Cycle - Presentation - Important concepts covered
Test Life Cycle - Presentation - Important concepts covered
 
Scrum writeup - Agile
Scrum writeup - Agile Scrum writeup - Agile
Scrum writeup - Agile
 
Scrum, V Model and RUP Models Overview
Scrum, V Model and RUP Models OverviewScrum, V Model and RUP Models Overview
Scrum, V Model and RUP Models Overview
 
PERL for QA - Important Commands and applications
PERL for QA - Important Commands and applicationsPERL for QA - Important Commands and applications
PERL for QA - Important Commands and applications
 
JAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examplesJAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examples
 
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
Java programs - bubble sort, iterator, linked list, hash set, reverse string,...
 

Último

Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Último (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 

Web services SOAP Notes

  • 1. Web Services BOA West Region Cloud – Data Resources Web Apps Cloud Apps BOA East Region Web Services are based on XML. From UI we cannot understand the difference between web application and web services. Orbit 2 WSDL1 Travelocity WSDL 2 Web Web Service Provider 2 Service Provider 1 | _ _____________| | | | | | | Broker | Published Published WSDL 1 WSDL 2 UDDI UDDI – Registry having who provides what ticket. | | Request and Response (Two way communication) | | | Web Services Consumer / Client App www.kayak.com SOAP – Simple Object access protocol UDDI – Universal Description Discovery Integration It’s a company.
  • 2. Orbits and Travelocity developers create WSDL and publish to UDDI. I.e. giving the access rights for taking the service Request and Response done using protocol known as SOAP XML based request and SOAP XML based response. WSDL – Web Services Definition Language; WSDL constructed using XML and Java by developer. Difference between HTTP and SOAP Special wrappers for transferring web services data (XML) over the internet. SOAP messages are not easily blocked by the firewall. The whole architecture is called as Service Oriented Architecture Components of SOA WSDL Web Service Provider Web Service Consumer UDDI SOAP Protocol Example of Web Services Technology – Web Services Architecture – SOA Google Docs DropBox XML vs HTML HTML is presentation language – Static For transferring data into to web – Dynamic XML – allows dynamic content to be transferred. XML allows custom tags but HTML has only pre-defined tags. WSDL is a xml file with extension .wsdl
  • 3. WSDL contains Messages (operations) Bindings Service end points –Where actual services are deployed; Server is deployed Port E.g.1 MathService – Add and Subtract. E.g.2 Airline reservation system – operations are getTicketInfogetAirlineDetails etc. E.g.3 TransferMoney – RegisterTransMoneyServ, TransferWithinBank, TransferOutisdeBank Questions on Web Services messages Check the websites of the projects and find the custom messages. Test cases – 300 100 to 110 for each message E.g. of BOA transfer money service; SOAP message structure looks like – Envelope Header Body Message Fault Request <envelope> <header></header> <body> <message></message> </body> </envelope>
  • 4. Response <envelope> <header></header> <body> <fault></fault> </body> </envelope> Framework used – Spring Types of Web Services 1) SOAP based web services. More popular. 2) RESTful Web Services. – Using HTTP protocol. 3) JMS Web Services. HTTP – Messages – POST GET DELETE and PUT Representational State Transfer XML Doc Well Formed XML Doc - Tags are missing. Valid XML Doc XML Schema XML Schema Doc – Tells the structure of XML document. Every XML document should confirm to a schema document. Extension of Schema - .xsd NOTE First validate the WSDL document using a Schema – Check whether Vaild or not. You will be provided a schema file provided. Manually or using tools. XML Namespace Attribute – Property of element or tag. <price fontcolor=”Blue”> BOA <xmlns: TransFunds =”https:BOAfinServTransMoney”> <CustomerInfo> <CustID></CustID> <fromAcct></fromAcct> </CustomerInfo>
  • 5. Chase <xmlns: TransFunds =”https:ChasetransService”> <CustomerInfo> <CustNbr></CustNbr> <fromAcct></fromAcct> </CustomerInfo> Xmlns – Meaning of the tags are defined and the XML engine looks to the xmlns so that Things asked in the interview What is XML message? <?xml version=”1.0” encoding=”UTF-8”?>> Contains elements, nodes and tags Elements nested inside each other. Root node and child nodes. What did you do in SOAP? Application was following SOAP Architecture Request and response message – Created lot of test cases based on different scenarios. Then I created a test suite based on these test cases. Finally I ran this test suite. Java – How can Idosome coding – Java Collection API – List – ArrayList, LinkedList and Vector Sets – TreeSet and Hashset What is JUnit? Test unit framework for performing unit tests and automation tests based on the test cases It has annotations and methods like assert and verify. What is XML? Xml has tags and data. It gives structure to the data. It has a container and nodes inside it. The element contains the corresponding data. What are the three major role players? Service provider, Registry, Consumer are three major role players What are three major operations? Publish, find and bind are major operations.
  • 6. Why web services? Web services are language independent. Interconnecting systems is easy. Why XML in Web Service? Advantage of being independent of data position; Due to presence of tags; Positions of nodes can change within the container. Where is web service deployed? Web service is deployed in the web server. What is SOA? Service oriented architecture. Eg. Shopping Portal = get product catalog, get price for product, add to cart, payment gateway; Create a platform and make the operations/functions independent so that third party vendors can build their application on top of the base. Social Websites and Salesforce platform is extensible due to SOA; What is in the messages? XML contains tags and data SOAP contains an envelop, header and body. WSDL contains data types, messages and service ports. UDDI = Yellow pages, public information = Common information. Universal business registries. What is need of Service Oriented Architecture? If you make interfaces generic. Then third party can add services in the interface – Eg. Shopping cart. E.g. Secured Paypal gateway, Secured Credit Card gateway; Testing a web service is as simple as testing a form. What did you do in Web Services Testing in previous project? In my previous project where I was handling web services like money transfer between banks; In this web services, I created test cases for the SOAP Requests and responses by inserting assertions and then testing them and created test suites and ran them. Request consists of envelope header body inside message and response consist of header body fault and message. Included various requests in a test suite and inserted assertions and then ran them and verified. Payment gateway. Other concepts o Web Services are = WSDL Service Provider like Paypal and service consumers lie the client applications and UDDI where the service provider publishes and provides the rights to access. The communication is done through SOAP protocol. I used SoapUI Pro 4.5.1