Posts

What are the main modules in Spring- ws api?

There are 3 main modules of spring-ws  core package - consists of soapmessage interface,webservice interfaces,supporting class for implementing    webservice endpoints. security pacakge -authentication and authorization service,encrypt and decrypt soap services oxm -(object to xml marshalling)-supports jaxb1 and jaxb2 marshallers

Generating Client Codee from WSDL Using Netbeans7.1

I love net beans just coz it is smart and intuitive and meant for smart people who love to do things quickly.Netbeans tutorial is very informative as well.I also love the net beans maven support.It saves lot of time unlike eclipse. I was given a web service URL generated from .net application and was asked to write a java client app. I used ws- tool and spring-ws template and wrote the client code.I started  using spring-ws client--but got web service transport exception. Then I used net beans I succeeded in my venture. Here are steps: 1:Use netbeans be smart. 2:Create a Simple WebApplication Project 3:Right Click on the Project->New->WebService->Web Service Client 4:Clock on Next 5:Select WSDL URL in the radio button 6:Enter the WSDL URL and Check Generate Dispatach Code 7:Create a Sample Servlet 8:In the process method and some empty lines 9:In the empty lines right Click ->Insert code 10:Select -Insert webservice operation 11:Webservice method wi...

wsimport - to generate JAVA files from WSDL

If you go to your java installation folder/bin dir you can see  wsimport tool . This tool generates proxy classes from WSDL file . Using the proxy  classes we can write our client application. you can find wsimport--> C:\Program Files\Java\jdk1.6.0_07\bin  command to use wsimport : C:\Program Files\Java\jdk1.6.0_07\bin>wsimport -keep -verbose http://abcdsvr08. rd.com:82/MIIPIService.svc?wsdl parsing WSDL... generating code... org\tempuri\ExecutePSApplication.java org\tempuri\ExecutePSApplicationResponse.java org\tempuri\IMIPService.java org\tempuri\ImportXMLDataTransactionService.java org\tempuri\ImportXMLDataTransactionServiceResponse.java org\tempuri\MIPService.java org\tempuri\ObjectFactory.java org\tempuri\package-info.java com\prdcinfotech\types\AcknowledgeType.java com\prdcinfotech\types\MIPExecuteRequest.java com\prdcinfotech\types\MIPExecuteResponse.java com\prdcinfotech\types\ObjectFactory.java com\prdcinfotech\types\RequestBase.java com\prdcinf...

Integrating cobertura maven with Cruise control.

Integrating cobertura maven with Cruise control. After integrating cobertura with maven.I started integrating it with cruise control for a reason that the user should be able to see the cobertura report on a dashboard. We need to tell the cruise control to locate the reports. Step-1 Create a jsp file and name it as "cobertura-coverage.jsp"  in-cruisecontrol-bin-2.8.4\webapps\cruisecontrol Step-2 Add the below content to ur "cobertura-coverage.jsp" <%@ taglib uri="/WEB-INF/cruisecontrol-jsp11.tld" prefix="cruisecontrol"%> <p> <cruisecontrol:artifactsLink> <iframe name="CoberturaFrame" id="cloverFrame" style="width:95%; height:700;" marginheight="10" frameborder="0" marginwidth="10" src="<%= artifacts_url %>/cobertura/index.html" width="600"></iframe> </cruisecontrol:artifactsLink> </p> Step-3 ope...

Integrating cobertura with Maven 3.0.3

Integrating cobertura with  Maven 3.0.3 Cobertura is a Java code coverage analysis tool. You can use it to determine what percentage of your source code is exercised by your unit tests. Good tool to  evaluate   any outsourced projects,also for clients to ask for code coverage tool report before the project closure. STEP-1 Add the below plugin configuration in ur pom.xml <build> <plugins>  <plugin>        <groupId>org.codehaus.mojo</groupId>          <artifactId>cobertura-maven-plugin</artifactId>          <version>2.5.1</version>          <configuration>            <formats>              <format>xml</format> ...

Best Links to Learn JAAS

 JAAS-- Java Authentication and Authorization service Best Links to learn JAAS JAAS Security in Action JAAS Reference Guide   Using JAAS for Authorization and Authentication    All that JAAS - JavaWorld   Integrate security infrastructures with JBossSX - JavaWorld   Customized EJB security in JBoss - JavaWorld    authentication-using-JAAS JAAS in action http://www.jroller.com/tomdz/entry/using_jaas_with_struts_a  JAAS on Glassfish  

Integarting Maven with Cruise control

Cruise control can be integrated with Maven . Download cruise control  move your maven project to projects folder set maven home and java home update the config.xml file run the cruise control.bat file config.xml is shown below: <cruisecontrol> <project name="sample-spring-ws"> <listeners> <currentbuildstatuslistener file="logs/${project.name}/status.txt"/> </listeners> <bootstrappers> <!-- <antbootstrapper anthome="apache-ant-1.7.0" buildfile="projects/${project.name}/build.xml" target="clean" />--> </bootstrappers> <modificationset quietperiod="30"> <!-- touch any file in connectfour project to trigger a build --> <filesystem folder="projects/${project.name}"/> </modificationset> <schedule interval="300"> <!--<ant anthome=...