You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Davanum Srinivas <da...@gmail.com> on 2006/11/07 02:53:59 UTC

Re: My InOutSyncMessageReceiver broken when using axis2-1.1 nightlies

Can i make a suggestion, run wsdl2java in *ANOTHER* directory and look
at the generated code and copy snippets from there.

thanks,
dims

On 11/6/06, Marcel Casado <ma...@ucar.edu> wrote:
>
> Hi,
>
> I'm trying to move from axis2-1.0 to  axis2-1.1 nightlies but in my
> InOutSyncMessageReceiver that was genertaed on version 1.0  had  this
> line of code :
>
>      //Inject the Message Context if it is asked for
>       DependencyManager.configureBusinessLogicProvider(obj,
> msgContext.getOperationContext());
>
> This method (configureBusinessLogicProvider(obj,
> msgContext.getOperationContext())) does not exist any more on 1.1. How
> should I modify my code to get everything working again ?. I don't want
> to run wsdl to java again.
>
> 17:25:28,869 ERROR AxisServlet:278 - java.lang.NoSuchMethodError:
> org.apache.axis2.engine.DependencyManager.configureBusinessLogicProvider(Ljava/lang/Object;Lorg/apache/axis2/context/OperationContext;)V
>
>
> Excerp of my InOutSyncMessageReceiver :
>
>  public void invokeBusinessLogic(MessageContext msgContext,
> MessageContext newMsgContext)
>         throws AxisFault {
>
>     try {
>
>       // get the implementation class for the Web Service
>       Object obj = getTheImplementationObject(msgContext);
>
>       //Inject the Message Context if it is asked for
>       DependencyManager.configureBusinessLogicProvider(obj,
> msgContext.getOperationContext());
>
>       MetvaultMetadataServiceSkeleton skel =
> (MetvaultMetadataServiceSkeleton) obj;
>       //Out Envelop
>       SOAPEnvelope envelope = null;
>       //Find the axisOperation that has been set by the Dispatch phase.
>       AxisOperation op =
> msgContext.getOperationContext().getAxisOperation();
>       if (op == null) {
>         throw new AxisFault("Operation is not located, if this is doclit
> style the SOAP-ACTION should specified via the SOAP Action to use the
> RawXMLProvider");
>       }
>
>
>
> Thanks,
>
> -Marcel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org