Friday, November 16, 2012

Creating an opentravel SOAP client and server for testing using soapui

If you are creating a web services client or server in the Travel Industry, you are probably using the opentravel messaging schema.

Sometimes the most difficult part of your project is creating a test client or server to verify your application code.

soapui is a great open source utility for easily creating manual and automated SOAP test suites.

I'm going to show you how to quickly set up a SOAP test client and a SOAP test server for an opentravel message pair using soapui.

The first thing you will need is a WSDL file. Luckily the ota-tools project has many open source resources for opentravel users, including a soapui project with sample WSDL file that we can use as a template.

You can download this WSDL file from the ota-tools source repository at:

This WSDL is currently configured for the 2012A version of the Ping message pair. If you would like to use a different message pair, just change the import statements to point to your root schema.

For example, if I want to test the cancellation message pair, I would change:

<xsd:import namespace=""
  schemaLocation="" />
<xsd:import namespace=""
  schemaLocation="" />

<xsd:import namespace=""
  schemaLocation="" />
<xsd:import namespace=""
  schemaLocation="" />

Then change the message root elements to match the root elements of the schema that you are testing. In this example, I would change:

<wsdl:message name="Request">
<wsdl:part element="ota:OTA_PingRQ" name="payload">
<wsdl:message name="Response">
<wsdl:part element="ota:OTA_PingRS" name="payload">

<wsdl:message name="Request">
<wsdl:part element="ota:OTA_CancelRQ" name="payload">
<wsdl:message name="Response">
<wsdl:part element="ota:OTA_CancelRS" name="payload">

Now you are ready to create a test client and server in soapui.

From the soapui main menu, select, File -> New soapui Project

In the dialog box, click the browse button and open the wsdl file that you just edited:

Give your project and name and click 'OK'

Generate a default service

and give it a name:

Now you are ready to start your mock service. Click on the green 'Go' button in the upper left. Now your service is running and you can call it from soapui or the opentravel client that you are developing.

Now let's test our service. Open the sample request and,

press the green 'Go' button in the upper left. You should have a response message on your screen.

Now you are ready to add some logic to your soapui test server and create a soapui client test suite. You will find a nice project with examples in the ota-tools soapui project.

This sample project is located in our source repository at:

Just download the opentravel-soapui-project.xml file and import it into soapui.

Now you're ready to test your opentravel client or server code!


iphone developers said...

thanks for sharing the post

Aadam Gibson said...

Great stuff. Thanks to post this kind of knowledgeable blog.

Innovapath said...

Excellent Post. Also visit

Unknown said...

This is a fantastic publish regarding android operating system development! Those who want to understand such will absolutely find these training useful and beneficial.Ecommerce Web Design

Anandmahalakshmi said...

great article. I would like to get support for PHP Integration as well. Can you give idea about it?

Unknown said...

Great and Useful Article.

Java Web Services Training

Java Web Services Training

Unknown said...

hi,we provide online training & video tutorial for soapui
for free videos refer

IT said...

Java Web Services Training in Chennai Java Web Services Training in Chennai Java Web Services Online Training Java Web Services Training in Chennai

IT said...

Java Training Institutes Java Training Institutes Core Java Training Institutes in Chennai
Java Spring Hibernate Training Institutes in Chennai Java Spring Hibernate Training Institutes in Chennai | Hibernate Training Institutes in Chennai J2EE Training Institutes in Chennai J2EE Training Institutes in Chennai

Unknown said...

I have read your article its very nice attractive and impressive. I like it your article.Let me share useful information for CCNA jobs in Hyderabad

Unknown said...

Nice Post . Thank you for this beautiful content, Keep it up. Techavera is the best Institute in Noida for all these main Courses below:-

MCITP training in Noida
MS sql server Training in Noida
Cloud Computing Training Institute in Noida
CCNP Training Institute in Noida
Manual Testing Training Institute in Noida
ANSYS training course in noida

Visit us For Quality Learning.Thank you

Unknown said...

just information we only provide information for those who need it cara menggugurkan hamil
A. cara agar cepat hamil setelah selesai haid
B. cara agar cepat hamil
C. cara alami untuk segera mendapat kehamilan
D. makanan dan minuman agar cepat hamil
E. masa subur biar cepat hamil
F. panduan agar cepat hamil

Devi.Angularjs said...

Great Article. Thank you for sharing! Really an awesome post for every one.

IEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Project Domains for IT It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

JavaScript Training in Chennai

JavaScript Training in Chennai

Kevin Davidson said...

It's very useful article with informative and insightful content and i had good experience with this information. We, at the CRS info solutions ,help candidates in acquiring certificates, master interview questions, and prepare brilliant resumes.Go through some helpful and rich content Salesforce Admin syllabus from learn in real time team. This Salesforce Development syllabus is 100% practical and highly worth reading. Recently i have gone through Salesforce Development syllabus and Salesforce Admin syllabus which includes Salesforce training in USA so practically designed.

Technogeekscs said...

Thanks for the post. It was very interesting and meaningful. I really appreciate it! Keep updating stuff like this.
Data Science
ETL Testing
Python Online Classes

wayne said...

I appreciate you finding the time and effort to put this article together reading and leaving comments. But so what, it was still

Best Digital Marketing Agency In Thane !

Breeze End Technology, LLC said...

Thanks so much for the wonderful post, its goes a long way to help me improve on alots of stuffs and help for other projects.

Get the best website design Services for your business. Contact us today for a free estimate

Maradona Jons said...

อีกทั้งเรายังให้บริการ เกมสล็อต ยิงปลา แทงบอลออนไลน์ รองรับทุกการใช้งานในอุปกรณ์ต่าง ๆ HTML5 คอมพิวเตอร์ แท็บเล็ต สมาทโฟน คาสิโนออนไลน์ และมือถือทุกรุ่น เล่นได้ตลอด 24ชม. ไม่ต้อง Downloads เกมส์ให้ยุ่งยาก ด้วยระบบที่เสถียรที่สุดในประเทศไทย

Maradona Jons said...

หาคุณกำลังหาเกมส์ออนไลน์ที่สามารถสร้างรายได้ให้กับคุณ เรามีเกมส์แนะนำ เกมยิงปลา รูปแบบใหม่เล่นง่ายบนมือถือ คาสิโนออนไลน์ บนคอม เล่นได้ทุกอุปกรณ์รองรับทุกเครื่องมือ มีให้เลือกเล่นหลายเกมส์ เล่นได้ทั่วโลกเพราะนี้คือเกมส์ออนไลน์แบบใหม่ เกมยิงปลา

John P. Ketchum said...

The Newcastle United manager has led his team to eight points in four matches without even one, helping his team to guarantee their top league survival for another season. ufabet The Magpies equalized to Tottenham Hotspur and Liverpool before beating Burnley and West Ham in an impressive St James' Park.

Maradona Jons said...

pgslot ซึ่งเกมคาสิโนออนไลน์เกมนี้เป็นเกมที่เรียกว่าเกม สล็อตเอ็กซ์โอ คุณรู้จักเกมส์เอ็กซ์โอหรือไม่ 90% ต้องรู้จักเกมส์เอ็กซ์โออย่างแน่นอนเพราะในตอนนี้เด็กนั้นเราทุกคนมักที่จะเอาก็ได้ขึ้นมา สล็อต เล่นเกมส์เอ็กซ์โอกับเพื่อนเพื่อนแล้วคุณรู้หรือไม่ว่าในปัจจุบันนี้เกมส์เอ็กซ์โอนั้นกลายมาเป็นเกมซะลอสออนไลน์ที่ให้บริการด้วยเว็บคาสิโนออนไลน์คุณสามารถเดิมพันเกมส์เอ็กซ์โอกับเว็บคาสิโนออนไลน์ได้โดยที่จะทำให้คุณนั้นสามารถสร้างกำไรจากการเล่นเกมส์เดิมพันออนไลน์ได้เราแนะนำเกมส์ชนิดนี้ให้คุณได้รู้จักก็เพราะว่าเชื่อว่าทุก

John P. Ketchum said...

The security industry is growing very fast because of the new threats that crop up daily. That's why government top security companies in London
entities, non-profits, big corporations, and businesses are outsourcing services such as public safety, investigative, law enforcement, security, and many other services. They do this because outsourcing is less costly compared to having to train and maintain an in-house team.

hakansxx said...

dent hangi borsada
sc coin hangi borsada
btt coin hangi borsada
hnt coin hangi borsada
elf coin hangi borsada
psg coin hangi borsada
mdt coin hangi borsada
dot coin hangi borsada
mit coin hangi borsada

Unknown said...

tiktok jeton hilesi
tiktok jeton hilesi
referans kimliği nedir
gate güvenilir mi
tiktok jeton hilesi
bitcoin nasıl alınır
yurtdışı kargo