You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Matthias Gasser <ma...@gmail.com> on 2007/08/28 13:48:57 UTC

Coldfusion WS -> Returning Map is Empty

hi folks,

I'm trying to get something back from my webservice.
I've tried to return a coldfusion struct which is translated to a Map
and after i read this:
  http://marburg.marbie.net/verbouwen/blog.cfm? 
&blog_action=view&memberid=1  (search for empty map)
i've tried a custom data type. But still the same.

my network sniffer tell me that the server gives a "right" response:

--- snip ---
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelop
e xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"  
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http
://www.w3.org/2001/XMLSchema-instance">.
<soapenv:Body>.
<loginResponse xmlns="http://---CUT OUT ---/">.
	<loginReturn xsi:type="ns1:Map" xmlns:ns1="http://xml.apache.org/xml- 
soap">.
		<item xmlns="">.
			<key xsi:type="xsd:string">groupId</key>.
  			<value xsi:type="xsd:int">7</value>.
		</item>.
		<item xmlns="">.
  			<key xsi:type="xsd:string">operatorId</key>.
			<value xsi:type="xsd:long">1</value>.
		</item>
	<item xmlns="">
		<key xsi:type="xsd:string">registered</key>
		<value xsi:type="xsd:string">true</value>.
	</item>.
	<item xmlns="">.
		<key xsi:type="xsd:string">user</key>
		<value xsi:type="xsd:string">robert</value>.
	</item>.
</loginReturn>.
</loginResponse>.
</soapenv:Body>.
</soapenv:Envelope>
--- snap ---

but it looks like that cfx doesn't set the return variables right.
It creates always only the datatype with an empty set (null)

does anyone knows anything about this problem?
A simple return type like "String" is working like charm.

Thank you in advance!

nice greets from austria,
gasser matthias

please excuse my bad english :-)





Re: Coldfusion WS -> Returning Map is Empty

Posted by Matthias Gasser <ma...@gmail.com>.
hi there,

if i do it like him http://marburg.marbie.net/verbouwen/blog.cfm? 
&blog_action=view&memberid=1  (search for empty map)
everything is fine.
Except the returntype Struct (a Java Map) and an Array (anytype array).

The objects are beeing created but with nothing in it.
Anyone succeded with Array's or Structs with cfx?

thank you

nice greets,
matthias


Am 28.08.2007 um 13:48 schrieb Matthias Gasser:

> hi folks,
>
> I'm trying to get something back from my webservice.
> I've tried to return a coldfusion struct which is translated to a Map
> and after i read this:
>  http://marburg.marbie.net/verbouwen/blog.cfm? 
> &blog_action=view&memberid=1  (search for empty map)
> i've tried a custom data type. But still the same.
>
> my network sniffer tell me that the server gives a "right" response:
>
> --- snip ---
> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelop
> e xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"  
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http
> ://www.w3.org/2001/XMLSchema-instance">.
> <soapenv:Body>.
> <loginResponse xmlns="http://---CUT OUT ---/">.
> 	<loginReturn xsi:type="ns1:Map" xmlns:ns1="http://xml.apache.org/ 
> xml-soap">.
> 		<item xmlns="">.
> 			<key xsi:type="xsd:string">groupId</key>.
>  			<value xsi:type="xsd:int">7</value>.
> 		</item>.
> 		<item xmlns="">.
>  			<key xsi:type="xsd:string">operatorId</key>.
> 			<value xsi:type="xsd:long">1</value>.
> 		</item>
> 	<item xmlns="">
> 		<key xsi:type="xsd:string">registered</key>
> 		<value xsi:type="xsd:string">true</value>.
> 	</item>.
> 	<item xmlns="">.
> 		<key xsi:type="xsd:string">user</key>
> 		<value xsi:type="xsd:string">robert</value>.
> 	</item>.
> </loginReturn>.
> </loginResponse>.
> </soapenv:Body>.
> </soapenv:Envelope>
> --- snap ---
>
> but it looks like that cfx doesn't set the return variables right.
> It creates always only the datatype with an empty set (null)
>
> does anyone knows anything about this problem?
> A simple return type like "String" is working like charm.
>
> Thank you in advance!
>
> nice greets from austria,
> gasser matthias
>
> please excuse my bad english :-)