IServerXMLHTTPRequestPtr pXMLHTTPReq = NULL; hr=pXMLHTTPReq.CreateInstance(__uuidof(ServerXMLHTTP60)); hr = pXMLHTTPReq->open("POST","http://localhost/Service1.asmx",false,"",""); hr = pXMLHTTPReq->setRequestHeader("Content-Type", "text/xml; charset=utf-8"); hr = pXMLHTTPReq->setRequestHeader("SOAPAction", "http://tempuri.org/ValidateIllustratorUser"); string strSoapEnvelope = ""; strSoapEnvelope = ""; strSoapEnvelope += "<soap:envelope"; strsoapenvelope="" +="xmlns:xsi=\" http:="" www.w3.org="" 2001="" xmlschema-instance\""; ="" http="" :="" xmlschema\""; ="" schemas.xmlsoap.org="" soap="" envelope="" \"="">"; strSoapEnvelope += "<soap:body>"; strSoapEnvelope += "<validateillustratoruser xmlns="\"http://tempuri.org/\"">"; strSoapEnvelope += "<userid>A"; strSoapEnvelope += "<password>A"; strSoapEnvelope += ""; strSoapEnvelope += ""; strSoapEnvelope += ""; hr = pXMLHTTPReq->send(&strSoapEnvelope); string outXML = pXMLHTTPReq->responseText;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)