DataServiceEndpointSoapBinding / getRepairtimeSubnodesTextSearchV4
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_CkXml.h>
#include <C_CkHttp.h>
#include <C_CkHttpResponse.h>
void ChilkatSample(void)
{
HCkXml xml;
const char *soapRequestBody;
const char *endpoint;
const char *soapAction;
const char *contentType;
HCkHttp http;
HCkHttpResponse resp;
HCkXml responseXml;
int statusCode;
const char *awNumber;
const char *description;
const char *id;
const char *mandatory;
const char *hasInfoGroups;
const char *hasSubnodes;
const char *jobType;
const char *oeCode;
const char *order;
const char *confirmationLink;
const char *statusCode;
const char *criteriaId;
const char *criteriaLevel;
const char *value1;
const char *value2;
const char *groupDescription;
const char *groupId;
const char *value;
xml = CkXml_Create();
CkXml_putTag(xml,"soapenv:Envelope");
CkXml_AddAttribute(xml,"xmlns:intf","http://data.webservice.workshop.vivid.nl");
CkXml_AddAttribute(xml,"xmlns:soapenv","http://schemas.xmlsoap.org/soap/envelope/");
CkXml_UpdateChildContent(xml,"soapenv:Header","");
CkXml_UpdateChildContent(xml,"soapenv:Body|intf:getRepairtimeSubnodesTextSearchV4|intf:vrid","xml");
CkXml_UpdateChildContent(xml,"soapenv:Body|intf:getRepairtimeSubnodesTextSearchV4|intf:descriptionLanguage","xml");
CkXml_UpdateChildContent(xml,"soapenv:Body|intf:getRepairtimeSubnodesTextSearchV4|intf:repairtimeTypeId","xml");
CkXml_UpdateChildContent(xml,"soapenv:Body|intf:getRepairtimeSubnodesTextSearchV4|intf:typeCategory","xml");
CkXml_UpdateChildContent(xml,"soapenv:Body|intf:getRepairtimeSubnodesTextSearchV4|intf:nodeId","xml");
CkXml_UpdateChildContent(xml,"soapenv:Body|intf:getRepairtimeSubnodesTextSearchV4|intf:searchText","xml");
CkXml_UpdateChildContent(xml,"soapenv:Body|intf:getRepairtimeSubnodesTextSearchV4|intf:carTypeGroup","xml");
// In a SOAP HTTP request, including the XML declaration (<?xml version="1.0" encoding="UTF-8"?>) in the XML body is generally not required.
CkXml_putEmitXmlDecl(xml,FALSE);
soapRequestBody = CkXml_getXml(xml);
endpoint = "http://www.haynespro-services.com/workshopServices3/services/DataServiceEndpoint";
soapAction = "";
// For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
contentType = "text/xml";
http = CkHttp_Create();
CkHttp_ClearHeaders(http);
CkHttp_SetRequestHeader(http,"Content-Type",contentType);
CkHttp_SetRequestHeader(http,"SOAPAction",soapAction);
resp = CkHttp_PostXml(http,endpoint,soapRequestBody,"utf-8");
if (CkHttp_getLastMethodSuccess(http) == FALSE) {
printf("%s\n",CkHttp_lastErrorText(http));
printf("Failed to send SOAP request.\n");
CkXml_Dispose(xml);
CkHttp_Dispose(http);
return;
}
// Get the XML response body.
responseXml = CkXml_Create();
CkHttpResponse_GetBodyXml(resp,responseXml);
statusCode = CkHttpResponse_getStatusCode(resp);
printf("response status code: %d\n",statusCode);
CkHttpResponse_Dispose(resp);
// If the status code does not indicate succcess, then show the response XML,
// which probably contains error information.
if (statusCode != 200) {
printf("%s\n",CkXml_getXml(responseXml));
CkXml_Dispose(xml);
CkHttp_Dispose(http);
CkXml_Dispose(responseXml);
return;
}
printf("%s\n",CkXml_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).
awNumber = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:awNumber");
description = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:description");
description = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:genarts|*:item|*:description");
id = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:genarts|*:item|*:id");
mandatory = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:genarts|*:item|*:mandatory");
hasInfoGroups = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:hasInfoGroups");
hasSubnodes = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:hasSubnodes");
id = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:id");
jobType = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:jobType");
oeCode = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:oeCode");
order = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:order");
confirmationLink = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:status|*:confirmationLink");
statusCode = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:status|*:statusCode");
criteriaId = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:timeCriterias|*:item|*:groupCriterias|*:item|*:criteriaId");
criteriaLevel = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:timeCriterias|*:item|*:groupCriterias|*:item|*:criteriaLevel");
description = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:timeCriterias|*:item|*:groupCriterias|*:item|*:description");
value1 = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:timeCriterias|*:item|*:groupCriterias|*:item|*:value1");
value2 = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:timeCriterias|*:item|*:groupCriterias|*:item|*:value2");
groupDescription = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:timeCriterias|*:item|*:groupDescription");
groupId = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:timeCriterias|*:item|*:groupId");
value = CkXml_getChildContent(responseXml,"*:Body|*:getRepairtimeSubnodesTextSearchV4Response|*:getRepairtimeSubnodesTextSearchV4Return|*:value");
CkXml_Dispose(xml);
CkHttp_Dispose(http);
CkXml_Dispose(responseXml);
}
Request XML
<soapenv:Envelope xmlns:intf="http://data.webservice.workshop.vivid.nl" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<intf:getRepairtimeSubnodesTextSearchV4>
<intf:vrid>xml</intf:vrid>
<intf:descriptionLanguage>xml</intf:descriptionLanguage>
<intf:repairtimeTypeId>xml</intf:repairtimeTypeId>
<intf:typeCategory>xml</intf:typeCategory>
<intf:nodeId>xml</intf:nodeId>
<intf:searchText>xml</intf:searchText>
<intf:carTypeGroup>xml</intf:carTypeGroup>
</intf:getRepairtimeSubnodesTextSearchV4>
</soapenv:Body>
</soapenv:Envelope>
Response XML
<soapenv:Envelope xmlns:intf="http://data.webservice.workshop.vivid.nl" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<intf:getRepairtimeSubnodesTextSearchV4Response>
<intf:getRepairtimeSubnodesTextSearchV4Return>
<intf:awNumber>xml</intf:awNumber>
<intf:description>xml</intf:description>
<intf:genarts>
<intf:item>
<intf:description>xml</intf:description>
<intf:id>xml</intf:id>
<intf:mandatory>xml</intf:mandatory>
</intf:item>
</intf:genarts>
<intf:hasInfoGroups>xml</intf:hasInfoGroups>
<intf:hasSubnodes>xml</intf:hasSubnodes>
<intf:id>xml</intf:id>
<intf:jobType>xml</intf:jobType>
<intf:oeCode>xml</intf:oeCode>
<intf:order>xml</intf:order>
<intf:status>
<intf:confirmationLink>xml</intf:confirmationLink>
<intf:statusCode>xml</intf:statusCode>
</intf:status>
<intf:timeCriterias>
<intf:item>
<intf:groupCriterias>
<intf:item>
<intf:criteriaId>xml</intf:criteriaId>
<intf:criteriaLevel>xml</intf:criteriaLevel>
<intf:description>xml</intf:description>
<intf:value1>xml</intf:value1>
<intf:value2>xml</intf:value2>
</intf:item>
</intf:groupCriterias>
<intf:groupDescription>xml</intf:groupDescription>
<intf:groupId>xml</intf:groupId>
</intf:item>
</intf:timeCriterias>
<intf:value>xml</intf:value>
</intf:getRepairtimeSubnodesTextSearchV4Return>
</intf:getRepairtimeSubnodesTextSearchV4Response>
</soapenv:Body>
</soapenv:Envelope>