You are here

function WSClientSOAPTestCase::testServiceInvocation in Web service client 7

Tests invoking the geocoder.us service.

File

wsclient_examples/wsclient_examples.test, line 25
Web service client SOAP/REST Tests.

Class

WSClientSOAPTestCase
@file Web service client SOAP/REST Tests.

Code

function testServiceInvocation() {
  $service = wsclient_service_load('geocoder');
  $result = $service
    ->geocode_address('1600 Pennsylvania Av, Washington, DC');
  $this
    ->assertEqual($result[0]->zip, '20502', 'SOAP service invocation was successful.');
}