Highlighted
Super Contributor.. Super Contributor..
Super Contributor..
447 views

InvokeMethod failure: Unable to deserialize node

Jump to solution

Using Protocol Web Services I am getting the Subject error.  Below is the SoapUI XML and works . Your assistance is greatly appreciated.

<arg0>
<auditToken>
<applicationIdentifier>soapui</applicationIdentifier>
<processingNode>soapui</processingNode>
<requestHost>localhost</requestHost>
</auditToken>
<userIds>1234</userIds>
<userIds>1235</userIds>
</arg0>

When I use the same format in LoadRunner I get the Subject error.

        BEGIN_ARGUMENTS,
        "xml:arg0="
            "<arg0>"
                "<auditToken>"
                    "<applicationIdentifier>soapui</applicationIdentifier>"
                    "<processingNode>soapui</processingNode>"
                    "<requestHost>localhost</requestHost>"
                "</auditToken>"
                   "<userIds>1234</userIds>"
                 "<userIds>12345</userIds>"
            "</arg0>",            
        END_ARGUMENTS,

Loadrunner log info

findBy.c(6): System.ApplicationException: Unable to deserialize node authUserIds in path '/arg0/userIds[2]'
at Mercury.LR.LrWsNetClient.LrXmlDeserializer.DeserializeComplex(Type oDestType, XmlElement xmlElm)
at Mercury.LR.LrWsNetClient.LrXmlDeserializer.DeserializeScriptArg(Type oDestType, XmlElement xmlElm, ITypeMetadata metadata)
at Mercury.LR.LrWsNetClient.LrXmlDeserializer.DeserializeScriptArg(Type oDestType, String strXML, ITypeMetadata metadata)
at Mercury.LR.LrWsNetClient.ProxyCreator.Convert_IN_Parameter(String msInStr, Type moDestType, Object& moNewObj, ParameterInfo oPI)
at Mercury.LR.LrWsNetClient.ProxyCreator.Change_IN_Parameters(IWSMethodParameters mParams, MethodInfo oMI, Object proxyObject, Object[]& arrValidParams)
at Mercury.LR.LrWsNetClient.ProxyCreator.InvokeMethod(String sMethod, IWSMethodParameters mParams, String sAsyncEvent)
at Mercury.LR.LrWsNetClient.NetReplay.InvokeMethod(String sMethod, IWSMethodParameters mParams, String sAsyncEvent)

findBy.c(6): Error: InvokeMethod failure: Unable to deserialize node authUserIds in path '/arg0/userIds[2]'.
findBy.c(6): Error stack trace: at Mercury.LR.LrWsNetClient.ResultArgExtractor.CreateXmlArgsDoc()
at Mercury.LR.LrWsNetClient.ResultArgExtractor.ExtractArgAsXml(String sArgPath, ArgumentExtractionType extractionType)
at Mercury.LR.LrWsNetClient.ResultArgExtractor.ExtractArg(String sArgPath, Boolean IsSaveResultArgumentsAsIs, ArgumentExtractionType extractionType)
at Mercury.LR.LrWsNetClient.ProxyCreator.ExtractArg(String sArgPath, ArgumentExtractionType extractionType)
at Mercury.LR.LrWsNetClient.NetReplay.ExtractResultArg(String sArgPath, ArgumentExtractionType extractionType, Array& barrArgValue)
findBy.c(6): Error: ExtractResultArg failure: Object reference not set to an instance of an object..
findBy.c(6): Error: Web service call "findBy" execution failed

Using LoadRuner 12.55

Boatnlarry
0 Likes
1 Solution

Accepted Solutions
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Found the issue. I needed to modify my XL to the below format.

 

        BEGIN_ARGUMENTS,
        "xml:arg0="
            "<arg0>"
                "<auditToken>"
                    "<applicationIdentifier>soapui</applicationIdentifier>"
                    "<processingNode>soapui</processingNode>"
                    "<requestHost>localhost</requestHost>"
                "</auditToken>"
                "<userIds>"
                    "<userIds>1234</userIds>"
                    "<userIds>1235</userIds>"                    
                "</userIds>"
            "</arg0>",
        END_ARGUMENTS,

Boatnlarry

View solution in original post

0 Likes
2 Replies
Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Found the issue. I needed to modify my XL to the below format.

 

        BEGIN_ARGUMENTS,
        "xml:arg0="
            "<arg0>"
                "<auditToken>"
                    "<applicationIdentifier>soapui</applicationIdentifier>"
                    "<processingNode>soapui</processingNode>"
                    "<requestHost>localhost</requestHost>"
                "</auditToken>"
                "<userIds>"
                    "<userIds>1234</userIds>"
                    "<userIds>1235</userIds>"                    
                "</userIds>"
            "</arg0>",
        END_ARGUMENTS,

Boatnlarry

View solution in original post

0 Likes
Highlighted
Contributor.
Contributor.

Could you please provide a solution to the below error

Action.c(14): Error: InvokeMethod failure: Unable to deserialize node value in path '/pricingVariantRequest/CoverageType/coverageCode/value'.
Action.c(14): Error stack trace: at Mercury.LR.LrWsNetClient.ResultArgExtractor.CreateXmlArgsDoc()
at Mercury.LR.LrWsNetClient.ResultArgExtractor.ExtractArgAsXml(String sArgPath, ArgumentExtractionType extractionType)
at Mercury.LR.LrWsNetClient.ResultArgExtractor.ExtractArg(String sArgPath, Boolean IsSaveResultArgumentsAsIs, ArgumentExtractionType extractionType)
at Mercury.LR.LrWsNetClient.ProxyCreator.ExtractArg(String sArgPath, ArgumentExtractionType extractionType)
at Mercury.LR.LrWsNetClient.NetReplay.ExtractResultArg(String sArgPath, ArgumentExtractionType extractionType, Array& barrArgValue)
Action.c(14): Error: ExtractResultArg failure: Object reference not set to an instance of an object..
Action.c(14): Error: Web service call "quoteCarInsuranceAgreement_102" execution failed

    web_service_call( "StepName=quoteCarInsuranceAgreement_103",
        "SOAPMethod=QuotationVS-STG-v3|QuotationVS-STG-v3soaphttp|quoteCarInsuranceAgreement",
        "ResponseParam=response",
        "Service=QuotationVS-STG-v3",
        "ExpectedResponse=SoapResult",
        "Snapshot=t1568964317.inf",
        BEGIN_ARGUMENTS,

"xml:pricingVariantRequest="
            "<pricingVariantRequest>"
                "<CoverageType>"
                    "<coverageCode>019</coverageCode>"
                    "<coverageOption>"
                        "<CoverageOptionType>"
                            "<optionCode>071</optionCode>"
                            "<optionTypeCode>362</optionTypeCode>"
                        "</CoverageOptionType>"
                    "</coverageOption>"
                "</CoverageType>"

"</pricingVariantRequest>",
        
        END_ARGUMENTS,
        BEGIN_RESULT,
        END_RESULT,
        LAST);

 

PS: This is not the complete xml.

Kindly let me know if you have any solution to this issue.


            

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.