tags:

views:

177

answers:

0

Hi

I'm quite new to SOAP. I need to understand something failry basic I'm sure. First, the info:


This method returns a list of all items in a database where a field matches a value. For example: WhereClause = "TypeCode = 'M'"

Code

//[some code]
bool morePages;
//[some other code]
PartListDataSetType plType = proxy.GetList(CompanyName, whereClause, 0, 1, out morePages);
//[some more code]


Docs

GetList

The GetList Web method accepts the following arguments:

  • An expression used to filter the rows. Can be left blank for all rows. (ParameterInfo)
  • The maximum number of rows to return. Leave as zero for no maximum. (ParameterInfo)
  • Page of rows to return. (ParameterInfo)
  • Whether there are more pages of rows available. (ParameterInfo)

Returns: The list DataSet. (PartListDataSet)


Schema:

<xs:element name="GetList">
  <xs:complexType>
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="CompanyID" type="xs:string"/>
          <xs:element minOccurs="0" maxOccurs="1" name="whereClause" type="xs:string" />
          <xs:element minOccurs="1" maxOccurs="1" name="pageSize" type="xs:int"/>
          <xs:element minOccurs="1" maxOccurs="1" name="absolutePage" type="xs:int" />
          <xs:element minOccurs="0" maxOccurs="1" name="callContextIn" type="vantageSchema:CallContextDataSetType"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>


First, does anyone know what's going on with "out morepages"?

I was under the impression that I could pass in strings, objects, boolean values and all sorts into a SOAP message. That seems to be the case, but also it seems like there is more. However, I believe I will need to pass in some strings and boolean values in the way shown as well as some DOMs or schemas. I assume this because there seems to be no other way to specify values for certain elements of a tree which follow after a hundred blank elements. To pass a schema, do I just pass the DOM? If that is the case, my DOM is blank as it has come from a template schema. Do I need to populate it?

I realise that these questions may be basic but you'd be surprised how hard it is to find this information on the internet.

I'm using VB (no choice, don't ask or assume why), although my examples here are from a VB.Net project.

Also if anyone knows about adding in a security header in VB feel free to share ;)

Thanks