The list type...
"Balasubramanian Seshasayee" <[email protected]> 22 Aug 2002 23:07:03 -0000
| Newsgroups | gmane.comp.gnome.ximian.soup |
|---|---|
| Message-ID | <[email protected]> |
Hi, I tried to create a request with a list of integers, but got a segfault at the server side, and gdb shows it happening at a wsdl_soap_set_param() call, because the second argument (node) is a null pointer. I am not giving the entire backtrace since it's big. I've included relevant parts of my wsdl and code files, and would really appreciate if anyone could give me pointers. stockquote2.wsdl: ... <types> <type xmlns="http://ximian.com/soup/glib/1.0/"> <list name="intarray" type="int"/> </type> </types> <message name="GetLastTradePriceInput"> <part name="body" type="intarray"/> </message> ... I treat the request as a GSList, creating it with g_slist_alloc() and g_slist_append() calls. The XML that was actually transferred was found to contain: <SOAP-ENV:Body><StockQuote:GetLastTradePrice xmlns:StockQuote="http://example.com/stockquote.wsdl"><body/><body><int>4</int></body><body><int>90</int></body></StockQuote:GetLastTradePrice></SOAP-ENV:Body> I tried other variants of the body and int tags, but nothing would work. Could somebody please let me know how a list was meant to be marshalled and unmarshalled in xml ? I would really appreciate any help in this matter. Thanks Bala "I feel stupid.. and contagious" -Kurt Cobain (1967 - 1994) _______________________________________________ Soup-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/soup-list