All pastes #767208 Raw Edit

haptiK

public text v1 · immutable
·published 2007-11-09 15:46 UTC
rendered paste body
function getCoords()
{
	if(!$this->error)
	{
		$this->logger->log('Serializing XML Request...', PEAR_LOG_DEBUG);
		$this->package = $this->client->serializeEnvelope(
		'
			<tns:findAddress	xmlns:s0="http://xlocate.xserver.ptvag.com"
						xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
						xmlns:s1="http://baseservices.service.jabba.ptvag.com"
						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
						xmlns:tns="http://types.xlocate.xserver.ptvag.com"
						xmlns:xsd="http://www.w3.org/2001/XMLSchema">
				<tns:Address_1	city="'.$this->city.'"
						city2="'.$this->city2.'"
						country="'.$this->country.'"
						houseNumber="'.$this->houseNumber.'"
						postCode="'.$this->postCode.'"
						state="'.$this->state.'"
						street="'.$this->street.'"/>
				<tns:ArrayOfSearchOptionBase_2/>
				<tns:ArrayOfSortOption_3/>
				<tns:ArrayOfResultField_4/>
				<tns:CallerContext_5	log1=""
							log2=""
							log3="">
					<s1:wrappedProperties/>
				</tns:CallerContext_5>
			</tns:findAddress>', '', Array(), 'document', 'literal');

		$this->logger->log('Sending package...', PEAR_LOG_DEBUG);

		$response = $this->client->send($this->package);

		$this->log_response = $response;

	function contiues ....