The 'any' means that Microsoft knows the structure of this data but isn't telling us. Since it isn't telling us, we can't do anything about it. You could ask them what's up with the 'any':-)
If you could come up with your own XML schema for what shows up in there, I could offer some suggestions for how to use it. On Wed, Oct 13, 2010 at 3:50 PM, Jeffrey Rodgers <[email protected]> wrote: > Benson, > > Yes, that was my suspicion - the xs:any is in fact part of the WSDL. I > can't seem to crack the nut on how to use that any property or the getAny > accessor to unmarshall back to the generated java equivalent of my .NET DS > (essentially a couple pages of public properties in SubjectsDS.java) > > The WSDL for that particular section: > > <s:element name="GetLatestSubjectsDSResponse"> > <s:complexType> > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" > name="GetLatestSubjectsDSResult"> > <s:complexType> > <s:sequence> > <s:any namespace="http://tempuri.org/SubjectsDS.xsd"/> > </s:sequence> > </s:complexType> > </s:element> > </s:sequence> > </s:complexType> > </s:element> > > Thanks, > Jeffrey > > On Wed, Oct 13, 2010 at 3:41 PM, Benson Margulies > <[email protected]>wrote: > >> Jefferson, >> >> It sounds as if the XML Schema in the WSDL uses an xs:any particle, >> and that .NET has magic ways of turning this into a DS. >> >> All CXF can do with an 'any', by default, is give you the XML DOM for >> whatever arrives. >> >> In the data bindings, you can add custom handling, or you can work >> with the DOM object. >> >> Please have a look at the schema and see if I'm right about the 'any'. >> >> --benson >> >> >> On Wed, Oct 13, 2010 at 2:29 PM, Jeffrey Rodgers <[email protected]> >> wrote: >> > Hello, >> > >> > I've used the wsdl2java application to generate the following classes for >> my >> > particular WSDL: >> > >> > GetLatestSubjectsDS.java >> > GetLatestSubjectsDSResponse.java >> > Init.java >> > InitResponse.java >> > ObjectFactory.java >> > package-info.java >> > SaveSubject.java >> > SaveSubjectResponse.java >> > SrvSoap.java >> > Srv.java >> > SrvSoap_SrvSoap_Client.java >> > SrvSoap_SrvSoap12_Client.java >> > SubjectsDS.java >> > >> > Which I then pulled into Eclipse for usage. The most basic basic web >> > service calls are working as expected, but I am having difficulties using >> > our GetLatestSubjects web service call which should a set of "Subjects" >> data >> > to the client, in which I would ideally unmarshalling into a SubjectsDS >> > object. We treat this as a dataset in .NET but I understand that won't >> be >> > happening here. Within SubjectsDS is a multitude of properties (more >> than a >> > dozen). >> > >> > As far as I can tell, the only accessors that I can play with in the >> > GetLatestSubjectsDSResponse is an "any" property which looks like a >> > DOM-esque object in the debugger (as expected given the web service's >> > origin). I'm unsure what to do with this from here, but more importantly >> > may fear that I'm going about this in a wrong way given my inexperience >> with >> > CXF. >> > >> > Thanks in advance, >> > Jefferson >> > >> >
