How to run a java script(json) from my vc++ code?
-
I need to create a 'input' parameter in method of my web service.
I am writing a VC++ program where I am calling my vb web service method, using http request(SOAP packet). While calling this web method, return SOAP packet tells me only 'out' parameter(being generated by web method). I digged on google, came to know that this 'input' parameter may be added by json, XML scripts...
There might be some java expert here, who can answer my question...
-Pankaj
-
I need to create a 'input' parameter in method of my web service.
I am writing a VC++ program where I am calling my vb web service method, using http request(SOAP packet). While calling this web method, return SOAP packet tells me only 'out' parameter(being generated by web method). I digged on google, came to know that this 'input' parameter may be added by json, XML scripts...
There might be some java expert here, who can answer my question...
-Pankaj
-
This is not a question for Java experts, you are talking about javascript which is completely different. You also need to provide better details of what your code is doing, and where the error occurs.
Dear, I explain you whole condition of code...
... – pankaj 16 hours ago
I want to add an input parameter('zipcode' from VC++/'InParam' in vb web method) in web method...though I am trying to send that parameter, in my call of C++ SOAP packet..but this is being taken as 'Nothing'(InParam) by web method..
Though I made a sample json file as microsoft says...social.msdn.microsoft.com/Forums/en-US/… how to fix that in my vc++ code, after sending 'POST' request of my http packet
in WSDL..Web Service.vb..
Imports System.Web Imports System.Web.Services Imports System.Web.Services.Protocols ; _ _ _ Public Class WebService Inherits System.Web.Services.WebService _ Public Function ConvertTemperature(ByVal InParam As String) As String Dim Temp As Integer Temp = CInt(InParam) + 20 Return CStr(Temp) End Function End Class – pankaj 15 hours ago
float CallWebService(LPCTSTR szZipCode) { // SOAP Request Envelop to be posted TCHAR szSOAPReq[MAX_PATH*2] = {0}; sprintf(szSOAPReq, g_lpszSOAPReq, szZipCode); CComPtr spXMLHTTP; HRESULT hr = spXMLHTTP.CoCreateInstance(GetClsidXMLHTTP("Msxml2.ServerXMLHTTP.4.0")); CHECK_HR(hr); TCHAR szGetURL[64]={0}; )); sprintf(szGetURL, g_lpszGetURL, szZipCode); char szTemp[32]; sprintf(szTemp, "\"%s\"", szZipCode); hr = spXMLHTTP->open(_bstr_t(_T("GET")), szGetURL, VARIANT_FALSE); – pankaj 15 hours ago
CHECK_HR(hr); ///////////////////////////Packet //static const TCHAR* const g_lpszSOAPReq = CString szRequest= _T(" " ""; " " " " " string" " " " " ""); – pankaj 14 hours ago
VARIANT vRequest; v
-
This is not a question for Java experts, you are talking about javascript which is completely different. You also need to provide better details of what your code is doing, and where the error occurs.
Dear Richard, Please give a look to my problem. as mentioned above. -Pankaj
-
Dear Richard, Please give a look to my problem. as mentioned above. -Pankaj
change this line in wsdl as "
type="xsd:string"/
"go instead of "xsd:double"
-
Dear, I explain you whole condition of code...
... – pankaj 16 hours ago
I want to add an input parameter('zipcode' from VC++/'InParam' in vb web method) in web method...though I am trying to send that parameter, in my call of C++ SOAP packet..but this is being taken as 'Nothing'(InParam) by web method..
Though I made a sample json file as microsoft says...social.msdn.microsoft.com/Forums/en-US/… how to fix that in my vc++ code, after sending 'POST' request of my http packet
in WSDL..Web Service.vb..
Imports System.Web Imports System.Web.Services Imports System.Web.Services.Protocols ; _ _ _ Public Class WebService Inherits System.Web.Services.WebService _ Public Function ConvertTemperature(ByVal InParam As String) As String Dim Temp As Integer Temp = CInt(InParam) + 20 Return CStr(Temp) End Function End Class – pankaj 15 hours ago
float CallWebService(LPCTSTR szZipCode) { // SOAP Request Envelop to be posted TCHAR szSOAPReq[MAX_PATH*2] = {0}; sprintf(szSOAPReq, g_lpszSOAPReq, szZipCode); CComPtr spXMLHTTP; HRESULT hr = spXMLHTTP.CoCreateInstance(GetClsidXMLHTTP("Msxml2.ServerXMLHTTP.4.0")); CHECK_HR(hr); TCHAR szGetURL[64]={0}; )); sprintf(szGetURL, g_lpszGetURL, szZipCode); char szTemp[32]; sprintf(szTemp, "\"%s\"", szZipCode); hr = spXMLHTTP->open(_bstr_t(_T("GET")), szGetURL, VARIANT_FALSE); – pankaj 15 hours ago
CHECK_HR(hr); ///////////////////////////Packet //static const TCHAR* const g_lpszSOAPReq = CString szRequest= _T(" " ""; " " " " " string" " " " " ""); – pankaj 14 hours ago
VARIANT vRequest; v
-
I need to create a 'input' parameter in method of my web service.
I am writing a VC++ program where I am calling my vb web service method, using http request(SOAP packet). While calling this web method, return SOAP packet tells me only 'out' parameter(being generated by web method). I digged on google, came to know that this 'input' parameter may be added by json, XML scripts...
There might be some java expert here, who can answer my question...
-Pankaj
Did you create this web service/method?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
Did you create this web service/method?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
Yes..I created this web service...by VS->New Web->Added Web service->vb Web Method... Do you have any suggestion for my project..? :) Pankaj