06-12-2010, 12:55 AM
(This post was last modified: 06-12-2010, 01:02 AM by NeilJester.)
Hey guys, I am new to this forum and have been working with QTP for about 7 months now. I have encountered a situation where I have used the Web Services Wizard to try and test a web service that has the HTTP-GET and HTTP-POST messaging protocols disabled because of security. Therefore when I try to invoke a PutMessage method on my webservice to send my XML string, I am getting the following error message:
The PutMessage operation call failed.
The .NET Framework 2.0 WSE 3.0 toolkit returned the following error:
Soap error:
Message: Server was unable to process request. ---> Object reference not set to an instance of an object.
Line (10):
The code I am using to attempt to send my xml string to the webserver is below:
'Note WebService Info was changed for this forum to be confidential:
I'm not sure what to do at this point. I have tested the XML via one of our development tools for the web service and it submits ok so I know the XML file is correct.
Does anyone know how to configure/code the webservice call in vb script so that the PutMessage method will accept and process the XML string. (Note I also tried this without using the xmlStr = xmlDoc.ToString, and simply used the xmlDoc to pass into PutMessage)
Any help would be appreciated.
The PutMessage operation call failed.
The .NET Framework 2.0 WSE 3.0 toolkit returned the following error:
Soap error:
Message: Server was unable to process request. ---> Object reference not set to an instance of an object.
Line (10):
Code:
"PutMessage = WebService(Desc1, Desc2, Desc3).PutMessage(xmlStr)".
The code I am using to attempt to send my xml string to the webserver is below:
'Note WebService Info was changed for this forum to be confidential:
Code:
Set xmlDoc = XMLUtil.CreateXML()
xmlDoc.LoadFile("C:\Test_Automation\CMX_App2.xml")
xmlStr = xmlDoc.ToString
Desc1 = "wsdl:=http://abc123.testserver.com/STransport_2003_12.asmx?wsdl"
Desc2 = "service:=STransport_2003_12"
Desc3 = "port:=STransport_2003_12"
PutMessage = WebService(Desc1, Desc2, Desc3).PutMessage(xmlStr)
I'm not sure what to do at this point. I have tested the XML via one of our development tools for the web service and it submits ok so I know the XML file is correct.
Does anyone know how to configure/code the webservice call in vb script so that the PutMessage method will accept and process the XML string. (Note I also tried this without using the xmlStr = xmlDoc.ToString, and simply used the xmlDoc to pass into PutMessage)
Any help would be appreciated.