diff --git a/SOAP-WSC/ECS/NotifyETicketsSynced.xml b/SOAP-WSC/ECS/NotifyETicketsSynced.xml new file mode 100644 index 0000000..4d84355 --- /dev/null +++ b/SOAP-WSC/ECS/NotifyETicketsSynced.xml @@ -0,0 +1,68 @@ + + + +POST /ecs/services/ECommerceSOAP HTTP/1.1 +Host: ecs.shop.wii.com +User-Agent: RVL ECSHOP 4.8.0 Jul 27 2012 16:52:03 +Connection: Keep-Alive +Accept: application/xml +Accept-Charset: UTF-8 +Content-type: text/xml; charset=utf-8 +SOAPAction: urn:ecs.wsapi.broadon.com/NotifyETicketsSynced +Content-Length: 1089 + + + + + + 2.0 + ECSHOP-$DeviceId-$MessageId + $DeviceId + $DeviceToken + $AccountId + $Region + $Country + $Language + $SerialNo + 0 + $ExtTicketTime + $SyncTime + + + + + + +HTTP/1.1 200 OK +Date: Sat, 14 Jul 2018 12:23:12 GMT +Server: Apache/2.2.19 +Keep-Alive: timeout=15, max=300 +Connection: Keep-Alive +Transfer-Encoding: chunked +Content-Type: text/xml;charset=utf-8 + +23d + + + + + 2.0 + $DeviceId + ECSHOP-$DeviceId-$MessageId + $TimeStamp + 0 + false + + + +0 \ No newline at end of file diff --git a/SOAP-WSC/ECS/checkDeviceStatus.xml b/SOAP-WSC/ECS/checkDeviceStatus.xml new file mode 100644 index 0000000..9078f92 --- /dev/null +++ b/SOAP-WSC/ECS/checkDeviceStatus.xml @@ -0,0 +1,44 @@ + + + + + 2.0 + ECSHOP-$DeviceId-$MessageId + $DeviceId + $DeviceToken + $AccountId + $Region + $Country + $Language + $SerialNo + + + + + + + + + 2.0 + $DeviceId + ECSHOP-$DeviceId-$MessageId + $TimeStamp + 0 + false + + $Amount + POINTS + + 0 + $ExtTicketTime + $SyncTime + + + +0 \ No newline at end of file diff --git a/SOAP-WSC/ECS/listETickets.xml b/SOAP-WSC/ECS/listETickets.xml new file mode 100644 index 0000000..d3f051c --- /dev/null +++ b/SOAP-WSC/ECS/listETickets.xml @@ -0,0 +1,97 @@ + + + +POST /ecs/services/ECommerceSOAP HTTP/1.1 +Host: ecs.shop.wii.com +User-Agent: RVL ECSHOP 4.8.0 Jul 27 2012 16:52:03 +Connection: Keep-Alive +Accept: application/xml +Accept-Charset: UTF-8 +Content-type: text/xml; charset=utf-8 +SOAPAction: urn:ecs.wsapi.broadon.com/ListETickets +Content-Length: 922 + + + + + + 2.0 + ECSHOP-$DeviceId-$MessageId + $DeviceId + $DeviceToken + $AccountId + $Region + $Country + $Language + $SerialNo + + + + + +HTTP/1.1 200 OK +Date: Sun, 08 Jul 2018 12:04:22 GMT +Server: Apache/2.2.19 +Keep-Alive: timeout=15, max=300 +Connection: Keep-Alive +Transfer-Encoding: chunked +Content-Type: text/xml;charset=utf-8 + +a37 + + + + + 2.0 + $DeviceId + ECSHOP-$DeviceId-$MessageId + $TimeStamp + 0 + false + + + $TicketId + $TitleId + 0 + 0 + 0 + 0 + + + $TicketId + $TitleId + 0 + 0 + 0 + 0 + + + $TicketId + $TitleId + 0 + 0 + 0 + 0 + + 0 + 0 + $SyncTime + + + +0 \ No newline at end of file diff --git a/SOAP-WSC/ECS/purchaseTitle.xml b/SOAP-WSC/ECS/purchaseTitle.xml new file mode 100644 index 0000000..19010f2 --- /dev/null +++ b/SOAP-WSC/ECS/purchaseTitle.xml @@ -0,0 +1,97 @@ + + + +POST /ecs/services/ECommerceSOAP HTTP/1.1 +Host: ecs.shop.wii.com +User-Agent: RVL ECSHOP 4.8.0 Jul 27 2012 16:52:03 +Connection: Keep-Alive +Accept: application/xml +Accept-Charset: UTF-8 +Content-type: text/xml; charset=utf-8 +SOAPAction: urn:ecs.wsapi.broadon.com/PurchaseTitle +Content-Length: 2030 + + + + + + 2.0 + ECSHOP-$DeviceId-$MessageId + $DeviceId + $DeviceToken + $AccountId + $Region + $Country + $Language + $SerialNo + $ItemId + + $Amount + POINTS + + 0 + + ACCOUNT + + $AccountNumber + $DeviceToken + + + $DeviceCert + $TitleId + + 0 + $LimitKind + + + + + + +HTTP/1.1 200 OK +Date: Mon, 09 Jul 2018 07:43:59 GMT +Server: Apache/2.2.19 +Keep-Alive: timeout=15, max=300 +Connection: Keep-Alive +Transfer-Encoding: chunked +Content-Type: text/xml;charset=utf-8 + +1040 + + + + + 2.0 + $DeviceId + ECSHOP-$DeviceId-$MessageId + $TimeStamp + 0 + false + + $Amount + POINTS + + + $TransactionId + $Date + PURCHGAME + + $Date + $ETickets + $Certs + $Certs + $TitleId + + + +0 diff --git a/SOAP-WSC/IAS/checkRegistration.xml b/SOAP-WSC/IAS/checkRegistration.xml new file mode 100644 index 0000000..eaa7da5 --- /dev/null +++ b/SOAP-WSC/IAS/checkRegistration.xml @@ -0,0 +1,66 @@ + + + + +POST /ias/services/IdentityAuthenticationSOAP HTTP/1.1 +Host: ias.shop.wii.com +User-Agent: RVL ECSHOP 4.8.0 Jul 27 2012 16:52:03 +Connection: Keep-Alive +Accept: application/xml +Accept-Charset: UTF-8 +Content-type: text/xml; charset=utf-8 +SOAPAction: urn:ias.wsapi.broadon.com/CheckRegistration +Content-Length: 829 + + + + + + 2.0 + ECSHOP-$DeviceId-$MessageId + $DeviceId + $Region + $Country + $Language + $SerialNumber + + + + + + +HTTP/1.1 200 OK +Date: Sun, 08 Jul 2018 12:57:25 GMT +Server: Apache/2.2.19 +Keep-Alive: timeout=15, max=300 +Connection: Keep-Alive +Transfer-Encoding: chunked +Content-Type: text/xml;charset=utf-8 + +282 + + + + + 2.0 + $DeviceId + ECSHOP-$DeviceId-$MessageId + $TimeStamp + 0 + false + + $DeviceStatus + + + +0 \ No newline at end of file diff --git a/SOAP-WSC/IAS/getRegistrationInfo.xml b/SOAP-WSC/IAS/getRegistrationInfo.xml new file mode 100644 index 0000000..ba20c42 --- /dev/null +++ b/SOAP-WSC/IAS/getRegistrationInfo.xml @@ -0,0 +1,75 @@ + + + +POST /ias/services/IdentityAuthenticationSOAP HTTP/1.1 +Host: ias.shop.wii.com +User-Agent: RVL ECSHOP 4.8.0 Jul 27 2012 16:52:03 +Connection: Keep-Alive +Accept: application/xml +Accept-Charset: UTF-8 +Content-type: text/xml; charset=utf-8 +SOAPAction: urn:ias.wsapi.broadon.com/GetRegistrationInfo +Content-Length: 2140 + + + + + + 2.0 + ECSHOP-$DeviceId-$MessageId + $DeviceId + $DeviceToken + $AccountId + $Region + $Country + $Language + $DeviceCert + $Signature + $CertChain + $Challenge + + + + + +HTTP/1.1 200 OK +Date: Sat, 14 Jul 2018 12:23:01 GMT +Server: Apache/2.2.19 +Keep-Alive: timeout=15, max=300 +Connection: Keep-Alive +Transfer-Encoding: chunked +Content-Type: text/xml;charset=utf-8 + +34d + + + + + 2.0 + $DeviceId + ECSHOP-$DeviceId-$MessageId + $TimeStamp + 0 + false + $AccountId + $DeviceToken + false + AU + + 0000000000000000 + R + POINTS + + + +0 \ No newline at end of file diff --git a/SOAP-WSC/IAS/registerAccount.xml b/SOAP-WSC/IAS/registerAccount.xml new file mode 100644 index 0000000..b1eba7f --- /dev/null +++ b/SOAP-WSC/IAS/registerAccount.xml @@ -0,0 +1,49 @@ + + + +POST /ias/services/IdentityAuthenticationSOAP HTTP/1.1 +Host: ias.shop.wii.com +User-Agent: RVL ECSHOP 4.8.0 Jul 27 2012 16:52:03 +Connection: Keep-Alive +Accept: application/xml +Accept-Charset: UTF-8 +Content-type: text/xml; charset=utf-8 +SOAPAction: urn:ias.wsapi.broadon.com/Register +Content-Length: 2360 + + + + + + 2.0 + $MsgId + $DevId + $DevToken + $AccId + $Reg + $Country + $Language + $DevCert + $SerNo + $RegisReg + $Sign + $CertChain + $Challenge + $WifiMac + $BTMac + $DevCode + + + + + + + diff --git a/SOAP-WSC/IAS/removeAccount.xml b/SOAP-WSC/IAS/removeAccount.xml new file mode 100644 index 0000000..daeb155 --- /dev/null +++ b/SOAP-WSC/IAS/removeAccount.xml @@ -0,0 +1,69 @@ + + + + +POST /ias/services/IdentityAuthenticationSOAP HTTP/1.1 +Host: ias.shop.wii.com +User-Agent: RVL ECSHOP 4.8.0 Jul 27 2012 16:52:03 +Connection: Keep-Alive +Accept: application/xml +Accept-Charset: UTF-8 +Content-type: text/xml; charset=utf-8 +SOAPAction: urn:ias.wsapi.broadon.com/Unregister +Content-Length: 2165 + + + + + + 2.0 + $MsgId + $DevId + $DevToken + $AccId + $Reg + $Country + $Language + $DevCert + $SerNo + $Sign + $CertChain + $Challenge + + + + + + + +HTTP/1.1 200 OK +Date: Sun, 08 Jul 2018 12:56:35 GMT +Server: Apache/2.2.19 +Keep-Alive: timeout=15, max=300 +Connection: Keep-Alive +Transfer-Encoding: chunked +Content-Type: text/xml;charset=utf-8 + +229 + + + + + 2.0 + $DevId + $MsgId + $TimeStamp + $ErrCode + false + + + +0 diff --git a/main.go b/main.go new file mode 100644 index 0000000..1848a45 --- /dev/null +++ b/main.go @@ -0,0 +1,32 @@ +package main + +import ( + "net/http" + "encoding/xml" +) + +const ( + // Header is a generic XML header suitable for use with the output of Marshal. + // This is not automatically added to any output of this package, + // it is provided as a convenience. + Header = `` + "\n" +) + +// The Check struct(ure) will attempt to retrieve all the namespace data. +// Assuming that namespaces that don't exist are given a "nil", the first result that +// isn't a "nil" will be used as the template response. + +type Check struct { + // ECommerce Namespaces + CDS xml.Name `ecs:"CheckDeviceStatus"` + LET xml.Name `ecs:"ListETickets"` + NETS xml.Name `ecs:"NotifyETicketsSynced"` + PT xml.Name `ecs:"PurchaseTitle"` + + // Identity Authentication Namespaces +} +func main() { + + + http.ListenAndServe(":80", nil) +} \ No newline at end of file