0 Replies Latest reply on Apr 6, 2009 1:22 PM by phillipus_rex

    Consuming Flex & SOAP WebService

    phillipus_rex

      I am attempting to consume a SOAP webservice and I am having trouble.


      How would you suggest that I consume a web service using the following xml?  Also, if you could provide a simple example that would be great!

       

      Thanks.

       

      HTTP/1.1 200 OK
      Content-Type: text/xml; charset=utf-8
      Content-Length: length
      
      <?xml version="1.0" encoding="utf-8"?>
      <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <soap:Body>
          <GetViewResultsResponse xmlns="http://www.servicesource/datamanager/">
            <GetViewResultsResult>
              <PrimaryTableName>string</PrimaryTableName>
              <IsSystemView>boolean</IsSystemView>
              <DataTables>
                <NHRCViewResultDataTable>
                  <TableOrViewID>guid</TableOrViewID>
                  <TableName>string</TableName>
                  <Columns xsi:nil="true" />
                  <Rows xsi:nil="true" />
                </NHRCViewResultDataTable>
                <NHRCViewResultDataTable>
                  <TableOrViewID>guid</TableOrViewID>
                  <TableName>string</TableName>
                  <Columns xsi:nil="true" />
                  <Rows xsi:nil="true" />
                </NHRCViewResultDataTable>
              </DataTables>
              <Queries>
                <NHRCQueryDefinition>
                  <NumberRowsToGet>int</NumberRowsToGet>
                  <FirstRowToGet>int</FirstRowToGet>
                  <MainTable xsi:nil="true" />
                  <Tables xsi:nil="true" />
                  <WhereClause xsi:nil="true" />
                  <StructureOnly>boolean</StructureOnly>
                  <ColumnListPrefix>string</ColumnListPrefix>
                </NHRCQueryDefinition>
                <NHRCQueryDefinition>
                  <NumberRowsToGet>int</NumberRowsToGet>
                  <FirstRowToGet>int</FirstRowToGet>
                  <MainTable xsi:nil="true" />
                  <Tables xsi:nil="true" />
                  <WhereClause xsi:nil="true" />
                  <StructureOnly>boolean</StructureOnly>
                  <ColumnListPrefix>string</ColumnListPrefix>
                </NHRCQueryDefinition>
              </Queries>
              <ChangeLogTable>
                <TableOrViewID>guid</TableOrViewID>
                <TableName>string</TableName>
                <Columns>
                  <NHRCViewResultColumn xsi:nil="true" />
                  <NHRCViewResultColumn xsi:nil="true" />
                </Columns>
                <Rows>
                  <NHRCViewResultRow xsi:nil="true" />
                  <NHRCViewResultRow xsi:nil="true" />
                </Rows>
              </ChangeLogTable>
              <ViewTitle>string</ViewTitle>
              <ViewID>guid</ViewID>
              <DataVersion>dateTime</DataVersion>
              <CompareVersion>dateTime</CompareVersion>
              <LookupLists>
                <NHRCViewResultLookupList>
                  <LookupTableID>guid</LookupTableID>
                  <ColumnDetails xsi:nil="true" />
                  <IsViewResults>boolean</IsViewResults>
                  <UsedAsSubtable>boolean</UsedAsSubtable>
                  <IsChangeTrackingTable>boolean</IsChangeTrackingTable>
                  <CanAcceptChanges>boolean</CanAcceptChanges>
                  <TableName>string</TableName>
                </NHRCViewResultLookupList>
                <NHRCViewResultLookupList>
                  <LookupTableID>guid</LookupTableID>
                  <ColumnDetails xsi:nil="true" />
                  <IsViewResults>boolean</IsViewResults>
                  <UsedAsSubtable>boolean</UsedAsSubtable>
                  <IsChangeTrackingTable>boolean</IsChangeTrackingTable>
                  <CanAcceptChanges>boolean</CanAcceptChanges>
                  <TableName>string</TableName>
                </NHRCViewResultLookupList>
              </LookupLists>
              <ColumnDetails>
                <NHRCViewResultColumnDetails>
                  <LookupTableID>guid</LookupTableID>
                  <LookupListSortColumn>string</LookupListSortColumn>
                  <IsPartOfDuplicateCheck>boolean</IsPartOfDuplicateCheck>
                  <PrimaryFilterOrder>int</PrimaryFilterOrder>
                  <IsPartOfErrorDefinition>boolean</IsPartOfErrorDefinition>
                  <KeyFieldName>string</KeyFieldName>
                  <ValueFieldNames xsi:nil="true" />
                  <DisplayFieldCaption>string</DisplayFieldCaption>
                  <ConsolidatedDisplayFieldName>string</ConsolidatedDisplayFieldName>
                  <ConsolidatedDisplayFieldExpression>string</ConsolidatedDisplayFieldExpression>
                  <OriginalFieldName>string</OriginalFieldName>
                  <ColumnWidth>int</ColumnWidth>
                  <DataType>string</DataType>
                  <MaxLength>int</MaxLength>
                  <AllowEmpty>boolean</AllowEmpty>
                  <Visible>boolean</Visible>
                  <DisplayOrder>int</DisplayOrder>
                  <FieldReadOnly>boolean</FieldReadOnly>
                  <IsSubtableLink>boolean</IsSubtableLink>
                  <IsLookupFromView>boolean</IsLookupFromView>
                  <IsSingleValueLookupTable>boolean</IsSingleValueLookupTable>
                  <IsLookupOfLookup>boolean</IsLookupOfLookup>
                  <LookupCriteria>string</LookupCriteria>
                  <MinValue>double</MinValue>
                  <MaxValue>double</MaxValue>
                  <ValidationRegex>string</ValidationRegex>
                </NHRCViewResultColumnDetails>
                <NHRCViewResultColumnDetails>
                  <LookupTableID>guid</LookupTableID>
                  <LookupListSortColumn>string</LookupListSortColumn>
                  <IsPartOfDuplicateCheck>boolean</IsPartOfDuplicateCheck>
                  <PrimaryFilterOrder>int</PrimaryFilterOrder>
                  <IsPartOfErrorDefinition>boolean</IsPartOfErrorDefinition>
                  <KeyFieldName>string</KeyFieldName>
                  <ValueFieldNames xsi:nil="true" />
                  <DisplayFieldCaption>string</DisplayFieldCaption>
                  <ConsolidatedDisplayFieldName>string</ConsolidatedDisplayFieldName>
                  <ConsolidatedDisplayFieldExpression>string</ConsolidatedDisplayFieldExpression>
                  <OriginalFieldName>string</OriginalFieldName>
                  <ColumnWidth>int</ColumnWidth>
                  <DataType>string</DataType>
                  <MaxLength>int</MaxLength>
                  <AllowEmpty>boolean</AllowEmpty>
                  <Visible>boolean</Visible>
                  <DisplayOrder>int</DisplayOrder>
                  <FieldReadOnly>boolean</FieldReadOnly>
                  <IsSubtableLink>boolean</IsSubtableLink>
                  <IsLookupFromView>boolean</IsLookupFromView>
                  <IsSingleValueLookupTable>boolean</IsSingleValueLookupTable>
                  <IsLookupOfLookup>boolean</IsLookupOfLookup>
                  <LookupCriteria>string</LookupCriteria>
                  <MinValue>double</MinValue>
                  <MaxValue>double</MaxValue>
                  <ValidationRegex>string</ValidationRegex>
                </NHRCViewResultColumnDetails>
              </ColumnDetails>
              <ExpressionColumns>
                <NHRCViewResultExpressionColumn>
                  <TableID>guid</TableID>
                  <TableName>string</TableName>
                  <ColumnName>string</ColumnName>
                  <Expression>string</Expression>
                  <Order>int</Order>
                </NHRCViewResultExpressionColumn>
                <NHRCViewResultExpressionColumn>
                  <TableID>guid</TableID>
                  <TableName>string</TableName>
                  <ColumnName>string</ColumnName>
                  <Expression>string</Expression>
                  <Order>int</Order>
                </NHRCViewResultExpressionColumn>
              </ExpressionColumns>
              <Relations>
                <NHRCViewResultRelation>
                  <ParentKey>string</ParentKey>
                  <ChildKey>string</ChildKey>
                  <RelationName>string</RelationName>
                  <ParentTableName>string</ParentTableName>
                  <ChildTableName>string</ChildTableName>
                  <ParentTableID>guid</ParentTableID>
                  <ChildTableID>guid</ChildTableID>
                  <DependsOnExpressionColumn>boolean</DependsOnExpressionColumn>
                </NHRCViewResultRelation>
                <NHRCViewResultRelation>
                  <ParentKey>string</ParentKey>
                  <ChildKey>string</ChildKey>
                  <RelationName>string</RelationName>
                  <ParentTableName>string</ParentTableName>
                  <ChildTableName>string</ChildTableName>
                  <ParentTableID>guid</ParentTableID>
                  <ChildTableID>guid</ChildTableID>
                  <DependsOnExpressionColumn>boolean</DependsOnExpressionColumn>
                </NHRCViewResultRelation>
              </Relations>
            </GetViewResultsResult>
          </GetViewResultsResponse>
        </soap:Body>
      </soap:Envelope>