header
header
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.
November 23, 2008, 02:18:54 pm
Username: Password:
Login with username, password and session length

Forgot your password?
 
Latest posts of: Akarui Tomodachi
Welcome, Guest. Please login or register.
November 23, 2008, 02:18:54 pm
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

  Show Posts
Pages: [1]
1  soapUI / soapUI / Re: PLEASE HELP !!!: How to append "repetition" of nodes ? on: May 29, 2008, 08:49:12 pm
Hi Ole:
Thanks for your help.
I works exactly the same way I wanted.
Best Regards.

/atomodachi
2  soapUI / soapUI / Re: PLEASE HELP !!!: How to append "repetition" of nodes ? on: May 29, 2008, 03:44:27 am
Hi Ole:
I am sorry for not explaining the problem properly, my apology  Cry
Actually, the comment line ("<!--1 or more repetitions:-->") before the element "<prod1:ProdSet" is a bit confusing.

You are most likely right (and it looks like obvious!) that the repeat of the node "<prod1:ProdSet" will include its two attributes DestCountryCode= ContractNumber= and child node "<prod1:ProductServiceId>" as well. So when I'll repeat the node "prod1:ProdSet" twice, the default request file should look like as below:

I'll confirm this with designer of the WSDL and let you know.
Thanks.

/**************
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prod="http://xyz.ca/ebusiness/ProductServiceWrapper" xmlns:prod1="http://xyz.ca/ebusiness/ProductService">
   <soapenv:Header/>
   <soapenv:Body>
      <prod:getDistProductDetails>
         <prod:request>

            <!--1 or more repetitions:-->

            <prod1:ProdSet DestCountryCode="?" ContractNumber="?">
               <!--Zero or more repetitions:-->
               <prod1:ProductServiceId>?</prod1:ProductServiceId>
            </prod1:ProdSet>

            <prod1:ProdSet DestCountryCode="?" ContractNumber="?">
               <!--Zero or more repetitions:-->
               <prod1:ProductServiceId>?</prod1:ProductServiceId>
            </prod1:ProdSet>

         </prod:request>
      </prod:getDistProductDetails>
   </soapenv:Body>
</soapenv:Envelope>
**************/

3  soapUI / soapUI / Re: PLEASE HELP !!!: How to append "repetition" of nodes ? on: May 27, 2008, 02:57:39 pm
Hi Ole:
Thanks for your kind attention into this matter at your busy schedule.
Anyway, actually ProdSet has got the default attributes from the beginning. Here is the default request:

/**************
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prod="http://xyz.ca/ebusiness/ProductServiceWrapper" xmlns:prod1="http://xyz.ca/ebusiness/ProductService">
   <soapenv:Header/>
   <soapenv:Body>
      <prod:getDistProductDetails>
         <prod:request>
            <!--1 or more repetitions:-->
            <prod1:ProdSet DestCountryCode="?" ContractNumber="?">
      <!--Zero or more repetitions:-->
               <prod1:ProductServiceId>?</prod1:ProductServiceId>
            </prod1:ProdSet>
         </prod:request>
      </prod:getDistProductDetails>
   </soapenv:Body>
</soapenv:Envelope>
**************/
4  soapUI / soapUI / Re: PLEASE HELP !!!: How to append "repetition" of nodes ? on: May 27, 2008, 07:24:16 am
Hi Ole:
Thanks for your help.
Your code sample worked like a magic.

But I am still having trouble to insert a node with attributes.

For example, below is the XML before inserting node with attributes (in bold):
/******************
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prod="http://xyz.ca/ebusiness/ProductServiceWrapper" xmlns:prod1="http://xyz.ca/ebusiness/ProductService">
   <soapenv:Header/>
   <soapenv:Body>
      <prod:getDistProductDetails>
         <prod:request>
            <!--1 or more repetitions:-->
            <prod1:ProdSet DestCountryCode="?" ContractNumber="?">
               <!--Zero or more repetitions:-->
               <prod1:ProductServiceId>?</prod1:ProductServiceId>
               <prod1:ProductServiceId>?</prod1:ProductServiceId>
            </prod1:ProdSet>
         </prod:request>
      </prod:getDistProductDetails>
   </soapenv:Body>
</soapenv:Envelope>
*******************/

Now, I like to append the node with attributes and it should look like as below:
/****************
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prod="http://innovapost.ca/ebusiness/ProductServiceWrapper" xmlns:prod1="http://innovapost.ca/ebusiness/ProductService">
   <soapenv:Header/>
   <soapenv:Body>
      <prod:getDistProductDetails>
         <prod:request>
            <!--1 or more repetitions:-->
            <prod1:ProdSet DestCountryCode="?" ContractNumber="?">
            <prod1:ProdSet DestCountryCode="?" ContractNumber="?">

               <!--Zero or more repetitions:-->
               <prod1:ProductServiceId>?</prod1:ProductServiceId>
               <prod1:ProductServiceId>?</prod1:ProductServiceId>
            </prod1:ProdSet>
         </prod:request>
      </prod:getDistProductDetails>
   </soapenv:Body>
</soapenv:Envelope>
******************/

I tried with many ways after changing the code under the use (DOMCategory) {} but nothing is working. Please give me some hints.

Thanks in advance.
5  soapUI / soapUI / PLEASE HELP !!!: How to append "repetition" of nodes ? on: May 26, 2008, 07:41:39 am
PLEASE HELP !!!!

How to append (insert) element repetition in the default request file ?
 
I have a "default request" as below:
 
/******************* Default request before repeat ***************************
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prod="http://xyz.ca/ebusiness/ProductServiceWrapper"
xmlns:prod1="http://xyz.ca/ebusiness/ProductService">
<soapenv:Header/>
<soapenv:Body>
<prod:getDistProductDetails>
<prod:request>
<!--1 or more repetitions:-->
<prod1:ProdSet DestCountryCode="?" ContractNumber="?">
<!--Zero or more repetitions:-->
<prod1:ProductServiceId>?</prod1:ProductServiceId>
</prod1:ProdSet>
</prod:request>
</prod:getDistProductDetails>
</soapenv:Body>
</soapenv:Envelope>
****************************************************************************/
 
 
Now, I need to insert (repeatedly) the element "ProductServiceId"  3 times which will look like:
 
/******************* Default request after repeat inserted *****************
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prod="http://xyz.ca/ebusiness/ProductServiceWrapper
xmlns:prod1="http://xyz.ca/ebusiness/ProductService">
<soapenv:Header/>
<soapenv:Body>
<prod:getDistProductDetails>
<prod:request>
<!--1 or more repetitions:-->
<prod1:ProdSet DestCountryCode="?" ContractNumber="?">
<!--Zero or more repetitions:-->
<prod1:ProductServiceId>?</prod1:ProductServiceId>
<prod1:ProductServiceId>?</prod1:ProductServiceId>
<prod1:ProductServiceId>?</prod1:ProductServiceId>

</prod1:ProdSet>
</prod:request>
</prod:getDistProductDetails>
</soapenv:Body>
</soapenv:Envelope>
****************************************************************************/
 
How can I do it in Groovy ?
I have tried as below, but it is giving me an exception (I know, did something wrong  Angry )

"Mon May 26 02:32:18 EDT 2008:ERROR:groovy.lang.MissingMethodException: No signature of method: groovy.util.NodeList.appendNode() is applicable for argument types: (java.lang.String, java.lang.String) values: {"prod1:ProductServiceId", "?"}"

My code snippet is:
/********************
...
...
def root = new XmlParser().parseText(newRequest)

root["soapenv:Body"]["prod:getDistProductDetails"]["prod:request"]["prod1:ProdSet"].appendNode("prod1:ProductServiceId", "?")

def writer = new StringWriter()
new XmlNodePrinter(new PrintWriter(writer)).print(root)
def result = writer.toString()
...
...
********************/
 
6  soapUI / soapUI / How to run multiple projects from testrunner.bat on: May 02, 2008, 04:35:47 am
I have multiple projects under a work space.
I would like to run all projects from a console by testrunner.

For example, if I issue this command from the console, the test runner doesn't run the test:

"testrunner.bat -a -fD:/myResultFile  D:/soapUIProj/myProj_1-soapui-project.xml D:/soapUIProj/myProj_2-soapui-project.xml -j -o -r"

But if I issue only one project, then everything is fine.
Pages: [1]


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header