Hello,

I have deployed a little RESTweb service on my machine and I try to
communicate with it to retrieve a list of parameters via the GET method.
The endpoint of this little web service is
http://localhost:9090/ParamsPortal/Parameter.

So, I created a template which will call this little endpoint but it is
like something, somewhere, is blocking the request and answer on behalf of
my web service.

Here is my call to the web service:

<property action="remove" description="remove REST_URL_POSTFIX"
> name="REST_URL_POSTFIX" scope="axis2"/>
> <property description="setParameterEndpointURL"
> expression="get-property('registry', 'conf:/parameterServiceEndpoint')"
> name="uri.var.parameterServiceEndpoint" scope="default" type="STRING"/>
>
> <call blocking="true">
>     <endpoint>
>         <http method="get" trace="enable"
> uri-template="{uri.var.parameterServiceEndpoint}"/>
>     </endpoint>
> </call>



 Then, here is what it is displayed in the log when I activate the DEBUG
mode for the wire thingies:

[2017-06-28 15:09:43,369] [] DEBUG - headers http-incoming-134 >>
> Connection: keep-alive
> [2017-06-28 15:09:43,369] [] DEBUG - headers http-incoming-134 >>
> Upgrade-Insecure-Requests: 1
> [2017-06-28 15:09:43,369] [] DEBUG - headers http-incoming-134 >>
> Cache-Control: max-age=0
> [2017-06-28 15:09:43,374] []  INFO - LogMediator To:
> /MyApi/lala?id=199999999, MessageID:
> urn:uuid:faee257d-86ab-43d3-8c54-43754004f120, Direction: request,
> uri.var.parameterServiceEndpoint =
> http://localhost:9090/ParamsPortal/Parameter
> [2017-06-28 15:09:43,396] [] DEBUG - headers http-incoming-134 << HTTP/1.1
> 202 Accepted
> [2017-06-28 15:09:43,396] [] DEBUG - headers http-incoming-134 << Date:
> Wed, 28 Jun 2017 13:09:43 GMT
> [2017-06-28 15:09:43,396] [] DEBUG - headers http-incoming-134 <<
> Transfer-Encoding: chunked
> [2017-06-28 15:09:43,397] [] DEBUG - headers http-incoming-134 <<
> Connection: keep-alive
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "HTTP/1.1 202 Accepted[\r][\n]"
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "Date: Wed, 28 Jun 2017 13:09:43 GMT[\r][\n]"
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "Transfer-Encoding: chunked[\r][\n]"
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "Connection: keep-alive[\r][\n]"
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "[\r][\n]"
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "0[\r][\n]"
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "[\r][\n]"


I even tried with the Header mediator to change the To parameter but it is
always the same things: I have a 202 Accepted with an empty content whereas
my web service should return a 200 OK.

Can you help me, please?

Regards,

Thomas
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to