Webservice serialization

2008-04-08 Thread Freddie Tilley

Hi

I'm trying to serialize for a webservice

and Strings get serialized without a problem, but integers and floats
will get a href, and as such WSMakeStubs result applescript or cocoa  
class

return 0 with the values

Using Soap Client to check the resulting xml file I get the following  
for numbers:


s_int href=#id3/s_int

with a multiref outside my object class like this

multiRef id=id3 soapenc:root=0 soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ 
 xsi:type=soapenc:int15/multiRef


The code used to serialize the integer is this:

context.serialize(new QName(, s_int), null, new Integer(15));

The result that I would like to have is to have the item look like this:

s_int xsi:type=soapenc:int15/s_int

without a reference to the int. Am I missing a configuration option  
here to set this?


Freddie Tilley
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Webservice serialization

2008-04-08 Thread Andrew Lindesay

Hello Freddie;

I'm not sure if this has changed in 10.5, but 10.4 WebServicesCore was  
not able to handle multirefs as far as I could see.  Here is a note I  
put on the wiki about this from 2006 or 2007;


WebServicesCore does not appear to be able to process the 'multiref'  
values which are returned from the AXIS engine. To get around this,  
turn off multiref support in the WebObjects application. To achieve  
this, locate the server.wsdd file and the element parameter with  
the name sendMultiRefs. Modify this element to have the value  
false.



cheers.

___
Andrew Lindesay
www.lindesay.co.nz

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]