Hello,

Seems that you are exposing the EJB as web service, so could you attach
the simple testing web service example ?

Of course. I've attached the interface, the implementation and the openejb-jar.xml. The MyService class already contains the WSDL-Location (which was just generated with wsgen, so I didn't attach it).

If you need the wsdl (and jaxws) files as well, I've uploaded the whole thing as an archive:
http://home.arcor.de/irian/WebServiceTest.rar

Thanks,

Flo
package de.optitool.test;

import javax.jws.WebService;

@WebService(name="MyService",
        targetNamespace = "http://test.optitool.de";)
public interface IMyService {

        public int doSomething(String str);
        
}
package de.optitool.test;

import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.jws.WebService;

@Remote(IMyService.class)
@Stateless
@WebService(serviceName = "Optitool",
        portName = "MyServicePort",
        endpointInterface = "de.optitool.test.IMyService",
        targetNamespace = "http://test.optitool.de";,
        wsdlLocation = "META-INF/wsdl/Optitool.wsdl")
public class MyService implements IMyService {

        @Override
        public int doSomething(String str) {
                return 123;
        }
        
}
<?xml version="1.0" encoding="UTF-8"?>
<ejb:openejb-jar xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0"; xmlns:client="http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0"; xmlns:conn="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2"; xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"; xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2"; xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2"; xmlns:pers="http://java.sun.com/xml/ns/persistence"; xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1"; xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0"; xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1";>
    <dep:environment>
        <dep:moduleId>
            <dep:groupId>optitool</dep:groupId>
            <dep:artifactId>MyService</dep:artifactId>
            <dep:version>1.0</dep:version>
            <dep:type>car</dep:type>
        </dep:moduleId>
        
       <dep:dependencies> 
      	 	
       </dep:dependencies>        
                
    </dep:environment>
</ejb:openejb-jar>

Reply via email to