In your messageReceivers can you try using the following instead,

<messageReceivers>
<messageReceiver mep="http://www.w3.org/ns/wsdl/in-only";
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/ns/wsdl/in-out";
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>

Thanks,
Keith.

On Fri, Feb 6, 2009 at 11:50 AM, Sanjay Gupta <sanjay.gu...@primal.com>wrote:

>  Hi Keith,
> Here is my services.xml files.
> Thanks
> Sanjay
>
> <serviceGroup>
> <service name="Provision" scope="application" targetNamespace="
> http://provision.ws.ccb.primalsw.com/";>
>     <description>
>         Provision Service
>     </description>
>     <messageReceivers>
>         <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out";
>
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>         <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only";
>
> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
>
>     </messageReceivers>
>     <schema schemaNamespace="http://provision.ws.ccb.primalsw.com/xsd"/>
>     <parameter
> name="ServiceClass">com.primalsw.ccb.ws.ProvisionHandler</parameter>
> </service>
> </serviceGroup>
>
>
>
>
> -----Original Message-----
> From: keith chapman [mailto:keithgchap...@gmail.com<keithgchap...@gmail.com>
> ]
> Sent: Thu 2/5/2009 10:01 PM
> To: axis-user@ws.apache.org
> Subject: Re: InOnlyAxisOperation Error
>
> Can you provide your service please. You haven't provided enough
> information
> to help you...
>
> Thanks,
> Keith.
>
> On Thu, Feb 5, 2009 at 10:55 PM, Sanjay Gupta <sanjay.gu...@primal.com
> >wrote:
>
> >  Hi,
> >
> > I just have upgraded my axis 1.2 web services to 1.4.1 and getting error
> > while calling a service which returns nothing(void). See the stack trace
> > below. The doc mentions these four types of operations but I don't know
> > which one to pick and how to set it during client generation.
> >
> > DoInOnly, NoParameters, TwoWayOneParameterEcho, and
> > MultipleParametersAddItem
> >
> >
> >
> > I have both types of operations with return and without return. All my
> > operations takes some kind of argument simple as well as some that takes
> > customer objects.  Any help will be greatly appreciated.
> >
> >
> >
> > Sanjay
> >
> >
> >
> > [ERROR] An access occurred that is not valid.
> >
> > java.lang.UnsupportedOperationException: An access occurred that is not
> > valid.
> >
> >         at
> >
> org.apache.axis2.description.InOnlyAxisOperation.getMessage(InOnlyAxisOperation.java:109)
> >
> >         at
> >
> org.apache.axis2.util.MessageContextBuilder.createOutMessageContext(MessageContextBuilder.java:190)
> >
> >         at
> >
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.jav
> >
> > :37)
> >
> >         at
> >
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
> >
> >         at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
> >
> >         at
> >
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
> >
> >         at
> > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
> >
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> >
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >
> >         at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> >
> >         at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> >
> >         at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> >
> >         at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >
> >         at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >
> >         at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> >
> >         at
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> >
> >         at
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >
> >         at
> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> >
> >         at java.lang.Thread.run(Thread.java:619)
> >
> >
> >
> >
> >
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Reply via email to