Dependent API | Administrative - SOAP

The Dependent Service provides clients dependent functionalities such as reading, adding, updating, and deleting dependents’ information.

Important Note: In order to facilitate backward compatibility with all Web Services in use prior to June 4, 2005, either Employee (Dependent) Social Security Number (previously used as unique employee/dependent identifier) or Employee (Dependent) ID (new unique employee/dependent identifier) may be provided when required to uniquely identify an employee or dependent. If both are provided, the Employer (Dependent) ID is used as the unique identifier. When adding or updating employee or dependent demographic information (specifically, the “True” Social Security Number field), the following rules apply:

  • If only the Employee (Dependent) ID is provided, it is used as the unique identifier, and the “True” SSN field is not be added or updated.
  • If only the Employee (Dependent) Social Security Number is provided, it is be used as the unique identifier, and the “True” SSN field is not added or updated.
  • If both the Employee (Dependent) ID and the Employee (Dependent) Social Security Number are provided, the Employee (Dependent) ID is used as the unique identifier and the Employee (Dependent) Social Security Number is used to add/update the “True” SSN.

Service Web Methods

The following is a list of methods that are provided by the Dependent Service.

  • AddDependent – used to add a dependent’s demographic information
  • DeleteDependent– used to remove information about a dependent
  • GetDependent- to get information about an employee’s dependent
  • GetDependents – used to retrieve an employee’s list of dependents
  • UpdateDependent – used to update a dependent’s demographic information that already exists

Service Assumptions/Business Rules

The Dependent Service makes the following assumptions as well as enforce the following business rules.

  • Clients shall conform to the WS-I specifications unless otherwise agreed upon by Alegeus Technologies and the administrator.
  • Clients shall format SOAP messages in a Document/Literal format over HTTPS.
  • Clients shall have already created a valid user ID and password.
  • Clients shall have a valid session ID after being authenticated by the system. The session ID needs to be passed in the proper manner as described in the Account Manager Service Guide.
  • If the administrator uses the same user ID and password for all of their clients, the administrators are responsible for managing the security of the data.
  • Clients should validate data before submitting a request to this Service. This facilitates better performance and accurate processing on both systems.
  • Clients shall not attempt to use this service for batch processing of large amounts of data. The service is designed for synchronous calls that send or retrieve small chunks of data. If batch processing is required, then the EDI process should be used.
  • If any method fails, the service returns a SOAP fault describing the problem.

AddDependent

This method is used to add a dependent’s demographic information to the system.

History

The AddDependent methods are listed below:

Request Message

  • AddDependentRequest_2008_07
  • AddDependentRequest

Response Message

  • AddDependentResponse

AddDependent Request/Response Messages

The AddDependent method requires the following request and response messages (input and output data).

The table below includes the following request message:

  • AddDependentRequest_2008_07
  • AddDependentRequest

Request Body

  • Address1 String required
    Dependent’s address.
    First Available Version: AddDependentRequest
  • Address2 String
    Second line of dependent’s address if needed.
    First Available Version: AddDependentRequest
  • BirthDate Date
    Dependent's date of birth.
    First Available Version: AddDependentRequest
    Default Values: 1
  • City String required
    City associated with dependent’s address.
    First Available Version: AddDependentRequest
  • Country String required
    Country associated with dependent's address. US is a valid option. Please contact us if you intend to send to any international address.
    First Available Version: AddDependentRequest
    Default Values: US
  • DependentSocialSecurityNumber String conditionally required
    Dependent’s social security number.
    First Available Version: AddDependentRequest
  • DependentId String conditionally required
    Required if this field is being used as the unique dependent identifier. Either this field or Dependent SSN may be used for this purpose.
    First Available Version: AddDependentRequest
  • EmployeeSocialSecurityNumber String conditionally required
    Employee’s social security number.
    First Available Version: AddDependentRequest
  • EmployeeId String conditionally required
    Employee's WCA ID. Required if this field is being used as the unique employee identifier. Either this field or Employee SSN may be used for this purpose. Required for versions 2011_10 and on.
    First Available Version: AddDependentRequest
  • EmployerId String required
    Unique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
    First Available Version: AddDependentRequest
  • FirstName String required
    Dependent’s first name. Allowable characters are alphanumeric (a-z, A-Z, 0-9), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
    First Available Version: AddDependentRequest
  • FulltimeStudent Boolean
    Student status.
    No = 0
    Yes = 1
    First Available Version: AddDependentRequest
    Default Values: FALSE
  • Gender Enumeration
    Dependent’s gender.
    None = 0
    Male = 1
    Female = 2
    First Available Version: AddDependentRequest
    Default Values: None
  • LastName String required
    Dependent’s last name. Allowable characters are alphanumeric (a-z, A-Z, 0-9), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
    First Available Version: AddDependentRequest
  • MiddleInitial String
    Dependent’s middle initial name. Allowable characters are alphanumeric (a-z, A-Z, 0-9), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
    First Available Version: AddDependentRequest
  • NamePrefix String
    Mr., Mrs., Dr., Rev, etc
    First Available Version: AddDependentRequest
  • Phone String
    Dependent’s phone number including area code.
    First Available Version: AddDependentRequest
  • Relationship Enumeration
    Relationship between employee and dependent.
    Unknown = 0
    SpouseorCommonLawSpouse = 1
    Child = 2
    DomesticPartner = 3
    Other = 4
    First Available Version: AddDependentRequest
    Default Values: Unknown
  • ShippingAddress1 String
    Dependent’s shipping address if different from the above address as to where the card should
    be sent. If included, then ShippingCity,
    ShippingState, ShippingZipCode, and
    ShippingCountry must also be included.
    First Available Version: AddDependentRequest
  • ShippingAddress2 String
    Dependent’s shipping address if different from the above address as to where the card should be sent.
    First Available Version: AddDependentRequest
  • ShippingCity String conditionally required
    Dependent’s shipping address if different from the above address as to where the card should be sent. Required if the ShippingAddress1 field is included.
    First Available Version: AddDependentRequest
  • ShippingCountry String conditionally required
    Dependent’s shipping address if different from the above address as to where the card should be sent. US is the valid option. Please contact us if you intend to send to any international address. Required if the ShippingAddress1 field is included.
    First Available Version: AddDependentRequest
    Default Values: US
  • ShippingState String conditionally required
    Dependent’s shipping address if different from the above address as to where the card should be sent. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any international address. Required if the ShippingAddress1 field is included.
    First Available Version: AddDependentRequest
  • ShippingZipCode String conditionally required
    Dependent’s shipping address if different from the above address as to where the card should be sent. . Required if the ShippingAddress1 field is included.
    First Available Version: AddDependentRequest
  • State String required
    State code associated with the dependent's address. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any international address.
    First Available Version: AddDependentRequest
  • TpaId String
    A unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
    First Available Version: AddDependentRequest
  • ZipCode String required
    Zip code associated with the dependent's address.
    First Available Version: AddDependentRequest
  • EligibilityDate String
    YYYYMMDD. Date upon which the Dependent is eligible to elect benefits.
    First Available Version: AddDependentRequest_2008_07
  • TerminationDate String
    YYYYMMDD. Date upon which the dependent’s account is no longer eligible for benefits.  Date must be after dependent Account Effective date.
    First Available Version: AddDependentRequest_2008_08
  • DependentPrivacy Boolean
    Use to enable or disable dependent privacy.
    No = False
    Yes = True
    Note1: If this field is included and left blank,
    then it will default to ‘False’
    Note 2: If the dependent privacy option is enabled on the admin > processing > options page in WCA, then a value of ‘True’ will mask provider and merchant information in communications related to the dependent’s transactions.
    If dependent privacy is NOT enabled a the administrator options level and a value of ‘True’ is passed, then the dependent will be flagged for dependent privacy tracking, but provider and merchant information will not be masked in communications.
    First Available Version: AddDependentRequest_2008_09

Response Message: Empty Message Example of an AddDependent SOAP request message

Example Request Body
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
        <MBISessionHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/">
            <MBISessionID>o3kaamaa2u4khf450irosiin</MBISessionID>
        </MBISessionHeader>
    </soap:Header>
    <soap:Body>
        <AddDependent xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Request/2004/06/"> <addDependentRequest>
        <Address1>234 Western St</Address1>
        <BirthDate>1965-01-01</BirthDate>
        <City>EasternTown</City>
        <DependentSocialSecurityNumber>122132876</DependentSocialSecurityNumber>
        <EmployeeSocialSecurityNumber>332323232</EmployeeSocialSecurityNumber>
        <EmployerId>EASE10</EmployerId>
        <FirstName>Southe</FirstName>
        <Gender xmlns="http://www.medibank.com/MBIWebServices/Enums/">Female</Gender>
        <LastName>EastWood</LastName>
        <MiddleInitial />
        <NamePrefix>Mrs.</NamePrefix>
        <Phone />
        <Relationship xmlns="http://www.medibank.com/MBIWebServices/Enums/">Spouse</Relationship>
        <ShippingCountry />
        <State>MA</State>
        <TpaId>T00209</TpaId>
        <ZipCode>087654</ZipCode>
    </addDependentRequest>
</AddDependent>
</soap:Body>
</soap:Envelope>

Example of an AddDependent SOAP response message

Example Response Body
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
        <MBIMessageIdHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/" />
    </soap:Header>
    <soap:Body>
        <AddDependentResponse xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Response/2004/06/">
            <AddDependentResult />
        </AddDependentResponse>
    </soap:Body>
</soap:Envelope>

Example Client Code

The following is an example of the client code (using a .NET proxy class for accessing the service) used when adding an employee using the AddDependent web method.

C#
try
{
    // Create the session SOAP header in order to pass the Service   // the client’s current session id.
    mbiSessionHeader = new DependentServiceNameSpace.MBISessionHeader();
    // Create proxy object for the Dependent service
    proxy = new DependentServiceNameSpace.DependentService();
    // Create request message for method call (input parameters)  request = new DependentServiceNameSpace.AddDependentRequest();
    // Set the input parameters
    request.Address1 = _address1.Text;
    request.Address2 = _address2.Text;
    if(_birthDate.Text.Length > 0)
    {
        request.BirthDate = Convert.ToDateTime(_birthDate.Text);
    }
    request.City = _city.Text;
    request.Country = _country.Text;
    request.DependentSocialSecurityNumber = _depSSN.Text;
    request.EmployeeSocialSecurityNumber = _empeSSN.Text;
    request.EmployerId = _emprId.Text;
    request.FirstName = _firstName.Text;
    request.FullTimeStudent = (bool)_fulltimeStudent.SelectedItem;
    request.Gender = (DependentServiceNameSpace.Gender)_gender.SelectedItem;   request.LastName = _lastName.Text;
    request.MiddleInitial = _middleInitial.Text;
    request.NamePrefix = _namePrefix.Text;
    request.Phone = _phone.Text;   request.Relationship = (DependentServiceNameSpace.EmployeeRelation)
    _relationship.SelectedItem;
    request.ShippingAddress1 = _shippingAddress1.Text;
    request.ShippingAddress2 = _shippingAddress2.Text;
    request.ShippingCity = _shippingCity.Text;
    request.ShippingCountry = _shippingCountry.Text;
    request.ShippingState = _shippingState.Text;
    request.ShippingZipCode = _shippingZipCode.Text;
    request.State = _state.Text;
    request.TpaId = _tpaId.Text;  request.ZipCode = _zipCode.Text;
    // session ID returned from login method
    mbiSessionHeader.MBISessionID = _sessionId.Text;
    proxy.MBISessionHeaderValue = mbiSessionHeader;
    // Call the method
    response = proxy.AddDependent(request);
    MessageBox.Show("Finished.");
}

DeleteDependent

This method is used to remove information about a dependent from the system.

History

The DeleteDependent methods are listed below:

Request Message

  • DeleteDependentRequest_2011_10
  • DeleteDependentRequest

Response Message

  • DeleteDependentResponse

DeleteDependent Request/Response Messages

The DeleteDependent method requires the following request and response messages (input and output data).

The table below includes the following request message:

  • DeleteDependentRequest

Request Body

  • Dependent SocialSecurityNumber String conditionally required
    Dependent’s social security number.
    First Available Version: DeleteDependentRequest
  • DependentId String conditionally required
    Required if this field is being used as the unique dependent identifier. Either this field or Dependent SSN may be used for this purpose.
    First Available Version: DeleteDependentRequest
  • EmployeeSocialSecurityNumber String conditionally required
    Employee’s social security number. Required for versions 2011_10 and on.
    First Available Version: DeleteDependentRequest
  • EmployeeId String conditionally required
    Employee's WCA ID. Required if this field is being used as the unique employee identifier. Either this field or Employee SSN may be used for this purpose. Required for versions 2011_10 and on.
    First Available Version: DeleteDependentRequest
  • EmployerId String required
    Unique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
    First Available Version: DeleteDependentRequest
  • TpaId String
    A unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
    First Available Version: DeleteDependentRequest

Response Message: Empty Message Example of a DeleteDependent SOAP request message

Example Request Body
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
        <MBISessionHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/">
            <MBISessionID>org3b4454knvat45da0insnt</MBISessionID>
        </MBISessionHeader>
    </soap:Header>
    <soap:Body>
        <DeleteDependent xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Request/2004/06/"> <deleteDependentRequest>
        <DependentSocialSecurityNumber>222222222</DependentSocialSecurityNumber>
        <EmployeeSocialSecurityNumber>332323232</EmployeeSocialSecurityNumber>
        <EmployerId>EASE10</EmployerId>
        <TpaId>T00209</TpaId>
    </deleteDependentRequest>
</DeleteDependent>
</soap:Body>
</soap:Envelope>

Example of a DeleteDependent SOAP response message

Example Response Body
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
        <MBIMessageIdHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/" />
    </soap:Header>
    <soap:Body>
        <DeleteDependentResponse xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Response/2004/06/"> <DeleteDependentResult />
    </DeleteDependentResponse>
</soap:Body>
</soap:Envelope>

Example Client Code

The following is an example of the client code (using a .NET proxy class to connect with the service) used when calling the DeleteDependent method.

C#
try
{
    // Create the session SOAP header in order to pass the Service   // the client’s current session id.
    mbiSessionHeader = new DependentServiceNameSpace.MBISessionHeader();
    // Create proxy object for the Dependent service
    proxy = new DependentServiceNameSpace.DependentService();
    // Create request message for method call (input parameters)
    request = new DependentServiceNameSpace.DeleteDependentRequest();
    // Set the input parameters
    request.DependentSocialSecurityNumber = _dependentSocialSecurityNumber.Text;
    request.EmployeeSocialSecurityNumber = _employeeSocialSecurityNumber.Text;
    request.EmployerId = _employerId.Text;
    request.TpaId = _tpaId.Text;
    // session ID returned from login method
    mbiSessionHeader.MBISessionID = _sessionId.Text;
    proxy.MBISessionHeaderValue = mbiSessionHeader;
    // Call the method
    response = proxy.DeleteDependent(request);
    MessageBox.Show("Finished.");
}
catch(SoapException se)
{
    // perform needed operations
}
catch(Exception ex)
{
    // perform needed operations
}

GetDependent

This method is used to get information about an employee’s dependent.

History

The GetDependent methods are listed below:

Request Message

  • GetDependentRequest_2011_10
  • GetDependentRequest

Response Message

  • GetDependentResponse_2008_07
  • GetDependentResponse_2007_12
  • GetDependentResponse

GetDependent Request/Response Messages

The GetDependent method requires the following request and response messages (input and output data).

The table below includes the following request message:

  • GetDependentRequest

Request Body

  • DependentSocialSecurityNumber String conditionally required
    Dependent’s social security number.
    First Available Version: GetDependentRequest
  • DependentId String conditionally required
    Required if this field is being used as the unique employee identifier. Either this field or Dependent SSN may be used for this purpose.
    First Available Version: GetDependentRequest
  • EmployeeSocialSecurityNumber String conditionally required
    Employee’s social security number. Required for versions 2011_10 and on.
    First Available Version: GetDependentRequest
  • EmployeeId String conditionally required
    Employee's WCA ID. Required if this field is being used as the unique employee identifier. Either this field or Employee SSN may be used for this purpose. Required for versions 2011_10 and on.
    First Available Version: GetDependentRequest
  • EmployerId String required
    Unique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
    First Available Version: GetDependentRequest
  • TpaId String
    A unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
    First Available Version: GetDependentRequest
  • VerboseMode Boolean
    Optional, if set to true, the method may return more details as to why a query did not return any records. For example, if an invalid employee social security number was sent.
    First Available Version: GetDependentRequest
    Default Values: FALSE

The table below includes the following response message:

  • GetDependentResponse_2008_07
  • GetDependentResponse_2007_12
  • GetDependentResponse

Response Body

  • Address1 String
    Dependent’s address.
    First Available Version: GetDependentResponse
  • Address2 String
    Second line of dependent’s address if needed.
    First Available Version: GetDependentResponse
  • BirthDate String
    Date of birth for dependent.
    First Available Version: GetDependentResponse
  • City String
    City associated with dependent’s address.
    First Available Version: GetDependentResponse
  • Country String
    Country associated with dependent's address. US is a valid option. Please contact us if you intend to send to any international address.
    First Available Version: GetDependentResponse
  • DependentSocialSecurityNumber String
    Dependent’s current social security number.
    First Available Version: GetDependentResponse
  • DependentId String
    Dependent’s WCA ID.
    First Available Version: GetDependentResponse
  • Dependent Status Enumeration
    Cardholder's status.
    New = 1
    Active = 2
    TempInactive = 3
    PermInactive = 4
    Terminated = 5
    First Available Version: GetDependentResponse
  • EmployerId String
    Unique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
    First Available Version: GetDependentResponse
  • FirstName String
    Dependent’s first name. Allowable characters are alphanumeric (a-z, A-Z, 0-9), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space( ).
    First Available Version: GetDependentResponse
  • FulltimeStudent Boolean
    Student status.
    No = 0
    Yes = 1
    First Available Version: GetDependentResponse
  • Gender Enumeration
    Dependent’s gender.
    None = 0
    Male = 1
    Female = 2
    First Available Version: GetDependentResponse
  • LastName String
    Dependent’s last name. Allowable characters are alphanumeric (a-z, A-Z, 0-9), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space( ).
    First Available Version: GetDependentResponse
  • MiddleInitial String
    Dependent’s middle initial. Allowable characters are alphanumeric (a-z, A-Z, 0-9), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space( ).
    First Available Version: GetDependentResponse
  • NamePrefix String
    Mr., Mrs., Dr., Rev, etc
    First Available Version: GetDependentResponse
  • Relationship Enumeration
    Relationship between employee and dependent.
    Unknown = 0
    SpouseorCommonLawSpouse = 1
    Child = 2
    DomesticPartner = 3
    Other = 4
    First Available Version: GetDependentResponse
  • Shipping Address1 String
    Dependent’s shipping address if different from the above address as to where the card should
    be sent. If included, then ShippingCity,
    ShippingState, ShippingZipCode, and ShippingCountry must also be included.
    First Available Version: GetDependentResponse
  • Shipping Address2 String
    Dependent’s shipping address if different from the above address as to where the card should be sent.
    First Available Version: GetDependentResponse
  • ShippingCity String
    Dependent’s shipping address if different from the above address as to where the card should be sent. Required if the ShippingAddress1 field is included.
    First Available Version: GetDependentResponse
  • Shipping Country String
    Dependent’s shipping address if different from the above address as to where the card should be sent. US is a valid option. Please contact us if you intend to send to any international address. Required if the ShippingAddress1 field is included.
    First Available Version: GetDependentResponse
  • ShippingState String
    Dependent’s shipping address if different from the above address as to where the card should be sent. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any
    international address. Required if the ShippingAddress1 field is included.
    First Available Version: GetDependentResponse
  • Shipping ZipCode String
    Dependent’s shipping address if different from the above address as to where the card should be sent. Required if the ShippingAddress1 field is included.
    First Available Version: GetDependentResponse
  • State String
    State code associated with the dependent's address. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any international address.
    First Available Version: GetDependentResponse
  • TpaId String
    A unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
    First Available Version: GetDependentResponse
  • ZipCode String
    Zip code associated with the dependent's address.
    First Available Version: GetDependentResponse
  • CardDesignId String
    For future use. Card design will currently always be payment.
    First Available Version: GetDependentResponse_2007_12
  • EligibilityDate String
    Date upon which the dependent is eligible to elect benefits.
    First Available Version: GetDependentResponse_2008_07
  • TerminationDate String
    Date upon which the dependent’s account is no longer eligible for benefits.  Date must be after dependent account effective date.
    First Available Version: GetDependentResponse_2008_07

Example of a GetDependent SOAP request message

Example Request Body
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
        <MBISessionHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/">
            <MBISessionID>org3b4454knvat45da0insnt</MBISessionID>
        </MBISessionHeader>
    </soap:Header>
    <soap:Body>
        <GetDependent xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Request/2004/06/"> <GetDependentRequest>
        <DependentSocialSecurityNumber>222222222</DependentSocialSecurityNumber>
        <EmployeeSocialSecurityNumber>332323232</EmployeeSocialSecurityNumber>
        <EmployerId>EASE10</EmployerId>
        <TpaId>T00209</TpaId>
    </GetDependentRequest>
</GetDependent>
</soap:Body>
</soap:Envelope>

Example of a GetDependent SOAP response message

Example Response Body
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
        <MBIMessageIdHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/" />
    </soap:Header>
    <soap:Body>
        <GetDependentResponse xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Response/2004/06/">
            <GetDependentResult>
                <Address1>dsdsds</Address1>
                <Address2 />
                <BirthDate>20020101</BirthDate>
                <City>jkkjbj</City>
                <Country>US</Country>
                <DependentSocialSecurityNumber>222222222</DependentSocialSecurityNumber>
                <DependentStatus xmlns="http://www.medibank.com/MBIWebServices/Enums/">New</DependentStatus>
                <EmployerId>EASE10</EmployerId>
                <FirstName>mmn</FirstName>
                <FullTimeStudent>false</FullTimeStudent>
                <Gender xmlns="http://www.medibank.com/MBIWebServices/Enums/">None</Gender>
                <LastName>mnbnm</LastName>
                <MiddleInitial />
                <NamePrefix />
                <Phone />
                <Relationship xmlns="http://www.medibank.com/MBIWebServices/Enums/">Unknown</Relationship>
                <ShippingAddress1 />
                <ShippingAddress2 />
                <ShippingCity />
                <ShippingCountry />
                <ShippingState />
                <ShippingZipCode />
                <State>MA</State>
                <TpaId>T00209</TpaId>
                <ZipCode>83243</ZipCode>
            </GetDependentResult>
        </GetDependentResponse>
    </soap:Body>
</soap:Envelope>

Example Client Code

The following is an example of the client code (using a .NET proxy class to connect to the service) used when calling the GetDependent method.

C#
try
{
    _dataset.Tables["Dependents"].Clear();
    // Create the session SOAP header in order to pass the Service
    // the client’s current session id.
    mbiSessionHeader = new DependentServiceNameSpace.MBISessionHeader();
    // Create proxy object for the Dependent service
    proxy = new DependentServiceNameSpace.DependentService();
    // Create request message for method call (input parameters)
    request = new DependentServiceNameSpace.GetDependentRequest();
    // Set the input parameters
    request.DependentSocialSecurityNumber = _dependentSocialSecurityNumber.Text;
    request.EmployeeSocialSecurityNumber = _employeeSocialSecurityNumber.Text;
    request.EmployerId = _employerId.Text;
    request.TpaId = _tpaId.Text;
    request.VerboseMode = Convert.ToBoolean(_verboseMode.Text);
    // session ID returned from logon method
    mbiSessionHeader.MBISessionID = _sessionId.Text;
    proxy.MBISessionHeaderValue = mbiSessionHeader;
    response = proxy.GetDependent(request);
    if(response != null)
    {
        _dataset.Tables["Dependents"].Rows.Add(new string[]
        {
            response.Address1,
                response.Address2,
                response.BirthDate,
                response.City,
                response.Country,
                response.DependentSocialSecurityNumber,
                response.DependentStatus.ToString(),
                response.EmployerId,
                response.FirstName,
                response.FullTimeStudent.ToString(),
                response.Gender.ToString(),
                response.LastName,
                response.MiddleInitial,
                response.NamePrefix,
                response.Phone,
                response.Relationship.ToString(),
                response.ShippingAddress1,
                response.ShippingAddress2,
                response.ShippingCity,
                response.ShippingCountry,
                response.ShippingState,
                response.ShippingZipCode,
                response.State,
                response.TpaId,
                response.ZipCode
        });
    }
}
catch(SoapException se)
{
    // perform needed operations
}
catch(Exception ex)
{
    // perform needed operations
}

GetDependents

This method is used to get a list of dependents for a given employee.

History

The GetDependents methods are listed below:

Request Message

  • GetDependentsRequest

Response Message

  • GetDependentsResponse_2008_07
  • GetDependentsResponse_2007_12
  • GetDependentsResponse

GetDependents Request/Response Messages

The GetDependents method requires the following request and response messages (input and output data).

The table below includes the following request message:

  • GetDependentsRequest

Request Body

  • EmployeeSocialSecurityNumber String conditionally required
    Employee's social security number. This field is used to identify the employee and is not changed within this operation.
    First Available Version: GetDependentsRequest
  • EmployeeId String conditionally required
    Employee's WCA ID. Required if this field is being used as the unique employee identifier. Either this field or Employee SSN may be used for this purpose.
    First Available Version: GetDependentsRequest
  • EmployerId String required
    Unique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
    First Available Version: GetDependentsRequest
  • TpaId String
    A unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
    First Available Version: GetDependentsRequest
  • VerboseMode Boolean
    Optional, if set to true, the method may return more details as to why a query did not return any records. For example, if an invalid employee social security number was sent.
    First Available Version: GetDependentsRequest
    Default Values: FALSE

The table below includes the following response message:

  • GetDependentsResponse_2008_07
  • GetDependentsResponse_2007_12
  • GetDependentsResponse

Response Body

  • Address1 String
    Dependent’s address.
    First Available Version: GetDependentsResponse
  • Address2 String
    Second line of dependent’s address if needed.
    First Available Version: GetDependentsResponse
  • BirthDate String
    Date of birth for dependent.
    First Available Version: GetDependentsResponse
  • City String
    City associated with dependent’s address.
    First Available Version: GetDependentsResponse
  • Country String
    Country associated with dependent's address. US is a valid option. Please contact us if you intend to send to any international address.
    First Available Version: GetDependentsResponse
  • DependentSocialSecurityNumber String
    Dependent’s current social security number.
    First Available Version: GetDependentsResponse
  • DependentId String
    Dependent ID
    First Available Version: GetDependentsResponse
  • DependentStatus Enumeration
    Cardholder's status.
    New = 1
    Active = 2
    TempInactive = 3
    PermInactive = 4
    Terminated = 5
    First Available Version: GetDependentsResponse
  • EmployeeSocialSecurityNumber String
    Employee’s social security number.
    First Available Version: GetDependentsResponse
  • EmployerId String
    Unique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
    First Available Version: GetDependentsResponse
  • FirstName String
    Dependent’s first name. Allowable characters are alphanumeric (a-z, A-Z, 09), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
    First Available Version: GetDependentsResponse
  • FullTimeStudent Boolean
    Student status.
    No = 0
    Yes = 1
    First Available Version: GetDependentsResponse
  • Gender Enumeration
    Dependent’s gender.
    None = 0
    Male = 1
    Female = 2
    First Available Version: GetDependentsResponse
  • LastName String
    Dependent’s last name. Allowable characters are alphanumeric (a-z, A-Z, 09), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
    First Available Version: GetDependentsResponse
  • MiddleInitial String
    Dependent’s middle initial. Allowable characters are alphanumeric (a-z, A-Z, 09), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
    First Available Version: GetDependentsResponse
  • NamePrefix String
    Title for dependent, such as Mr., Mrs., Ms., Dr., or Rev
    First Available Version: GetDependentsResponse
  • Phone String
    Dependent’s phone number including area code.
    First Available Version: GetDependentsResponse
  • Relationship Enumeration
    Relationship between employee and dependent.
    Unknown = 0
    SpouseorCommonLawSpouse = 1
    Child = 2
    DomesticPartner = 3
    Other = 4
    First Available Version: GetDependentsResponse
  • State String
    State code associated with the dependent's address. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any international address.
    First Available Version: GetDependentsResponse
  • TpaId String
    A unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
    First Available Version: GetDependentsResponse
  • ZipCode String
    Zip code associated with the dependent's address.
    First Available Version: GetDependentsResponse
  • CardDesignId String
    For future use. Card design will currently always be payment.
    First Available Version: GetDependentsResponse_2007_12
  • EligibilityDate String
    Date upon which the Dependent is eligible to elect benefits.
    First Available Version: GetDependentsResponse_2008_07
  • TerminationDate String
    Date upon which the dependent’s account is no longer eligible for benefits. Date must be after dependent account effective date.
    First Available Version: GetDependentsResponse_2008_07

Example of a GetDependents SOAP request message

Example Request Body
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
        <MBISessionHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/">
            <MBISessionID>org3b4454knvat45da0insnt</MBISessionID>
        </MBISessionHeader>
    </soap:Header>
    <soap:Body>
        <GetDependents xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Request/2004/06/"> <getDependentsRequest>
        <EmployeeSocialSecurityNumber>332323232</EmployeeSocialSecurityNumber>
        <EmployerId>EASE10</EmployerId>
        <TpaId>T00209</TpaId>
    </getDependentsRequest>
</GetDependents>
</soap:Body>
</soap:Envelope>

Example of a GetDependents SOAP response message

Example Response Body
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
        <MBIMessageIdHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/" />
    </soap:Header>
    <soap:Body>
        <GetDependentsResponse xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Response/2004/06/">
            <GetDependentsResult>
                <GetDependentsResponse>
                    <Address1>dsdsds</Address1>
                    <Address2 />
                    <BirthDate>20020101</BirthDate>
                    <City>jkkjbj</City>
                    <Country>US</Country>
                    <DependentSocialSecurityNumber>222222222</DependentSocialSecurityNumber>
                    <DependentStatus xmlns="http://www.medibank.com/MBIWebServices/Enums/">New</DependentStatus>
                    <EmployeeSocialSecurityNumber>222222222</EmployeeSocialSecurityNumber>
                    <EmployerId>EASE10</EmployerId>
                    <FirstName>mmn</FirstName>
                    <FullTimeStudent>false</FullTimeStudent>
                    <Gender xmlns="http://www.medibank.com/MBIWebServices/Enums/">None</Gender>
                    <LastName>mnbnm</LastName>
                    <MiddleInitial />
                    <NamePrefix />
                    <Phone />
                    <Relationship xmlns="http://www.medibank.com/MBIWebServices/Enums/">Unknown</Relationship>
                    <State>MA</State>
                    <TpaId>T00209</TpaId>
                    <ZipCode>83243</ZipCode>
                </GetDependentsResponse>
            </GetDependentsResult>
        </GetDependentsResponse>
    </soap:Body>
</soap:Envelope>

Example Client Code

The following is an example of the client code (using a .NET proxy class to connect to the service) used when calling the GetDependents method.

C#
try
{
    _dataset.Tables["Dependents"].Clear();
    // Create the session SOAP header in order to pass the Service
    // the client’s current session id.
    mbiSessionHeader = new DependentServiceNameSpace.MBISessionHeader();
    // Create proxy object for the Dependent service
    proxy = new DependentServiceNameSpace.DependentService();
    // Create request message for method call (input parameters)
    request = new DependentServiceNameSpace.GetDependentsRequest();
    // Set the input parameters
    request.EmployeeSocialSecurityNumber = _employeeSocialSecurityNumber.Text;
    request.EmployerId = _employerId.Text;
    request.TpaId = _tpaId.Text;
    request.VerboseMode = Convert.ToBoolean(_verboseMode.Text);
    // session ID returned from logon method
    mbiSessionHeader.MBISessionID = _sessionId.Text;
    proxy.MBISessionHeaderValue = mbiSessionHeader;
    responses = proxy.GetDependents(request);
    if(responses != null)
    {
        for(int i=0; i < responses.Length; i++)
        {
            _dataset.Tables["Dependents"].Rows.Add(new string[]                                     {
                // set results
            });
        }
    }
}
catch(SoapException se)
{
    // perform needed operations
}
catch(Exception ex)
{
    // perform needed operations
}

UpdateDependent

This method is used to update a dependent’s demographic information. The dependent must already exist within the system.

History

The UpdateDependent methods are listed below:

Request Message

  • UpdateDependentRequest_2011_10
  • UpdateDependentRequest_2008_07
  • UpdateDependentRequest

Response Message

  • UpdateDependentResponse

UpdateDependent Request/Response Messages

The UpdateDependent method requires the following request and response messages (input and output data).

The table below includes the following request message:

  • UpdateDependentRequest_2008_07
  • UpdateDependentRequest

Request Body

  • Address1 String required
    Dependent’s address.
    First Available Version: UpdateDependentRequest
  • Address2 String
    Second line of dependent’s address if needed.
    First Available Version: UpdateDependentRequest
  • BirthDate Date
    Date of birth for dependent.
    First Available Version: UpdateDependentRequest
    Default Values: 1
  • City String required
    City associated with dependent’s address.
    First Available Version: UpdateDependentRequest
  • Country String required
    Country associated with dependent's address. US is a valid option. Please contact us if you intend to send to any international address.
    First Available Version: UpdateDependentRequest
    Default Values: US
  • CurrentDependentSocialSecurityNumber String conditionally required
    Dependent’s current social security number.
    First Available Version: UpdateDependentRequest
  • DependentStatus Enumeration
    Cardholder's status.
    New = 1
    Active = 2
    TempInactive = 3
    PermInactive = 4
    Terminated = 5
    First Available Version: UpdateDependentRequest
    Default Values: New
  • EmployerId String required
    Unique identifier for the employer. Note: When the employer was created, WealthCare Admin assigned the 3-character prefix; you assigned the remaining characters.
    First Available Version: UpdateDependentRequest
  • FirstName String required
    Dependent’s first name. Allowable characters are alphanumeric (a-z, A-Z, 09), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
    First Available Version: UpdateDependentRequest
  • FulltimeStudent Boolean
    Student status.
    No = 0
    Yes = 1
    First Available Version: UpdateDependentRequest
    Default Values: FALSE
  • Gender Enumeration
    Dependent’s gender.
    None = 0
    Male = 1
    Female = 2
    First Available Version: UpdateDependentRequest
    Default Values: None
  • LastName String required
    Dependent’s last name. Allowable characters are alphanumeric (a-z, A-Z, 09), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
    First Available Version: UpdateDependentRequest
  • MiddleInitial String
    Dependent’s middle initial. Allowable characters are alphanumeric (a-z, A-Z, 09), Special characters - comma (,), period (.), dash (-), ampersand (&), single apostrophe ('), and space ( ).
    First Available Version: UpdateDependentRequest
  • NamePrefix String
    Title for dependent, such as Mr., Mrs., Ms., Dr., or Rev
    First Available Version: UpdateDependentRequest
  • NewDependentSocialSecurityNumber String
    Dependent’s new social security number. Leave empty unless the dependent’s SSN needs to be replaced.
    First Available Version: UpdateDependentRequest
  • Phone String
    Dependent’s phone number including area code.
    First Available Version: UpdateDependentRequest
  • Relationship Enumeration
    Relationship between employee and dependent.
    Unknown = 0
    SpouseorCommonLawSpouse = 1
    Child = 2
    DomesticPartner = 3
    Other = 4
    First Available Version: UpdateDependentRequest
    Default Values: Unknown
  • Shipping Address1 String
    Dependent’s shipping address if different from the above address as to where the card
    should be sent. If included, than
    ShippingCity, ShippingState,
    ShippingZipCode, and ShippingCountry must also be included.
    First Available Version: UpdateDependentRequest
  • Shipping Address2 String
    Dependent’s shipping address if different from the above address as to where the card should be sent.
    First Available Version: UpdateDependentRequest
  • ShippingCity String conditionally required
    Dependent’s shipping address if different from the above address as to where the card
    should be sent. Required if the
    ShippingAddress1 field is included.
    First Available Version: UpdateDependentRequest
  • Shipping Country String conditionally required
    Dependent’s shipping address if different from the above address as to where the card should be sent. US is a valid option. Please contact us if you intend to send to any international address. Required if the ShippingAddress1 field is included.
    First Available Version: UpdateDependentRequest
    Default Values: US
  • ShippingState String conditionally required
    Dependent’s shipping address if different from the above address as to where the card should be sent. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any international address. Required if the ShippingAddress1 field is included.
    First Available Version: UpdateDependentRequest
  • Shipping ZipCode String conditionally required
    Dependent’s shipping address if different from the above address as to where the card should be sent. Required if the ShippingAddress1 field is included.
    First Available Version: UpdateDependentRequest
  • State String required
    State code associated with the dependent's address. Use the appropriate 2 character state postal code associated with employee’s address. Please contact us if you intend to send to any international address.
    First Available Version: UpdateDependentRequest
  • TpaId String
    A unique identifer for your administrator instance, generated by WCA when the instance was first set up. If a value is not sent, the TPA ID from the user making the request with be used.
    First Available Version: UpdateDependentRequest
  • ZipCode String required
    Zip code associated with the dependent's address.
    First Available Version: UpdateDependentRequest
  • DependentId String conditionally required
    Required if this field is being used as the unique dependent identifier. Either this field or Dependent SSN may be used for this purpose.
    First Available Version: UpdateDependentRequest
  • NewDependentID String
    The new dependent ID.
    First Available Version: UpdateDependentRequest
  • EmployeeSocialSecurityNumber String conditionally required
    Employee’s social security number. Required for versions 2011_10 and on.
    First Available Version: UpdateDependentRequest_2011_10
  • EmployeeId String conditionally required
    Required if this field is being used as the unique employee identifier. Either this field or Employee SSN may be used for this purpose. Required for versions 2011_10 and on.
    First Available Version: UpdateDependentRequest_2011_10
  • EligibilityDate String
    YYYYMMDD. Date upon which the Dependent is eligible to elect benefits.
    First Available Version: UpdateDependentRequest_2008_07
  • TerminationDate String
    YYYYMMDD. Date upon which the dependent’s account is no longer eligible for benefits.  Date must be after dependent Account Effective date.
    First Available Version: UpdateDependentRequest_2008_07
  • DependentPrivacy Boolean
    Use to enable or disable dependent privacy.
    No = False
    Yes = True
    Note1: If this field is included and left blank,
    then it will default to ‘False’
    Note 2: If the dependent privacy option is enabled on the admin > processing > options page in WCA, then a value of ‘True’ will mask provider and merchant information in communications related to the dependent’s transactions.
    If dependent privacy is NOT enabled a the administrator options level and a value of ‘True’ is passed, then the dependent will be flagged for dependent privacy tracking, but provider and merchant information will not be masked in communications.
    First Available Version: UpdateDependentRequest_2017_02

Response Message: Empty Message Example of an UpdateDependent SOAP request message

Example Request Body
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
        <MBISessionHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/">
            <MBISessionID >org3b4454knvat45da0insnt</MBISessionID>
        </MBISessionHeader>
    </soap:Header>
    <soap:Body>
        <UpdateDependent xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Request/2004/06/">
            <Address1>123 South St</Address1>
            <Address2>apt 2</Address2>
            <BirthDate>1965-01-01</BirthDate>
            <City>Worcester</City>
            <CurrentDependentSocialSecurityNumber>222222222</CurrentDependentSocialSecurityNumber>
            <DependentStatus xmlns="http://www.medibank.com/MBIWebServices/Enums/">Active</DependentStatus>
            <EmployerId>EASE10</EmployerId>
            <FirstName>Bill</FirstName>
            <FullTimeStudent>true</FullTimeStudent>
            <Gender xmlns="http://www.medibank.com/MBIWebServices/Enums/">Male</Gender>
            <LastName>Smith</LastName>
            <MiddleInitial />
            <NamePrefix>Mr.</NamePrefix>
            <Phone>555 555-5555</Phone>
            <Relationship xmlns="http://www.medibank.com/MBIWebServices/Enums/">Child</Relationship>
            <ShippingCountry />
            <State>MA</State>
            <TpaId>T00209</TpaId>
            <ZipCode>12345</ZipCode>
        </updateDependentRequest>
    </UpdateDependent>
</soap:Body>
</soap:Envelope>

Example of a UpdateDependent SOAP response message

Example Response Body
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
        <MBIMessageIdHeader xmlns="http://www.medibank.com/MBIWebServices/SoapHeader/" />
    </soap:Header>
    <soap:Body>
        <UpdateDependentResponse xmlns="http://www.medibank.com/MBIWebServices/Employee/Messages/Dependent/Response/2004/06/">
            <UpdateDependentResult />
        </UpdateDependentResponse>
    </soap:Body>
</soap:Envelope>

Example Client Code

The following is an example of the client code (using a .NET proxy class to connect with the service) used when calling the UpdateDependent method.

C#
try
{
    // Create the session SOAP header in order to pass the Service
    // the client’s current session id.
    mbiSessionHeader = new DependentServiceNameSpace.MBISessionHeader();
    // Create proxy object for the Dependent service
    proxy = new DependentServiceNameSpace.DependentService();
    // Create request message for method call (input parameters)
    request = new DependentServiceNameSpace.UpdateDependentRequest();
    // Set the input parameters
    request.Address1 = _address1.Text;
    request.Address2 = _address2.Text;
    if(_birthDate.Text.Length > 0)
    {
        request.BirthDate = Convert.ToDateTime(_birthDate.Text);
    }
    request.City = _city.Text;
    request.Country = _country.Text;
    request.CurrentDependentSocialSecurityNumber = _currentDepSSN.Text;
    request.NewDependentSocialSecurityNumber = _newDepSSN.Text;
    request.DependentStatus = (DependentServiceNameSpace.CardholderStatus)
    _depStatus.SelectedItem;
    request.EmployerId = _emprId.Text;
    request.FirstName = _firstName.Text;
    request.FullTimeStudent = (bool)_fulltimeStudent.SelectedItem;
    request.Gender = (DependentServiceNameSpace.Gender)_gender.SelectedItem;
    request.LastName = _lastName.Text;
    request.MiddleInitial = _middleInitial.Text;
    request.NamePrefix = _namePrefix.Text;
    request.Phone = _phone.Text;   request.Relationship = (DependentServiceNameSpace.EmployeeRelation)
    _relationship.SelectedItem;
    request.ShippingAddress1 = _shippingAddress1.Text;
    request.ShippingAddress2 = _shippingAddress2.Text;
    request.ShippingCity = _shippingCity.Text;
    request.ShippingCountry = _shippingCountry.Text;
    request.ShippingState = _shippingState.Text;
    request.ShippingZipCode = _shippingZipCode.Text;
    request.State = _state.Text;  request.TpaId = _tpaId.Text;
    request.ZipCode = _zipCode.Text;
    // session ID returned from login method
    mbiSessionHeader.MBISessionID = _sessionId.Text;
    proxy.MBISessionHeaderValue = mbiSessionHeader;
    // Call the method
    response = proxy.UpdateDependent(request);
    MessageBox.Show("Finished.");
}
catch(SoapException se)
{
    // perform needed operations
}
catch(Exception ex)
{
    // perform needed operations
}

AI Assistant Preview

Generating response...