Thank you for your input. I tried to follow your advice, but I got the same 
error as before (I also tried gen:server instead of gen:client, but all that 
gave the same result). How do your web.xml and webservice.xml look like?

I have the following two files. Is there something wrong?

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
         version="2.4">
    
        <servlet-name>HelloWorld</servlet-name>
        <servlet-class>com.mytest.HelloImpl</servlet-class>
    
    <servlet-mapping>
        <servlet-name>HelloWorld</servlet-name>
        <url-pattern>/Hello</url-pattern>
    </servlet-mapping>    
</web-app>

<webservices xmlns="http://java.sun.com/xml/ns/j2ee";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"; version="1.1">
    <webservice-description>        
<webservice-description-name>HelloService</webservice-description-name>
        <wsdl-file>WEB-INF/wsdl/HelloService.wsdl</wsdl-file>
        <jaxrpc-mapping-file>WEB-INF/jaxrpc.xml</jaxrpc-mapping-file>
        <port-component>
            <port-component-name>Hello</port-component-name>
            <wsdl-port>HelloPort</wsdl-port>            
<service-endpoint-interface>com.mytest.Hello</service-endpoint-interface>
            <service-impl-bean>
                <servlet-link>HelloWorld</servlet-link>
            </service-impl-bean>
        </port-component>
    </webservice-description>


My service interface looks like this:
package com.mytest;

import java.rmi.Remote;
import java.rmi.RemoteException;

public interface Hello extends Remote {
        public String hello(String firstName, String name) throws 
RemoteException;
}

and this is the implementing Class...

package com.mytest;

public class HelloImpl {
        public String hello(String firstName, String name) {
                return "Hello " + firstName + " " + name + "!";
        }
}

Do you have an idea what I am doing wrong or can you tell me what the 
difference to your webservice is?

Stephan

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864441#3864441

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864441


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to