[jboss-user] [EJB 3.0] - Problem with User defined object in Jboss web service - "Can

zohar_sap do-not-reply at jboss.com
Mon Aug 21 08:21:51 EDT 2006


Hi,

When I call a ws method - test1() - that gets a user defined object from a .Net client I get an exception on the client side:

"Cannot find child element: MyClass_1"}	System.Web.Services.Protocols.SoapException {System.Web.Services.Protocols.SoapHeaderException}

I use jboss 4.0.4GA + Java  1.5.0_06-b05

Any ideas ?
Thanka

*Here are my classes:

public interface TestInterface extends Remote {
	public String test1 (String a, MyClass b) throws RemoteException;
}
-------------------------------------------------------------------------	

@Stateless
@WebService
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class TestFacade implements TestFacadeInterface {

	@WebMethod 
	public String test1 (String a, MyClass b) throws RemoteException{		
		return a;
	}
}

-------------------------------------------------------------------------------

public class MyClass implements Serializable{
        String a;

	public String getA() {
		return a;
	}
	public void setA(String a) {
		this.a = a;
	}
}




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

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



More information about the jboss-user mailing list