ReadMultiple ISSUES

balhiniobalhinio Member Posts: 28
edited 2010-08-30 in NAV Three Tier
Hi All,
I have an issue with the ReadMultiple of Nav WebService. with the following code the methode return me only one customer
but in the server I have more than one customer.!!

NavCustService.Customer_Filter filter = new NavCustService.Customer_Filter();

filter.Field = NavCustService.Customer_Fields.Name ;
filter.Criteria = "Patrique";


NavCustService.Customer_Filter[] filters = new NavCustService.Customer_Filter[] { filter };

NavCustService.Customer[] customers = NavCustomerService.ReadMultiple(filters,null,0);

thanks for help

Comments

  • balhiniobalhinio Member Posts: 28
    Is that related to the schema into the WSDL of Navision, I sheked the WSDL and i found the folowwing:
    <xsd:element name="ReadMultiple_Result">
    - <xsd:complexType>
    - <xsd:sequence>
    <xsd:element minOccurs="0" maxOccurs="1" name="ReadMultiple_Result" type="tns:Customer_List" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>

    the minOccurs=0 and the maxOccurs=1 haw can I modify them.
  • krikikriki Member, Moderator Posts: 9,115
    [Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.