{"id":20065617,"url":"https://github.com/binatify/wsclient","last_synced_at":"2026-05-12T10:33:09.656Z","repository":{"id":125435917,"uuid":"113586969","full_name":"binatify/wsclient","owner":"binatify","description":"农村电子商务平台数据提交客户端","archived":false,"fork":false,"pushed_at":"2017-12-13T01:48:18.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T10:43:45.100Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binatify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-08T15:13:10.000Z","updated_at":"2017-12-09T15:59:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"a97ed597-428e-4b83-939c-122526b996aa","html_url":"https://github.com/binatify/wsclient","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/binatify/wsclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binatify%2Fwsclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binatify%2Fwsclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binatify%2Fwsclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binatify%2Fwsclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binatify","download_url":"https://codeload.github.com/binatify/wsclient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binatify%2Fwsclient/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32934529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T13:51:28.012Z","updated_at":"2026-05-12T10:33:09.640Z","avatar_url":"https://github.com/binatify.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wsclient\n\n[农村电子商务平台](http://sqsyscjss.mofcom.gov.cn/login.jhtml) 日报，月报，年报数据提交客户端（Golang 版本）。\n\n## Usage\n\nUse `go get github.com/binatify/wsclient`\n\n```golang\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/binatify/wsclient\"\n)\n\ntype serviceStation struct{}\n\nfunc main() {\n    client := wsclient.NewClient(nil)\n\n    var in serviceStation\n\n    body, err := client.Do(in)\n\n    fmt.Println(in)\n    fmt.Println(string(body))\n}\n```\n\n## WSAL SOAP协议声明\n\n通过[链接](http://211.88.20.132:8040/services/syncServiceStation?wsdl)可以访问 syncServiceStation 服务的声明。\n\n以 Restful 方式提交数据:\n\n- `POST` 请求\n- 设置对应的 Header 信息：\n  ```golang\n  req.Header.Set(\"Content-Type\", \"text/xml;charset=UTF-8\")\n  req.Header.Set(\"Accept\", \"application/soap+xml, application/dime, multipart/related, text/*\")\n  req.Header.Set(\"User-Agent\", \"Axis/1.4\")\n  req.Header.Set(\"Host\", \"211.88.20.132:8040\")\n  req.Header.Set(\"SOAPAction\", \"http://www.cvicse.com/service/syncServiceStationOperation\")\n  ```\n- Body 格式：\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003csoapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\u003e\n  \u003csoapenv:Body\u003e\n    \u003csyncServiceStationOperationRequest xmlns=\"http://www.cvicse.com/service/\"\u003e\n      \u003cin xmlns=\"\"\u003e\n        \u003cserviceStation\u003e\n          \u003cuserId\u003exxx\u003c/userId\u003e\n          \u003crptDate\u003e2017-12-08\u003c/rptDate\u003e\n          \u003cserviceStationReport\u003e\n            \u003ccode\u003exx\u003c/code\u003e\n            \u003cname\u003exx\u003c/name\u003e\n            \u003ccountyType\u003e1\u003c/countyType\u003e\n            \u003cbuyOrder\u003e5\u003c/buyOrder\u003e\n            \u003csaleOrder\u003e28\u003c/saleOrder\u003e\n            \u003cserviceStationCommodity\u003e\n              \u003ccommId\u003e5\u003c/commId\u003e\n              \u003cmoney\u003e123\u003c/money\u003e\n            \u003c/serviceStationCommodity\u003e\n            \u003cserviceStationCommodity\u003e\n              \u003ccommId\u003e28\u003c/commId\u003e\n              \u003cmoney\u003e123\u003c/money\u003e\n            \u003c/serviceStationCommodity\u003e\n          \u003c/serviceStationReport\u003e\n        \u003c/serviceStation\u003e\n      \u003c/in\u003e\n    \u003c/syncServiceStationOperationRequest\u003e\n  \u003c/soapenv:Body\u003e\n\u003c/soapenv:Envelope\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinatify%2Fwsclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinatify%2Fwsclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinatify%2Fwsclient/lists"}