You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2009/06/17 03:56:07 UTC

[jira] Commented: (CXF-2294) HTTP-binding miss URL parameters for GET requests

    [ https://issues.apache.org/jira/browse/CXF-2294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12720467#action_12720467 ] 

Daniel Kulp commented on CXF-2294:
----------------------------------


Turns out, this is a bug in the http binding that somehow 2.0.x wasn't exposing.   I'm honestly not sure how it works at all with 2.0.x.   The Document that is being generate in the IriDecoderHelper is not valid.   The namespaces on the elements are not correct.   I've fixed this and am running the tests.  Will probably commit in the morning.

You can workaround the bug by adding a targetNamespace attribute to the webParam:
String sayHi(@WebParam(name = "name", targetNamespace = "http://jivesoftware.com/clearspace/webservices")String name);

That will work with my fix as well.   My fix won't require it though.


> HTTP-binding miss URL parameters for GET requests
> -------------------------------------------------
>
>                 Key: CXF-2294
>                 URL: https://issues.apache.org/jira/browse/CXF-2294
>             Project: CXF
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 2.1.5, 2.2.2
>            Reporter: Gabriel Guardincerri
>             Fix For: 2.0.12, 2.2.3
>
>         Attachments: HTTP-binding_Test.jar
>
>
> The problem occurs with HTTP-binding implementation. When a client makes a GET request and the URL has some parameters, all the parameters that the java implementation of that services are null.
> There is a jar attached with sample code to reproduce the problem. That code works with CXF 2.0.11, but doesn't work with 2.1.5 or 2.2.2.
> The server class is "demo.resful.server.Server", run it first. Then run the client that is "demo.resful.client.Client". The .jar does NOT contain the libraries to run.
> The client writes the response to system out and it should be:
> <ns1:sayHiResponse xmlns:ns1="http://jivesoftware.com/clearspace/webservices"><return>Hello Daniel</return></ns1:sayHiResponse>
> But with version 2.1.5 or 2.2.2 you get
> <ns2:sayHiResponse xmlns:ns2="http://jivesoftware.com/clearspace/webservices"><return>Hello null</return></ns2:sayHiResponse>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.