From: Marco Z. <mar...@wi...> - 2006-03-27 23:03:44
|
Andiwijaya, Andiwijaya Sumartono wrote: > I'm very sorry for the late reply, I was pretty busy with the other things > and left this one un-touch for a while. Thanks you so much for sharing the > proxy file. I'd tested it and it worked perfectly. The only question that > comes in my mind is, if you're willing to share it with me, what did you > change and why the IdentifiableType serializer didn't work previously? > i am glad that the proxy worked for you. as far as i remember, all i changed was that the RegistryObjectList contains the concrete subtypes of IdenfiableType instead of just the generic one. the object structure that wsdl.exe initially generates allows only elements named Identifiable within the RegistryObjectList. the code in the <old> and <new> tags below shows the difference. regards, marco <old> [System.Xml.Serialization.XmlArrayAttribute(Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0")] [System.Xml.Serialization.XmlArrayItemAttribute("Identifiable", Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false)] public IdentifiableType[] RegistryObjectList; </old> <new> [System.Xml.Serialization.XmlArrayAttribute(Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0")] [System.Xml.Serialization.XmlArrayItem("Association", typeof(AssociationType1),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("AuditableEvent", typeof(AuditableEventType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("Classification", typeof(ClassificationType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("ClassificationNode", typeof(ClassificationNodeType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("ClassificationScheme", typeof(ClassificationSchemeType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("ExternalIdentifier", typeof(ExternalIdentifierType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("ExternalLink", typeof(ExternalLinkType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("ExtrinsicObject", typeof(ExtrinsicObjectType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("Federation", typeof(FederationType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("ObjectRef", typeof(ObjectRefType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("Organization", typeof(OrganizationType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("Person",typeof(PersonType), Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("Registry", typeof(RegistryType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("RegistryObject", typeof(RegistryObjectType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("AdhocQuery", typeof(AdhocQueryType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("RegistryPackage", typeof(RegistryPackageType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("Service", typeof(ServiceType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("ServiceBinding", typeof(ServiceBindingType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("SpecificationLink", typeof(SpecificationLinkType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("Subscription", typeof(SubscriptionType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false), System.Xml.Serialization.XmlArrayItem("User", typeof(UserType),Namespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", IsNullable=false)] public IdentifiableType[] RegistryObjectList; </new> |