Hello Himasha,
Thank you, but it needs to point to a resource containing a XML element [1]
defning raw endpoint whereas I wanted to use variables. Like the
<BASE_ENDPOINT>/somethingConstant/${aValueHere} thing where ${aValueHere}
is a value defined by a variable in my process instance.
[1] <wsa:EndpointReference
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3schools.com uep_schema.xsd"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/">
<wsa:Address>http://localhost:8080/lala</wsa:Address>
</wsa:EndpointReference>
2017-09-25 15:56 GMT+02:00 Himasha Guruge <[email protected]>:
> Hi Thomas,
>
> You need to use 'serviceRef' instead of Service URL property if you are
> going to point to a registry location. Please refer [1]
>
> [1] https://docs.wso2.com/display/BPS351/Invoking+a+BPMN+REST+Endpoint
>
> Thanks,
> Himasha
>
> On Mon, Sep 25, 2017 at 6:59 PM, Thomas LEGRAND <
> [email protected]> wrote:
>
>> Hello,
>>
>> I am writing a little process where I need to call a REST endpoint. But,
>> this process will be deployed on different environment (dev, prod, etc...)
>> so the endpoint will change. This endpoint is something like that :
>>
>> <BASE_ENDPOINT>/somethingConstant/${aValueHere}
>>
>> I read that it is possible to use registry entry to fill a Service URL
>> but that does not work for me (I put conf:/baseEndpointParameters [1] [2]
>> where the content of the resource baseEndpointParameters was a joinable
>> one) but the error message I received in the console was :
>>
>> [2017-09-25 15:24:58,534] [EI-Business-Process] ERROR
>> {org.wso2.carbon.bpmn.extensions.rest.RESTTask} - Failed to execute GET
>> conf:/baseEndpointParameters within task servicetask4:Récupération
>> correspondance in process instance 107599
>> org.apache.http.client.ClientProtocolException: URI does not specify a
>> valid host name: conf:/baseEndpointParameters
>>
>> Then, I would like to reuse the value of the param in the registry to
>> append the custom value. Is it possible?
>>
>> Regards,
>>
>> Thomas
>>
>>
>> [1] [image: Images intégrées 1]
>>
>> [2] [image: Images intégrées 2]
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Himasha Guruge
> Senior Software Engineer
> WS*O2* *Inc.*
> Mobile: +94 777459299 <+94%2077%20745%209299>
> [email protected]
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev