Jacob,

Thanks for your help. I'm still frustrated, but I think I'll go take that out on the vendor! :-)

  -- Scott

Jacob Danner wrote:
Interesting, usually when I've seen soap encoding its been for RPC based WSDL.
The way I've seen doc/literal arrays declared is with something like:
<xs:element name="someName" type="xs:int" minOccurs="0" maxOccurs="unbounded" />

I've been told elsewhere that this is pretty much a hard rule. It looks like the vendor's idea of doc/lit is a bit off. I will follow up with the vendor on that.

Can you post some of the code you are using to walk to XML?

Apache Axis is supposed to be doing that for me... I'm not looking at the XML directly. This whole exercise was an attempt to get from the SOAP coming from our site, but through a third-party tool, into Java objects in some straightforward manner. It's been pretty frustrating.

In answer to your original question:
Can someone explain how to get the elements of type MyClass from this
array?
I would assume its something like
ArEvent.getEvent()[index].getEventDateTime();

Is that not working for you?

No such method is in the generated class. In fact the generated class does not add anything to the underlying Array class except for a static Factory class containing several newInstance() variations and a large number of parse() methods all returning an instance of this Array subclass.

There is also a Factory class in the generated Event class. This factory class has many parse methods taking Streams, Readers, Strings, Files, URLs, and Nodes, each one returning an instance of the class. So there may be some way to walk the XML that is returned to get the elements. But these tools were supposed to let me avoid that! I could probably walk the SOAP document too, but I really don't want to. ;-)

Again, thanks for your help,

  -- Scott


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to