Revision 21299,
905 bytes
checked in by Seasoft, 13 years ago
(diff) |
#1521 (PEAR::SOAP 配布と異なる部分がある)
- 新しいバージョンの配布ファイルを上書きすることで解決
#1522 (PEAR::SOAP をバージョンアップ)
|
-
Property svn:mime-type set to
text/x-httpd-php; charset=UTF-8
|
Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * @category Web Services |
---|
4 | * @package SOAP |
---|
5 | */ |
---|
6 | |
---|
7 | require_once("SOAP/Client.php"); |
---|
8 | require_once("SOAP/test/test.utility.php"); |
---|
9 | require_once("SOAP/Value.php"); |
---|
10 | |
---|
11 | $filename = 'attachment.php'; |
---|
12 | $v = new SOAP_Attachment('test','text/plain',$filename); |
---|
13 | $methodValue = new SOAP_Value('testattach', 'Struct', array($v)); |
---|
14 | |
---|
15 | $client = new SOAP_Client('mailto:user@domain.com'); |
---|
16 | # calling with mime |
---|
17 | $resp = $client->call('echoMimeAttachment',array($v), |
---|
18 | array('attachments'=>'Mime', |
---|
19 | 'namespace'=>'http://soapinterop.org/', |
---|
20 | 'from'=>'user@domain.com', |
---|
21 | 'host'=>'smtp.domain.com')); |
---|
22 | print $client->wire."\n\n\n"; |
---|
23 | print_r($resp); |
---|
24 | |
---|
25 | # calling with DIME |
---|
26 | $resp = $client->call('echoMimeAttachment',array($v)); |
---|
27 | # DIME has null spaces, change them so we can see the wire |
---|
28 | $wire = str_replace("\0",'*',$client->wire); |
---|
29 | print $wire."\n\n\n"; |
---|
30 | print_r($resp); |
---|
31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.