Another reason for turning multi-refs off is if you are using perl as
either a client or server.  The perl soap-lite library chokes on them.

Michael Ser
Netweave Integrated Solutions, Inc.



-----Original Message-----
From: Nelson Minar [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 04, 2004 11:53 AM
To: [EMAIL PROTECTED]
Subject: Re: Problem with Multiref


>I am facing some issues with MultiRefs in AXIS

You're better off avoiding them entirely unless you need them.

>What is the use of property "sendMultiRefs" 
>(AxisEngine.PROP_DOMULTIREFS) ?

The purpose of multi-refs in rpc/encoded web services is to allow you to
efficiently serialize a graph of objects. Multirefs are essentially
pointers. If you have a Customer object, and you need it more than once
in the call, then with multirefs you only serialize the Customer once
and then use references to point to it.

That being said, many rpc/encoded services don't need multirefs at all.
And if you don't need them, then they just add overhead. Axis 1.1 isn't
very smart about using multirefs and uses them everywhere; the messages
it sends are much bigger and more complex even when you don't need the
point semantics.

If you're building a new service you should consider using wrapped
document/literal. It's a much simpler encoding. And it has no way to do
multirefs, so the whole issue is avoided.


Reply via email to