/home/mjc1/public_html/emillennium/1.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
include("_common.php");
header("Content-type:text/html;charset=utf-8");
Require_once(
'./nusoap/lib/nusoap.php');

$proxyhost = isset($_REQUEST['proxyhost']) ? $_REQUEST['proxyhost'] : '';
$proxyport = isset($_REQUEST['proxyport']) ? $_REQUEST['proxyport'] : '';
$proxyusername = isset($_REQUEST['proxyusername']) ? $_REQUEST['proxyusername'] : '';
$proxypassword = isset($_REQUEST['proxypassword']) ? $_REQUEST['proxypassword'] : '';
$useCURL = isset($_REQUEST['usecurl']) ? $_REQUEST['usecurl'] : '0';
$client = new nusoap_client("http://api.auction.co.kr/APIv1/ShoppingService.asmx");
$err $client->getError();
if (
$err) {
    echo 
'<h2>Constructor error</h2><pre>' $err '</pre>';
    echo 
'<h2>Debug</h2><pre>' htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>';
    exit();
}

//$client->setUseCurl(1);

$params "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">
  <soap:Header>
    <EncryptedTicket xmlns=\"http://www.auction.co.kr/Security\">
      <Value>dzYYIntwnV3MqMsQ9ZTYSBfBnvCmujJtA44gVDQWAaNVL8z4cmCEIdgp2HoCA81N3io1quG5SiFcU+2fLg1AhfaSv1fqWHwR0bpgyIUsxjCHHEnaopdJ8LCk4+WBOATQV+EeliDoSdH9+BeVFMMMDi+OZSoYpy1pO6AgiwyXxFXPsRSA4ilklsaTq0MjOnTjE5+GG6g3sXKAUpkMpWFQEMw=</Value>
    </EncryptedTicket>
  </soap:Header>
  <soap:Body>
    <GetSellingItemList xmlns=\"http://www.auction.co.kr/APIv1/ShoppingService\">
      <req Version=\"1\">
        <SearchCondition SearchType=\"None\" xmlns=\"http://schema.auction.co.kr/Arche.Sell3.Service.xsd\" />
      </req>
    </GetSellingItemList>
  </soap:Body>
</soap:Envelope>"
;

$headers "Content-Type: text/xml; charset=utf-8".chr(10);
$headers .= "Content-Length: ".strlen($params).chr(10);
$headers .= "SOAPAction: \"http://www.auction.co.kr/APIv1/ShoppingService/GetSellingItemList\"";
//$client->setHeaders($headers); 

//$client->soap_defencoding = "utf-8";
$result $client->call(''$params'''');

_pr($result);

if (
$client->fault) {
    echo 
'<h2>Fault (Expect - The request contains an invalid SOAP body)</h2><pre>'print_r($result); echo '</pre>';
} else {
    
$err $client->getError();
    if (
$err) {
        echo 
'<h2>Error</h2><pre>' $err '</pre>';
    } else {
        
    }
}

echo 
"xxxx"

?>