You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2018/12/04 07:43:00 UTC

[jira] [Comment Edited] (CAMEL-12976) cxf route calling rest api service throws exception

    [ https://issues.apache.org/jira/browse/CAMEL-12976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16708317#comment-16708317 ] 

Willem Jiang edited comment on CAMEL-12976 at 12/4/18 7:42 AM:
---------------------------------------------------------------

It looks like you use the http producer to send the request. 405 error means " Method Not Allowed " My suggestion is you log the request message to check if you set a wrong HTTP method.


was (Author: njiang):
It looks like you use the http producer to send the request.
My suggestion is you log the request message to check if you miss anything in the request.

> cxf route calling rest api service throws exception
> ---------------------------------------------------
>
>                 Key: CAMEL-12976
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12976
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http-common
>    Affects Versions: 2.22.2
>            Reporter: Matthias Fricke
>            Priority: Major
>         Attachments: HapWsProcessor.java, servertrace.txt
>
>
> Hello,
> I create a cxf route which exposes a soap ws.
> Inside the route I call a rest service using a second route. (Its just a soap proxy for a rest call)
> However, the rest service call gives back a http 405.
> If I call the rest service directly from SoapUI, everything works as expected.
> I have attached the trace of my camel server.
> i have also attached my camel processor class.
> It has two routes, one "direct:getOperatorsProviderRequestAll" works just fine.
> The second route "direct:getOperatorsProviderRequestByID" is producing the error.
> I read about the ticket https://issues.apache.org/jira/browse/CAMEL-11951
> I thought it might be a similar problem?
> Thanks and regards
> Matthias
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)