/home/mjc1/public_html/emillennium/nusoap/samples/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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
    $xml_cont 
'<?xml version="1.0" encoding="utf-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:kec="http://www.kec.or.kr/standard/Tax/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header><wsa:MessageID>20160727171205000-d60512a264a907ecae38ebe53cd7df1e</wsa:MessageID><wsa:To>http://119.201.210.68:7000/axis2/services/DocumentService</wsa:To><wsa:Action>http://soap.openet.com</wsa:Action><MessageHeader><Version>3.0</Version><From><PartyID>1208646911</PartyID><PartyName>미진소프트</PartyName></From><To><PartyID>1234567890</PartyID><PartyName>TestBed</PartyName></To><ReplyTo>http://220.90.215.20:7000/axis2/services/TaxService</ReplyTo><OperationType>01</OperationType><MessageType>01</MessageType><TimeStamp>2016-07-27T17:12:05.000Z</TimeStamp></MessageHeader></SOAP-ENV:Header><SOAP-ENV:Body><RequestMessage><SubmitID>201607275021894746ff4564b0e934a349c263e7e</SubmitID><TotalCount>1</TotalCount><Document><TaxInvoice>
  <ExchangedDocument>
    <ID>160727171250218947460009</ID>
    <IssueDateTime>20160727171203</IssueDateTime>
    <ReferencedDocument>
      <ID>160704000200F</ID>
    </ReferencedDocument>
    <IssueStatus>S</IssueStatus>
    <SendStatus>I</SendStatus>
    <SendEmail>N</SendEmail>
  </ExchangedDocument>
  <TaxInvoiceDocument>
    <IssueID></IssueID>
    <TypeCode>0101</TypeCode>
    <IssueDateTime>20160727</IssueDateTime>
    <PurposeCode>02</PurposeCode>
  </TaxInvoiceDocument>
  <TaxInvoiceTradeSettlement>
    <InvoicerParty>
      <ID>5021894746</ID>
      <TypeCode></TypeCode>
         <NameText>서울사업장</NameText>
      <ClassificationCode></ClassificationCode>
      <SpecifiedOrganization>
        <TaxRegistrationID></TaxRegistrationID>
      </SpecifiedOrganization>
      <SpecifiedPerson>
        <NameText>나현우</NameText>
      </SpecifiedPerson>
      <DefinedContact>
        <PersonNameText>김준표</PersonNameText>
        <TelephoneCommunication>010-9644-6238</TelephoneCommunication>
        <URICommunication>tkekcom@naver.com</URICommunication>
      </DefinedContact>
      <SpecifiedAddress>
        <LineOneText>서울 송파구 오금동 46-9</LineOneText>
      </SpecifiedAddress>
    </InvoicerParty>
    <InvoiceeParty>
      <ID>5021894746</ID>
      <TypeCode>도소매</TypeCode>
      <NameText>미진유통</NameText>
      <ClassificationCode>일반의약품</ClassificationCode>
      <SpecifiedOrganization>
        <TaxRegistrationID></TaxRegistrationID>
        <BusinessTypeCode>01</BusinessTypeCode>
      </SpecifiedOrganization>
      <SpecifiedPerson>
        <NameText>이미진</NameText>
      </SpecifiedPerson>
      <PrimaryDefinedContact>
        <PersonNameText></PersonNameText>
        <TelephoneCommunication>010-9644-6238</TelephoneCommunication>
        <URICommunication>tkekcom@naver.com</URICommunication>
      </PrimaryDefinedContact>
      <SpecifiedAddress>
        <LineOneText>서울 강동구 천호3동 223-3334445</LineOneText>
      </SpecifiedAddress>
    </InvoiceeParty>
    <SpecifiedMonetarySummation>
      <ChargeTotalAmount>68782</ChargeTotalAmount>
      <TaxTotalAmount>6878</TaxTotalAmount>
      <GrandTotalAmount>75660</GrandTotalAmount>
    </SpecifiedMonetarySummation>
  </TaxInvoiceTradeSettlement>
  <TaxInvoiceTradeLineItem>
    <SequenceNumeric>1</SequenceNumeric>
    <InvoiceAmount>68782</InvoiceAmount>
    <ChargeableUnitQuantity>1</ChargeableUnitQuantity>
    <NameText>라이닝(에쿠스350)</NameText>
    <InformationText></InformationText>
    <PurchaseExpiryDateTime>20160704</PurchaseExpiryDateTime>
    <TotalTax>
      <CalculatedAmount>6878</CalculatedAmount>
    </TotalTax>
    <UnitPrice>
      <UnitAmount>78000</UnitAmount>
    </UnitPrice>
  </TaxInvoiceTradeLineItem>
</TaxInvoice>
</Document></RequestMessage></SOAP-ENV:Body></SOAP-ENV:Envelope>
'
;

/*$ch = curl_init(); 
curl_setopt ($ch, CURLOPT_URL,$url); //접속할 URL 주소  
curl_setopt ($ch, CURLOPT_HEADER, FALSE); 
curl_setopt ($ch, CURLOPT_POST, TRUE); 
curl_setopt ($ch, CURLOPT_POSTFIELDS, $dataXML);  
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);*/


$url "http://119.201.210.68:7000/axis2/services/DocumentService";

$ch curl_init(); 
curl_setopt ($chCURLOPT_URL,$url); //접속할 URL 주소 
curl_setopt ($chCURLOPT_HEADERfalse); 
curl_setopt ($chCURLOPT_POSTtrue); 
curl_setopt($chCURLOPT_POSTFIELDS$xml_cont); 
curl_setopt ($chCURLOPT_TIMEOUT30); 
curl_setopt ($chCURLOPT_RETURNTRANSFER1); 
$result curl_exec ($ch); 

print_r($result);
?>