go to post Token Ibragimov · Aug 23, 2018 Forgot to mention that I added ClassMethod %ConvertJSONToObject to %ZEN.Auxiliary.jsonProvider. Is it correct ?the response is empty: resp=""I check the code in cache version2016 . When set property Set httpRequest.SSLCheckServerIdentity=0, the response was successfull :HTTP/1.1 200 OKACCESS-CONTROL-ALLOW-CREDENTIALS: falseACCESS-CONTROL-ALLOW-METHODS: POSTACCESS-CONTROL-ALLOW-ORIGIN: *ACCESS-CONTROL-EXPOSE-HEADERS: CONNECTION: Keep-AliveCONTENT-ENCODING: gzipCONTENT-TYPE: application/jsonDATE: Thu, 23 Aug 2018 03:31:32 GMTTRANSFER-ENCODING: chunkedUSER-AGENT: IBM-APIConnect/5.0X-BACKSIDE-TRANSPORT: OK OKX-GLOBAL-TRANSACTION-ID: 699524573 {"code":0,"message":"OK"}httpResponse="{""code"":0,""message"":""OK""}"
go to post Token Ibragimov · Aug 22, 2018 Hi Eduard!still didn't parse the response. Here is my code, can you help please?Set httpResponse=httpRequest.HttpResponse.DataSet sc = ##class(%ZEN.Auxiliary.jsonProvider).%ConvertJSONToObject(httpResponse,,.Object,1)
go to post Token Ibragimov · Aug 15, 2018 Thanks a lot Eduard!Could you say how to parse JSON response in my case?the response:{ "code": 0, "message": "OK"}
go to post Token Ibragimov · Aug 14, 2018 set sc=##class(Example.TEST).Check(901205300353,"Ivan","Ivanov","Ivanovich","05.12.1990","Z") User-Agent: IBM-APIConnect/5.0Host: 127.0.0.1Accept-Encoding: gzipx-ibm-client-id: testx-ibm-client-secret: testContent-Length: 180Content-Type: application/json; charset=utf-8 { "birthDate":"05.12.1990", "contractType":"Z", "firstName":"Ivan", "iin":901205300353, "lastName":"Ivanov", "middleName":"Ivanovich"}1POST /test/ HTTP/1.1
go to post Token Ibragimov · Aug 14, 2018 remove the line, but still getting error:httpResponse="Corrupt body: json: cannot unmarshal number into Go struct field CheckContractRequest.iin of type string"HTTP/1.1 400 Bad RequestACCESS-CONTROL-ALLOW-CREDENTIALS: falseACCESS-CONTROL-ALLOW-METHODS: POSTACCESS-CONTROL-ALLOW-ORIGIN: *ACCESS-CONTROL-EXPOSE-HEADERS: APIm-Debug-Trans-Id, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Global-Transaction-IDCONNECTION: Keep-AliveCONTENT-ENCODING: gzipCONTENT-TYPE: text/plainDATE: Tue, 14 Aug 2018 13:45:21 GMTTRANSFER-ENCODING: chunkedX-BACKSIDE-TRANSPORT: OK OKX-GLOBAL-TRANSACTION-ID: 647439117
go to post Token Ibragimov · Feb 6, 2017 Hello!I found a bug in the code. Now everything works, thank you.
go to post Token Ibragimov · Jan 27, 2017 Hi Alexander!Please, below wsdl: The version is : Cache for UNIX (Red Hat Enterprise Linux 5 for x86-64) 2010.1.2 (Build 600U) Mon May 10 2010 23:28:54 EDTDid you use SOAP Client Wizard to generate SOAP client classes from WSDL?YesThank you for your response!
go to post Token Ibragimov · Jan 27, 2017 Hi Alexander!I guess namespace should be xmlns="http://testws/"Below code: s ws=##class(Data.SOAP.WSSoap).%New() s xml="<request>" s response = ws.GetContractsExt(xml) s response = ##class(Data.SOAP.PaymentResponseExt).%New()Thank you for your response!