Contact Us
About Us
News
Home
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome,
Guest
. Please
login
or
register
.
January 09, 2009, 07:33:29 am
Username:
Password:
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forgot your password?
generate the MockResponse content from the schema through java program
Welcome,
Guest
. Please
login
or
register
.
January 09, 2009, 07:33:29 am
News:
The Forums are up! Welcome to eviware.
Eviware Forum
soapUI
soapUI
generate the MockResponse content from the schema through java program
« previous
next »
Pages:
[
1
]
Author
Topic: generate the MockResponse content from the schema through java program (Read 372 times)
apoorva
Newbie
Posts: 16
generate the MockResponse content from the schema through java program
«
on:
July 21, 2008, 07:21:58 pm »
Hi All,
I am writing script which will generate MockResponse for each MockOperation through java program. I successfully genertated default MockResponse but I want to generate the MockResponse content from the schema.. so it will contain optional element as well. I followed following steps to generate mockresponse.
) create a new WsdlProject
2) added WSDL to the project with the WsdlImporter class
3) added a new WsdlMockService to the project with project.addNewMockService
4) add the desired mockOperation/mockResponses(
Here I want MockResponse generated from schema
)
5) save the project with project.save(..)
I will appreciate if any suggestion will be available.
Thanks,
Jim
Logged
apoorva
Newbie
Posts: 16
Re: generate the MockResponse content from the schema through java program
«
Reply #1 on:
July 21, 2008, 10:27:43 pm »
Hi All,
I found one of the approach and its working..
Just set the value of following property to true and its working..
SoapUI.getSettings().setBoolean(WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS ,true);
Thanks,
Jim
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> eviware general
-----------------------------
soapUI
-----------------------------
=> soapUI
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Powered by SMF 1.1.2
|
SMF © 2006-2007, Simple Machines LLC
Loading...