• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Webservice serialization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Webservice serialization


  • Subject: Webservice serialization
  • From: Freddie Tilley <email@hidden>
  • Date: Tue, 8 Apr 2008 10:33:13 +0200

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:int">15</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:int">15</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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Webservice serialization
      • From: Andrew Lindesay <email@hidden>
  • Prev by Date: Re: Best Way(R) to test for existence of a relationship
  • Next by Date: Re: Webservice serialization
  • Previous by thread: Re: Best Way(R) to test for existence of a relationship
  • Next by thread: Re: Webservice serialization
  • Index(es):
    • Date
    • Thread