‏הצגת רשומות עם תוויות soapUI. הצג את כל הרשומות
‏הצגת רשומות עם תוויות soapUI. הצג את כל הרשומות

יום חמישי, 17 באפריל 2014

Running camel-example-cxf-tomcat

1.Install the last Tomcat server change the credentials in the tomcat-users.xml file to :

<tomcat-users> 
  <role rolename="manager"/>
  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <role rolename="manager-jmx"/>
  <role rolename="manager-status"/>
  <role rolename="admin-gui"/>
  <role rolename="admin-script"/>
  <user username="admin" password="admin" roles="admin ,manager ,manager-gui, manager-script, manager-jmx, manager-status, admin-gui, admin-script"/>
</tomcat-users>

2.Add in the maven configuration file (H:\Program Files\NetBeans 8.0\java\maven\conf\settings.xml) in the servers section the following xml


<server>
	<id>TomcatServer</id>
	<username>admin</username>
	<password>admin</password>
</server>

3.Change in the pom  file the name of the server to :
  <server>TomcatServer</server>
4.Run the tomcat server
5.Execute the tomcat:: deploy goal
(After the first deployment we can use the "tomcat:undeploy", "tomcat:redeploy" goals )

Capture31


6.Check that the deployment succeeded in the http://localhost:8080/manager
Capture32
7.Lets Test is with SoapUI
Note : the Wsdl location is :
http://localhost:8080/camel-example-cxf-tomcat/webservices/incident?wsdl 
Capture33

יום שישי, 12 ביולי 2013

Passing parameters in soapUI

Create the test Suite
Capture45

Add the parameters
Capture46 
Call the web service

Capture47

The soap request :

  1: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cxf="http://cxfserver.mycompany.com/">
  2:    <soapenv:Header/>
  3:    <soapenv:Body>
  4:       <cxf:GetMsg>
  5:          <!--Optional:-->
  6:          <arg0>
  7:             <!--Optional:-->
  8:             <Name>${#Name}</Name>
  9:             <Age>${#Age}</Age>
 10:          </arg0>
 11:       </cxf:GetMsg>
 12:    </soapenv:Body>
 13: </soapenv:Envelope>

יום רביעי, 12 ביוני 2013

Generate CXF client or server using soapUI

Technorati Tags: ,

SoapUI tool allows to generate a web server client or server based on a soap UI project.
The soapUI expose a GUI tool to the generation command lines.

The following simple steps are used in order to generate the code:

Create new SoapUI project
Capture33 Set CXF location
Capture34

Generate CXF code
Capture35