DefaultEndpoint / Cancel
ASP AutoIt C C (Unicode) C++ C++ (Unicode) C# DataFlex Delphi Foxpro Go Java Node.js Objective-C Perl PHP Extension PowerBuilder Powershell PureBasic Python CkPython Ruby SQL Server Swift TCL VB.NET VB6 VBScript Xojo
#include <C_CkXmlW.h>
#include <C_CkHttpW.h>
#include <C_CkHttpResponseW.h>
void ChilkatSample(void)
{
HCkXmlW xml;
const wchar_t *soapRequestBody;
const wchar_t *endpoint;
const wchar_t *soapAction;
const wchar_t *contentType;
HCkHttpW http;
HCkHttpResponseW resp;
HCkXmlW responseXml;
int statusCode;
const wchar_t *REFERENCEQUALIFIER;
const wchar_t *REFERENCENUMBER;
const wchar_t *IDENTIFIER;
const wchar_t *VERSIONNUMBER;
const wchar_t *RELEASENUMBER;
const wchar_t *CONTROLAGENCY;
const wchar_t *ASSOCCODE;
const wchar_t *ACCESSREF;
int NAME;
int CODELISTAGENCY;
const wchar_t *DOCUMENTNUMBER;
int DOCUMENTFUNC;
const wchar_t *RESPONSETYPE;
int DATUMQUALIFIER;
const wchar_t *DATUM;
int FORMAT;
int i;
int count_i;
const wchar_t *ACTION;
const wchar_t *PARTNER;
const wchar_t *ERROR_ID;
const wchar_t *AGENCY;
const wchar_t *TEXT_SUBJECT_QUALIFIER;
int FREE_TEXT_CODE;
const wchar_t *FREE_TEXT_VALUE_CODE;
const wchar_t *CODE_LIST_ID;
const wchar_t *strCODELISTAGENCY;
const wchar_t *FREE_TEXT_1;
const wchar_t *FREE_TEXT_2;
const wchar_t *FREE_TEXT_3;
const wchar_t *FREE_TEXT_4;
const wchar_t *FREE_TEXT_5;
int NUMSEG;
const wchar_t *REFNUM;
xml = CkXmlW_Create();
CkXmlW_putTag(xml,L"soap:Envelope");
CkXmlW_AddAttribute(xml,L"xmlns:soap",L"http://www.w3.org/2003/05/soap-envelope");
CkXmlW_AddAttribute(xml,L"xmlns:a031",L"http://sfera.sk/xmtrade/isom/types/2013/03");
CkXmlW_AddAttribute(xml,L"xmlns:a03",L"http://sfera.sk/xmtrade/isom/services/MeasuredValuesOfSupplyAndDeliveryPoints/2013/03");
CkXmlW_UpdateChildContent(xml,L"soap:Header",L"");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:UNH|a031:REFERENCENUMBER",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:UNH|a031:IDENTIFIER",L"UTILMD");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:UNH|a031:VERSIONNUMBER",L"D");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:UNH|a031:RELEASENUMBER",L"01C");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:UNH|a031:CONTROLAGENCY",L"UN");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:UNH|a031:ASSOCCODE",L"E4SK40");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:UNH|a031:ACCESSREF",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:BGM|a031:NAME",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:BGM|a031:CODELISTAGENCY",260);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:BGM|a031:DOCUMENTNUMBER",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:BGM|a031:DOCUMENTFUNC",9);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:BGM|a031:RESPONSETYPE",L"AB");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:DTM|a031:DATUMQUALIFIER",92);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:DTM|a031:DATUM",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:DTM|a031:FORMAT",203);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:RFF|a031:REFERENCEQUALIFIER",L"ACW");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:RFF|a031:REFERENCENUMBER",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:ACTION",L"MR");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:PARTNER",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:CODELISTAGENCY",305);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:PARTNERNAME1",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:PARTNERNAME2",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:STREET1",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:STREET2",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:STREET3",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:STREET4",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:CITY",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:COUNTRY",L"SK");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:PLACE_QUALIFIER",172);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:PLACE_ID",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:CODE_LIST_RESPONSIBLE_AGENCY",305);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:LINE_ITEM_NUMBER",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:ITEM_NUMBER",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:CODE_LIST_RESPONSIBLE_AGENCY",L"SKE");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:MEA|a031:MEASURMENT_APPLICATION",L"AAZ");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:MEA|a031:MEASURMENT_UNIT_QUALIFIER",L"KWH");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:MEA|a031:MEASURMENT_VALUE",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:QTY|a031:QUANTITY_QUALIFIER",47);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:QTY|a031:QUANTITY",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:QTY|a031:DTM|a031:DATUMQUALIFIER",92);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:QTY|a031:DTM|a031:DATUM",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:QTY|a031:DTM|a031:FORMAT",203);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:CHARACTERISTIC_ID",L"Z03");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:CODE_LIST_RESPONSIBLE_AGENCY",260);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:CAV|a031:CHARACTERISTIC_VALUE_CODED",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:CAV|a031:AGENCY",L"SKE");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:CAV|a031:CHARACTERISTIC_VALUE",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:MEA|a031:MEASURMENT_APPLICATION",L"AAZ");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:MEA|a031:MEASURMENT_UNIT_QUALIFIER",L"KWH");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:MEA|a031:MEASURMENT_VALUE",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:RFF|a031:REFERENCEQUALIFIER",L"ACW");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:RFF|a031:REFERENCENUMBER",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:NAD|a031:ZIPCODE",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:OBJECT_TYPE",24);
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:PLACE_QUALIFIER",172);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:PLACE_ID",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:CODE_LIST_RESPONSIBLE_AGENCY",305);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:LINE_ITEM_NUMBER",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:ITEM_NUMBER",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:CODE_LIST_RESPONSIBLE_AGENCY",L"SKE");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:MEA|a031:MEASURMENT_APPLICATION",L"AAZ");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:MEA|a031:MEASURMENT_UNIT_QUALIFIER",L"KWH");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:MEA|a031:MEASURMENT_VALUE",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:QTY|a031:QUANTITY_QUALIFIER",47);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:QTY|a031:QUANTITY",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:QTY|a031:DTM|a031:DATUMQUALIFIER",92);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:QTY|a031:DTM|a031:DATUM",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:QTY|a031:DTM|a031:FORMAT",203);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:CCI|a031:CHARACTERISTIC_ID",L"Z03");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:CCI|a031:CODE_LIST_RESPONSIBLE_AGENCY",260);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:CCI|a031:CAV|a031:CHARACTERISTIC_VALUE_CODED",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:CCI|a031:CAV|a031:AGENCY",L"SKE");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:CCI|a031:CAV|a031:CHARACTERISTIC_VALUE",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:CCI|a031:MEA|a031:MEASURMENT_APPLICATION",L"AAZ");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:CCI|a031:MEA|a031:MEASURMENT_UNIT_QUALIFIER",L"KWH");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:LOC|a031:LIN|a031:CCI|a031:MEA|a031:MEASURMENT_VALUE",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:DTM|a031:DATUMQUALIFIER",92);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:DTM|a031:DATUM",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:DTM|a031:FORMAT",203);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:PRC|a031:PROCESS_TYPE",L"MSG_DETAIL");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:PRC|a031:CODELISTAGENCY",L"SKE");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:FTX|a031:TEXT_SUBJECT_QUALIFIER",L"AAI");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:FTX|a031:FREE_TEXT_CODE",3);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:FTX|a031:CODELISTAGENCY",L"SKE");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:FTX|a031:FREE_TEXT_1",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:FTX|a031:FREE_TEXT_2",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:FTX|a031:FREE_TEXT_3",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:FTX|a031:FREE_TEXT_4",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:FTX|a031:FREE_TEXT_5",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:AGR|a031:AGREE_TYPE_ID",11);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:AGR|a031:AGREE_TYPE_DESCRIPTION",L"E01");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:AGR|a031:AGREE_TYPE_CODE_LIST",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:AGR|a031:AGREE_TYPE_AGENCY",260);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:AGR|a031:AGREE_TYPE",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:CCI|a031:CHARACTERISTIC_ID",L"Z03");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:CCI|a031:CODE_LIST_RESPONSIBLE_AGENCY",260);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:CCI|a031:CAV|a031:CHARACTERISTIC_VALUE_CODED",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:CCI|a031:CAV|a031:AGENCY",L"SKE");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:CCI|a031:CAV|a031:CHARACTERISTIC_VALUE",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:CCI|a031:MEA|a031:MEASURMENT_APPLICATION",L"AAZ");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:CCI|a031:MEA|a031:MEASURMENT_UNIT_QUALIFIER",L"KWH");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:CCI|a031:MEA|a031:MEASURMENT_VALUE",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:ACTION",L"MR");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:PARTNER",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:CODELISTAGENCY",305);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:PARTNERNAME1",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:PARTNERNAME2",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:STREET1",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:STREET2",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:STREET3",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:STREET4",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:CITY",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:COUNTRY",L"SK");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:PLACE_QUALIFIER",172);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:PLACE_ID",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:CODE_LIST_RESPONSIBLE_AGENCY",305);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:LINE_ITEM_NUMBER",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:ITEM_NUMBER",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:CODE_LIST_RESPONSIBLE_AGENCY",L"SKE");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:MEA|a031:MEASURMENT_APPLICATION",L"AAZ");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:MEA|a031:MEASURMENT_UNIT_QUALIFIER",L"KWH");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:MEA|a031:MEASURMENT_VALUE",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:QTY|a031:QUANTITY_QUALIFIER",47);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:QTY|a031:QUANTITY",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:QTY|a031:DTM|a031:DATUMQUALIFIER",92);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:QTY|a031:DTM|a031:DATUM",L"string");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:QTY|a031:DTM|a031:FORMAT",203);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:CHARACTERISTIC_ID",L"Z03");
CkXmlW_UpdateChildContentInt(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:CODE_LIST_RESPONSIBLE_AGENCY",260);
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:CAV|a031:CHARACTERISTIC_VALUE_CODED",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:CAV|a031:AGENCY",L"SKE");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:CAV|a031:CHARACTERISTIC_VALUE",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:MEA|a031:MEASURMENT_APPLICATION",L"AAZ");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:MEA|a031:MEASURMENT_UNIT_QUALIFIER",L"KWH");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:LOC|a031:LIN|a031:CCI|a031:MEA|a031:MEASURMENT_VALUE",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:RFF|a031:REFERENCEQUALIFIER",L"ACW");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:RFF|a031:REFERENCENUMBER",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:IDE|a031:NAD|a031:ZIPCODE",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:UNT|a031:NUMSEG",L"string");
CkXmlW_UpdateChildContent(xml,L"soap:Body|a03:CancelRequest|a03:UTILMD|a031:UNT|a031:REFNUM",L"string");
// In a SOAP HTTP request, including the XML declaration (<?xml version="1.0" encoding="UTF-8"?>) in the XML body is generally not required.
CkXmlW_putEmitXmlDecl(xml,FALSE);
soapRequestBody = CkXmlW_getXml(xml);
endpoint = L"http://isom.okte.sk/interfaces/MeasuredValuesOfSupplyAndDeliveryPoints/Service.svc";
soapAction = L"http://sfera.sk/xmtrade/isom/services/MeasuredValuesOfSupplyAndDeliveryPoints/2013/03/MeasuredValuesOfSupplyAndDeliveryPointsContract/Cancel";
// For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
contentType = L"text/xml";
http = CkHttpW_Create();
CkHttpW_ClearHeaders(http);
CkHttpW_SetRequestHeader(http,L"Content-Type",contentType);
CkHttpW_SetRequestHeader(http,L"SOAPAction",soapAction);
resp = CkHttpW_PostXml(http,endpoint,soapRequestBody,L"utf-8");
if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
wprintf(L"%s\n",CkHttpW_lastErrorText(http));
wprintf(L"Failed to send SOAP request.\n");
CkXmlW_Dispose(xml);
CkHttpW_Dispose(http);
return;
}
// Get the XML response body.
responseXml = CkXmlW_Create();
CkHttpResponseW_GetBodyXml(resp,responseXml);
statusCode = CkHttpResponseW_getStatusCode(resp);
wprintf(L"response status code: %d\n",statusCode);
CkHttpResponseW_Dispose(resp);
// If the status code does not indicate succcess, then show the response XML,
// which probably contains error information.
if (statusCode != 200) {
wprintf(L"%s\n",CkXmlW_getXml(responseXml));
CkXmlW_Dispose(xml);
CkHttpW_Dispose(http);
CkXmlW_Dispose(responseXml);
return;
}
wprintf(L"%s\n",CkXmlW_getXml(responseXml));
// Parse the successful SOAP response XML.
// This is a sample of the response XML, but the namespace prefixes will be different.
// We can parse the result using "*" for the namespace prefixes (see below).
REFERENCENUMBER = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:UNH|*:REFERENCENUMBER");
IDENTIFIER = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:UNH|*:IDENTIFIER");
VERSIONNUMBER = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:UNH|*:VERSIONNUMBER");
RELEASENUMBER = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:UNH|*:RELEASENUMBER");
CONTROLAGENCY = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:UNH|*:CONTROLAGENCY");
ASSOCCODE = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:UNH|*:ASSOCCODE");
ACCESSREF = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:UNH|*:ACCESSREF");
NAME = CkXmlW_GetChildIntValue(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:BGM|*:NAME");
CODELISTAGENCY = CkXmlW_GetChildIntValue(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:BGM|*:CODELISTAGENCY");
DOCUMENTNUMBER = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:BGM|*:DOCUMENTNUMBER");
DOCUMENTFUNC = CkXmlW_GetChildIntValue(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:BGM|*:DOCUMENTFUNC");
RESPONSETYPE = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:BGM|*:RESPONSETYPE");
DATUMQUALIFIER = CkXmlW_GetChildIntValue(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:DTM|*:DATUMQUALIFIER");
DATUM = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:DTM|*:DATUM");
FORMAT = CkXmlW_GetChildIntValue(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:DTM|*:FORMAT");
i = 0;
count_i = CkXmlW_NumChildrenHavingTag(responseXml,L"*:Body|*:CancelResponse|*:APERAK|a031:RFF");
while (i < count_i) {
CkXmlW_putI(responseXml,i);
REFERENCEQUALIFIER = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:RFF[i]|*:REFERENCEQUALIFIER");
REFERENCENUMBER = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:RFF[i]|*:REFERENCENUMBER");
i = i + 1;
}
ACTION = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:NAD|*:ACTION");
PARTNER = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:NAD|*:PARTNER");
CODELISTAGENCY = CkXmlW_GetChildIntValue(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:NAD|*:CODELISTAGENCY");
ERROR_ID = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:ERROR_ID");
AGENCY = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:AGENCY");
TEXT_SUBJECT_QUALIFIER = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:FTX|*:TEXT_SUBJECT_QUALIFIER");
FREE_TEXT_CODE = CkXmlW_GetChildIntValue(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:FTX|*:FREE_TEXT_CODE");
FREE_TEXT_VALUE_CODE = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:FTX|*:FREE_TEXT_VALUE_CODE");
CODE_LIST_ID = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:FTX|*:CODE_LIST_ID");
strCODELISTAGENCY = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:FTX|*:CODELISTAGENCY");
FREE_TEXT_1 = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:FTX|*:FREE_TEXT_1");
FREE_TEXT_2 = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:FTX|*:FREE_TEXT_2");
FREE_TEXT_3 = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:FTX|*:FREE_TEXT_3");
FREE_TEXT_4 = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:FTX|*:FREE_TEXT_4");
FREE_TEXT_5 = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:FTX|*:FREE_TEXT_5");
REFERENCEQUALIFIER = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:RFF|*:REFERENCEQUALIFIER");
REFERENCENUMBER = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:ERC|*:RFF|*:REFERENCENUMBER");
NUMSEG = CkXmlW_GetChildIntValue(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:UNT|*:NUMSEG");
REFNUM = CkXmlW_getChildContent(responseXml,L"*:Body|*:CancelResponse|*:APERAK|*:UNT|*:REFNUM");
CkXmlW_Dispose(xml);
CkHttpW_Dispose(http);
CkXmlW_Dispose(responseXml);
}