I used that example and was able to get the base form -> child form relationship type web service to work but my issue is going one more level. I am not able to figure out how to map the 3 form and link form 2 and 3 (foreign key) etc.
What I am trying to do is: Change will be the base form (PO in the example) AST: CMDB Association will be the child form (PO Item in the example) But then I need to add Base ELement as a child of AST:CMDB Association which has no link to Change --- How do I create this level and then map (w.r.t. foreign key) Atul Vohra -----Original Message----- From: "Sam Rx" [[email protected]] Date: 03/18/2010 12:50 AM To: [email protected] Subject: Re: Complex Webservice you will have to XSD mappings.. just finished really complex integration try to use the PO and PO ITEM example available in the integration guide.. thats really helpful <Problem> <WorkINfo/> <KnownErrors> <Tasks/> <Workinfo/> </KnownErrors> <Tasks> </Problem> On Thu, Mar 18, 2010 at 8:16 AM, Atul Vohra <[email protected]> wrote: All, I am trying to write a web service that needs to list some fields from CHG:Infrastructure Change form, and CI Name and Type of related CIs I have a complex web service that uses CHG:Infrastructure Change as the base form but I can get to AST:CMDB Associations with the change id and do not know how to get to the Base Element form in the same web service. Any idea how to get these 3 forms tied together (form 3 - Base Element is not related to form 1 - Change form) ARS v7.1 The xsd that I have and works (but need to get the CI Name and CI Type) is: <?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://tempuri.org" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="CCIS" type="ChangeCISummary"> <xs:annotation> <xs:documentation>Comment describing your root element</xs:documentation> </xs:annotation> </xs:element> <xs:complexType name="ChangeCISummary"> <xs:sequence> <xs:element name="Change_Request_Status" type="xs:string"/> <xs:element name="Summary" type="xs:string"/> <xs:element name="Notes" type="xs:string"/> <xs:element name="Infrastructure_Change_ID" type="xs:string"/> <xs:element name="Scheduled_End_Date" type="xs:dateTime"/> <xs:element name="Scheduled_Start_Date" type="xs:dateTime"/> <xs:element ref="CIList"/> </xs:sequence> </xs:complexType> <xs:complexType name="CILine"> <xs:sequence> <xs:element name="AffectCi_RequestID" type="xs:string"/> <xs:element name="AffectCI_Type" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:element name="CI" type="CILine"/> <xs:element name="CIList"> <xs:complexType> <xs:sequence> <xs:element ref="CI" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> Thanks Atul _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug10 www.wwrug.com ARSlist: "Where the Answers Are" _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug10 www.wwrug.com ARSlist: "Where the Answers Are"

