This doesn't address Anders' immediate problem, which Michael's fix below does. But such a hack should not be necessary. The SOAP 1.1 specification reads:
"All values are represented as element content. A multi-reference value MUST be represented as the content of an independent element. A single-reference value SHOULD not be (but MAY be)."
If you want to get rid of references completely, even where there are multiple references, then you probably want to avoid SOAP encoding entirely and specify use="literal" in the WSDL. But then you open the whole can of worms concerning Axis 1.1's limited support for non-RPC/encoded Web services.
"Michael Ser" <[EMAIL PROTECTED]> wrote:
Anders,
In the createCall method of <service>SoapBindingStub.java code created
by wsdl2java add the following:
_call.setOption(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, new
Boolean(false));
Good luck,
mike
Michael Ser
Netweave Integrated Solutions, Inc.
-----Original Message-----
From: Anders Peterson [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 7:48 AM
To: [EMAIL PROTECTED]
Subject: Turning off multirefs
Hi,
How do I turn off multirefs for my client? The server seems to have
problems with them. Axis makes these kind of references down to
individual text/number fields (seems odd).
I've read in the docs about *.wsdd files. The problem is I don't have
one! The only server-config.wsdd and client-config.wsdd files I could
find are in axis.jar. I tried modifying these but nothing seemed to
happen.
Where does Axis look for the configuration files?
Can I set in code? (All I have is the wsdl2java generated code.) I've
seen in the API docs that AxisEngine has a bunch of static final
properties. How are they initialized?
My environment: Axis 1.1, Java 1.4 WebObjects 5.2. I do not have Tomcat
or similar. As far as I know I don't use any WebObjects specific code (I
know I could).
/Anders
- Turning off multirefs Anders Peterson
- RE: Turning off multirefs Michael Ser
- Re: Turning off multirefs Anders Peterson
- Re: Turning off multirefs Anders Peterson
- Re: Turning off multirefs Doron Rosenberg
- Re: Turning off multirefs Srinath Perera
- Mitch Gitman
