Forum Discussion
3jtechtest
13 years agoOccasional Contributor
Finally got the workaround from SmartBear:
Hi,
The problem with the web service method call in this case occurs because of difference between scripting and SOAP data types - there's no scripting analogue for the SOAP:Decimal type, and strings are used for data conversion.
As a workaround, you can try using the following function to pass values in the target method. Parameters of these function are:
Name: string - the parameter name as it is declared in the service.
Namespace: string - the namespace where the method is defined.
Value: the parameter value (e.g. 0.00003).
Here's the function's code (JScript):
function CreateParameterNode(Name, Namespace, Value)
{
var Document = Sys.OleObject("Msxml2.DOMDocument");
var Element = Document.createNode(1, "Name", "Namespace");
Element.appendChild(Document.createTextNode(0.00003));
return Element;
}
Hi,
The problem with the web service method call in this case occurs because of difference between scripting and SOAP data types - there's no scripting analogue for the SOAP:Decimal type, and strings are used for data conversion.
As a workaround, you can try using the following function to pass values in the target method. Parameters of these function are:
Name: string - the parameter name as it is declared in the service.
Namespace: string - the namespace where the method is defined.
Value: the parameter value (e.g. 0.00003).
Here's the function's code (JScript):
function CreateParameterNode(Name, Namespace, Value)
{
var Document = Sys.OleObject("Msxml2.DOMDocument");
var Element = Document.createNode(1, "Name", "Namespace");
Element.appendChild(Document.createTextNode(0.00003));
return Element;
}