Hello, I can remove the OUT_ONLY propertie, I know how to set a property
from a mediator, I have tested it and I have read the property in the
task. But I don't know hoy to set the value returned from the proxy as a
property value. Could you tell me how?

thanks,
jlcc

On Fri, 2010-07-02 at 06:39 +0530, Ruwan Linton wrote:
> When you set OUT_ONLY property it means that you are invoking a one way 
> service to which you do not get a response :-( I am afraid for a one way 
> message there is no result from the actual service.
> 
> Thanks,
> Ruwan
> 
> Javier López del Castillo Caymares wrote:
> > Thanks again for replying. I'm invoking the proxy service injecting a
> > message into the esb through the synapse enviroment.
> >
> > here is the code.
> >
> > mc.setTo(new EndpointReference(to));
> >             mc.setSoapAction("urn:insertarPersona");
> >             mc.setProperty("OUT_ONLY", "true");
> >
> >             OMElement insertarPersonaRequest =
> > createInsertarPersonaRequest(nombre);
> >             PayloadHelper.setXMLPayload(mc, insertarPersonaRequest);
> >
> >             synapseEnvironment.injectMessage(mc);
> >
> > the "insertarPersona" method creates the message and I think it's not
> > important now.
> >
> > I would like you to explain me how to store the result in the map, how
> > to get it later, etc.
> >
> > also I would like to know if this is the best way to do what I need or
> > there is another way. I'm a begginer with wso2esb and SOA.
> >
> > thanks and best regards.
> > jlcc
> >
> > On Thu, 2010-07-01 at 21:08 +0530, Ruwan Linton wrote:
> >   
> >> How did you invoked the proxy from the task?
> >>
> >> If you used a SOAP client to invoke the proxy as a web service you 
> >> should get a SOAP response.
> >> If you get the proxy from the synapse configuration programatically and 
> >> invoked it via the proxy MR, then you should use a property mediator to 
> >> set the resulting parameter into the MessageContext and get the from the 
> >> message context properties map.
> >>
> >> If you can attach the code that you are using in the task, I could tell 
> >> you how exactly is to give the result that you are looking for.
> >>
> >> Thanks,
> >> Ruwan
> >>
> >> Javier López del Castillo Caymares wrote:
> >>     
> >>> Good Morning and than you very much for reply. This is what I need:
> >>>
> >>> I hace a Task in the ESB that inject a message to the msg to invoke a
> >>> proxy service, the proxy service returns a value, I need to know if the
> >>> returned value is X or Y, etc. because another operation depends on that
> >>> value.
> >>>
> >>> I guess I need get the result in a variable, int, string, etc.
> >>>
> >>> thx and best regards
> >>>
> >>> jlcc
> >>>
> >>> On Thu, 2010-07-01 at 02:55 +0530, Ruwan Linton wrote:
> >>>   
> >>>       
> >>>> Hi jlcc,
> >>>>  
> >>>> Where do you want to store the results, in a database? or in memory?
> >>>>
> >>>> Thanks,
> >>>> Ruwan
> >>>>
> >>>> Javier López del Castillo Caymares wrote:
> >>>>     
> >>>>         
> >>>>> Hello:
> >>>>>
> >>>>> I need to know how can I invoke a proxy service from a task and store
> >>>>> the result. I know how to invoke the proxy server, but not how to store
> >>>>> the result.
> >>>>>
> >>>>> thx and best regards.
> >>>>> jlcc
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> Esb-java-user mailing list
> >>>>> [email protected]
> >>>>> https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
> >>>>>
> >>>>>   
> >>>>>       
> >>>>>           
> >>>>     
> >>>>         
> >>>
> >>> _______________________________________________
> >>> Esb-java-user mailing list
> >>> [email protected]
> >>> https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
> >>>   
> >>>       
> >>     
> >
> >
> >
> > _______________________________________________
> > Esb-java-user mailing list
> > [email protected]
> > https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
> >   
> 
> 



_______________________________________________
Esb-java-user mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user

Reply via email to