Forum Discussion
Hi Alex,
below is my context:
I followed the steps below:
1. Open the Test Complete
2. Added the Web service Project.
3. Navigate to the Web service node
4. Click on Add
5. select the WSDL in the
popup(https://devtest.idigi.com/mobile/services/DeviceManagementService?wsdl)
6. Click on Get services
7. Populate the Tested service and Click on OK Button in
the Pop up 8. I got the Types and Methods listed for that services.
Script:
1. Open the New Script file
2. added the code
below:
Function HomeGprsIpVO
Dim TypeFactory
'Get the type
factory for the web service
Set TypeFactory =
WebServices.FleetManagementService.TypeFactory
Set HomeGprsIpVO
= TypeFactory.HomeGprsIpVO
HomeGprsIpVO.gprsId=null
HomeGprsIpVO.ipAddress="192.168.1.1"
HomeGprsIpVO.lastUpdated=""
HomeGprsIpVO.name="Praveen"
HomeGprsIpVO.port="5005"
HomeGprsIpVO.status=1
HomeGprsIpVO.updatedBy=null
res=WebServices.FleetManagementService.createHomeGPRSIP(HomeGprsIpVO)
a=res.code
MsgBox a
End Function
I am getting the error as"User Creditionals
Required", Because of that service don't have the
Header part
<soapenv:Header>
<username>Admin</username>
<password>password</password>
<ipaddress>172.80.1.55</ipaddress>
<portalId>1</portalId>
</soapenv:Header>
Using Soap UI, i am adding above header part externally
to that Particular service and run. It is executing- Correct.
But i don't have option to modify service in the Test
complete.
So , i need to add the only Header part without changing the service for that service while
executing. Then only i will get the result.
I read the article http://support.smartbear.com/viewarticle/29074/
before sending this . But, in that example, it is converting Header part
as well as Web service standard code in to xml. I want add the Header part and
append to existing Web service.
-------------------------------
Hi Sergei Sokolov,
This is for functional testing using Test complete 9, but
in the form unfortunately started as in Load complete.
Regards,
Praveen Kumar P.
Related Content
- 5 years ago
- 5 years ago
Recent Discussions
- 9 months ago
- 2 years ago
- 3 years ago
- 3 years ago