Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Right click on ejbModule and select New->Package





  2. Name the package to org.apache.geronimo.samples.jaxws and click Finish





  3. Right click on the new package and select New->Interface





  4. Name the interface as Converter and use the org.apache.geronimo.samples.jaxws package, then click Finish





  5. Add the following code to the Converter class:
    Code Block
    titleConverter.java
    borderStylesolid
    
    package org.apache.geronimo.samples.jaxws;
    
    import java.math.BigDecimal;
    
    import javax.ejb.Remote;
    import javax.jws.WebService;
    
    @Remote
    @WebService(name = "ConverterPortType",
                targetNamespace = "http://jaxws.samples.geronimo.apache.org")
    public interface Converter {
    
    	public BigDecimal dollarToRupees(BigDecimal dollars);
    
    	public BigDecimal rupeesToEuro(BigDecimal rupees);
    }
    
    

...