Yes, you are using the wrong message receiver. Use RPCMessageReceiver. Thanks, Deepal
On Tue, Jul 14, 2009 at 9:44 AM, Nora Serinek<[email protected]> wrote: > Hi, > > We'd like to provide several web services with a number of methods. When > calling one of the web service methods with a test client we always get the > following error in the response no matter which service or method we are > calling. For example for the login()-method: > > "The ServiceClass object does not implement the required method in the > following form: OMElement login(OMElement e)" > > > And indeed we don't have such a method. The signature of this method in the > service implementation is: > > public ErrorCode login(String username, String password, String language); > > > So in the generated (WSDL2Java) web service class the signature is as > following: > > public com.ibet.ws.mcs.server.axis2.LoginResponse > login(com.ibet.ws.mcs.server.axis2.Login login2) throws > java.rmi.RemoteException; > > public class Login implements org.apache.axis2.databinding.ADBBean{..} > > > In the WSDL it is defined this way: > > <xs:element name="login"> > <xs:complexType> > <xs:sequence> > <xs:element minOccurs="0" name="username" nillable="true" > type="xs:string"/> > <xs:element minOccurs="0" name="password" nillable="true" > type="xs:string"/> > <xs:element minOccurs="0" name="language" nillable="true" > type="xs:string"/> > </xs:sequence> > </xs:complexType> > </xs:element> > > <xs:element name="loginResponse"> > <xs:complexType> > <xs:sequence> > <xs:element minOccurs="0" name="return" nillable="true" > type="ax218:ErrorCode"/> > </xs:sequence> > </xs:complexType> > </xs:element> > > > The service the login()-method belongs to is configured in the services.xml > as following: > > <service name="MCSLoginService" scope="SOAPSession"> > <description>MCSLoginService</description> > <parameter > name="ServiceClass">com.ibet.ws.mcs.server.MCSLoginService</parameter> > <schema namespace="http://mcs.ws.ibet.com" > elementFormDefaultQualified="true"> > <mapping namespace="http://server.mcs.ws.ibet.com" > package="com.ibet.ws.mcs.server"/> > <mapping namespace="http://share.b2b.ws.ibet.com" > package="com.ibet.ws.b2b.share"/> > </schema> > <messageReceivers> > <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" > class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" /> > </messageReceivers> > </service> > > > Any ideas what we are doing wrong? > > Regards, > > Nora > > > ########################################### > This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this e-mail in error please notify > the system manager. > -- http://blogs.deepal.org
