Hi Venky,
Did you find a solution for this? I have the same problem now, exact same
error. Can you please tell me how could you resolve it.
Thanks,
Khurshid
On Thursday, July 21, 2011 11:17:40 AM UTC-5, Venky sangepu wrote:
>
> Hi Friends,
>
> I am new to web services testing in QTP.
>
> We were using SoapUI tool for web services testing and now we want to use
> QTP.
>
> Currently I have following Set Up on my QTP
>
> Tool kit options - Apache Axis 1.x
> WS-I validation tool location - downloaded Interoperability Testing Tools
> 1.1 for Java and .NET and provided the base path
> ws-i validation tool platform - Java
>
> With the help of Web Services Wizard, recorded WSDL and got the following
> steps
> Set GetPatientDemo =
> WebService("patientDemoService").GetPatientDemo(XMLWarehouse("GetPatientDemoRequest"))
> WebService("patientDemoService").Check CheckPoint("GetPatientDemo")
>
> when I run the script I am getting the following error
>
> The GetPatientDemo operation call failed.
> The Apache Axis 1.x toolkit returned the following error:
> failed to get OrganizationName ; nested exception is
> java.lang.NullPointerException
> Line (2): "Set GetPatientDemo =
> WebService("patientDemoService").GetPatientDemo(XMLWarehouse("GetPatientDemoRequest"))".
>
>
>
>
> OrganizationName is available in message header. See the complete request
> below ( removed company related data)
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:acc="http://www.abc.com/schema/Search" xmlns:msg="
> http://www.abc.com/schema/msgHeader">
> <soapenv:Header/>
> <soapenv:Body>
> <acc:AccessionSearchRequest>
> <msg:MessageHeader>
> <msg:OrganizationName>abc</msg:OrganizationName>
> <!--Optional:-->
> <msg:SequenceNumber>123</msg:SequenceNumber>
> <msg:UserId>?</msg:UserId>
> </msg:MessageHeader>
> <acc:Payload>
> <acc:AccessionSearchRequestMessage>
> <!--Optional:-->
> <acc:AccessionId>abcd*</acc:AccessionId>
> <acc:AccessionWithAtleastOnePayor>true</acc:AccessionWithAtleastOnePayor>
>
> </acc:AccessionSearchRequestMessage>
> </acc:Payload>
> </acc:AccessionSearchRequest>
> </soapenv:Body>
> </soapenv:Envelope>
>
> If I use the same request in SoapUI, it works fine
>
> Please help me if anyone come accross this situation?
>
> Is there any configuration setting I need to do while working web services
> for java project?
>
> Is there any possibility that we can skip the header information?
>
>
> Thanks for your help in advance
>
> Venkat
>
>
>
>
>
>
>
>
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.