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
>
--
Ruwan Linton
Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.com
Lean . Enterprise . Middleware
phone: +1 408 754 7388 ext 51789
email: [email protected]; cell: +94 77 341 3097
blog: http://blog.ruwan.org
linkedin: http://www.linkedin.com/in/ruwanlinton
tweet: http://twitter.com/ruwanlinton
_______________________________________________
Esb-java-user mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user