investigating web services with soapui€¦ · investigating web services with soapui peter fischer...

35
Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side Scripting for Web Services February 6, 2008

Upload: others

Post on 15-Jul-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Investigating Web Services with SoapUI

Peter Fischer Hallin, Center for Biological Sequence AnalysisEMBRACE Workshop on Client Side Scripting for Web Services

February 6, 2008

Page 2: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

What is SoapUI?

• Java based stand-alone software for inspecting, invoking, and testing Web Services.

• Downloadable from http://www.soapui.org free of charge.

• ‘pro’ edition available for purchase having extended features

Page 3: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

• Ideal for development/testing of Web Services: Provide the raw XML request/response to/from your server. It allows you to view HTTP headers, attachments etc.

• Construct template/default request messages based on the WSDL/XSD

• SoapUIs strength is inspection and manually invoking of operations, however the Pro edition supports workflows/test cases!

• Handling multiple WSDLs with a project, and multiple projects within a session

Why SoapUI?

Page 4: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Example: inspecting two Web Services

• Genome Atlas 3.3 (http://www.cbs.dtu.dk/ws/GenomeAtlas/) Various database tools accessing prokaryotic genomes sequences

• RNAmmer 1.2b (http://www.cbs.dtu.dk/ws/RNAmmer) Predicts ribosomal RNA genes in full genome sequences.

Page 5: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Genome Atlas online documentation - like Jasper - there should be one online!

Page 6: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Creating a new project

Page 7: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Labeling the project and adding WSDL

Page 8: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Default request are made automatically

Page 9: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

We provide a genbank accession to ‘getSeq’

Page 10: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

http://www.cbs.dtu.dk/ws/RNAmmer

RNAmmer online documentation

Page 11: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Adding a new WSDL to the project

Page 12: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Adding a new WSDL to the project

Page 13: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Copy the genome sequence from ‘getSeq’

Page 14: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Paste genome sequence in RNAmmer ‘runService’

Page 15: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Adding a new WSDL to the project

Page 16: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Submit and acquire jobid

Page 17: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Poll queue until job finished

Page 18: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Poll queue until job finished

Page 19: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Fetch the result, suing ‘fetchResult’

Page 20: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

RNAmmer output, detailed

•Gene entries found in output->entries->entry•Contains query (gene) sequence•The matches to the Hidden Markov Model•Details like E-value, scores, start-stop postion etc.

Page 21: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Inspecting Service Description

Page 22: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side
Page 23: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side
Page 24: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side
Page 25: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side
Page 26: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Pro features

• Forms ( reading enumerations from XSD)

• Workflows/testcases

• Scripting language (GroovyScript)

Page 27: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side
Page 28: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side
Page 29: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side
Page 30: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side
Page 31: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side
Page 32: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side
Page 33: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

scripting

Page 34: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Export workflow results into any database (provided JDBC driver),

Excel sheet, script, or raw file

Exporting

Page 35: Investigating Web Services with SoapUI€¦ · Investigating Web Services with SoapUI Peter Fischer Hallin, Center for Biological Sequence Analysis EMBRACE Workshop on Client Side

Live demo• Search for protein EGFR_HUMAN using

‘efetch’ (http://www.ncbi.nlm.nih.gov/entrez/eutils/soap/efetch.wsdl)

• Predict the presence of signal peptides usign SignalP: http://www.cbs.dtu.dk/ws/SignalP/SignalP_3_1.wsdl

• Validation

• http://api.bioinfo.no/wsdl/JasparDB.wsdl, Id:MA0003, format:PFM, db:CORE