Web services request objects

All operations of the web services expect a request object as the input parameter. This request object passes on various parameters that a particular operation would require to run successfully.

All of the member information (in the form of a member object), and dictionary information (in the form of a dictionary object), along with various filters are added to this request object, which is then passed to the operation as an argument. The following example shows how to create a memberMatchRequest object, add various input parameters to it and pass it to the matchMember operation as an argument.

// Create a request object using which we pass input 
// parameters to the operation.
MemberMatchRequest request = new MemberMatchRequest();

// Set the srccode and member id for the operation.
request.setSrcCode("RMC");
request.setMemIdnum("224422");

// Set a segment code filter to limit
// output to specific segments.
request.setSegCodeFilter("MEMHEAD,MEMADDR,MEMATTR,MEMDATE," + "MEMIDENT,MEMNAME,
    MEMPHONE,MEMXTSK");

// Set username & password for the operation.
request.setUserName("rwuser");
request.setUserPassword("rwuser");

// Set the entity type to one of the entity types
// listed in the mpi_enttype table.
request.setEntType("<entity-type>");

// Set the member type to one of the member types
// listed in the mpi_memtype table.
request.setMemType("<member-type>");

// Perform the matchMember operation.
return port.matchMember(request);