xref: /PHP-8.0/ext/soap/tests/bugs/multiport.phpt (revision f8d79582)
1--TEST--
2Proper binding selection
3--SKIPIF--
4<?php require_once 'skipif.inc'; ?>
5--INI--
6soap.wsdl_cache_enabled=0
7--FILE--
8<?php
9$client = new SoapClient(__DIR__.'/multiport.wsdl',
10    array('trace' => true, 'exceptions' => false));
11$response = $client->GetSessionId(array('userId'=>'user', 'password'=>'password'));
12echo $client->__getLastRequest();
13?>
14--EXPECT--
15<?xml version="1.0" encoding="UTF-8"?>
16<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.reuters.com/"><SOAP-ENV:Body><ns1:GetSessionId><ns1:userId>user</ns1:userId><ns1:password>password</ns1:password></ns1:GetSessionId></SOAP-ENV:Body></SOAP-ENV:Envelope>
17