cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mule1 <>
Subject for xml over http communication, server method arg value is null
Date Wed, 10 Oct 2007 16:57:29 GMT

I am having a problem where in my service created just for testing -
HelloWorldImpl, my method sayHi(String text) keeps having text as null even
though I am seeing that the text value is not null.

I have setup my service using simple server as:
	<simple:server id="xmlHello" address="/xhello"

Then from a Junit Test class, using client, I am sending the message "Test
XML messaging". I see following in tcpmon:
POST /app/hello_world HTTP/1.1
Content-Type: text/xml; charset=UTF-8
Accept: *
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.6.0_01
Host: localhost:8083
Connection: keep-alive
Transfer-Encoding: chunked

<sayHi xmlns="">Test XML messaging</sayHi>

--------- In my sayHi method, I have a return of - return "Hello" + text,
which in my tcpmon shows:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Content-Length: 27
Date: Wed, 10 Oct 2007 16:53:59 GMT

<return>Hello null</return>

I am really not sure what I am missing here. The same service method works
fine with soap webservices.
View this message in context:
Sent from the cxf-user mailing list archive at

View raw message