[Dev] webservice recording TestMaker 4.3.1
William Martínez Pomares
wmartinez at AVANTICATEC.NET
Wed Jun 6 17:33:49 PDT 2007
Sorry, Joseph, I didn't answer before. Had had a lot of work lately.
Yes, you cannot use addParameter since it is for RPC. Please note the attached PY file, it has an example of how to use the document style.
You need to create the XML using SAX and Element. Hope this example clarifies it.
Let me know if you have any question.
William.
-----Original Message-----
From: dev-bounces at lists.pushtotest.com [mailto:dev-bounces at lists.pushtotest.com]On Behalf Of Joseph Ribin Roy
Sent: Friday, June 01, 2007 5:53 AM
To: dev at lists.pushtotest.com
Subject: [Dev] webservice recording TestMaker 4.3.1
Hi William,
Thanks for the quick reply. I had a look into the WSDL file it seam it's making use of document type encoding style.
I am here with sending the WSDL file and agent script. I have changed the script to send the input variables to this service
body.addParameter("string","") to
body.addParameter("Technology",5)
This web service is deployed in weblogic. From the console I have to give 2 arguments in Xml format
<GetNews><keyword>Technology</keyword><articlecount>5</articlecount></GetNews>
But the agent won't accept in this format. The addParameter method in the script accepts 2 arguments.
Do I have to use a Data Processing Library (DPL) for the script to accept the input in this format?
I already have a DPL to generate this input, but how do I send it as an argument
body.addParameter("?")
This method will accept 2 arguments. If I generate a DPL input it will be a single string
--------------
Hi Joseph.
Although the faultcode says "client", it is actually sending something to the server. The server response indicates a problem located in the client request is no letting the call to complete.
It seems that the client is asking for an operation name that does not exist. I have seen this problem when you have an RPC oriented SOAP but your WSDL is document oriented and it is not wrapped (a trick from microsoft to make/tweak a document/literal call to create a RPC/literall SOAP message).
You can check the SOAp being sent by using TCPMonitor (comes with Axis). Or you can check the WSDL to detemine which style/encoding is using and the agent code to see how is it calling it.
Or, you can post the WSDL and the Agent so we can take a look at them
BWT, the WSDL recorder creates an agent that is totally working if the WSDL operation is RPC oriented. But if not, document oriented needs an XML as a body, and the recorder only leaves the statement there for you to fill it with an appropriate XML. So it is important to know if your WSDL is document oriented.
William Martínez Pomares
R&D Manager and Architect
Avantica Technologies
Phone(US) :+1 (650) 353-4522 Ext 131
Fax(US) :+1 (877) 372-1955
Phone(CR) :+506 283-9100 Ext 131
Fax(CR) :+506 253-7451
http://www.avantica.net <http://www.avantica.net/>
Hi all
I m able to successfully record web services (susiboats) which is deployed in my local system by giving WSDL URL , but while replaying the skeleton script which is created I found that it is not actually sending any request to server. I tried printing the response object it shows a faultcode from client side.
I tried recording some other web services but it also end up in the same exception.
Agent running:
Description:
Processing...
Sending request to server...
Technology=1
com.pushtotest.tool.protocolhandler.SOAPProtocol at 1beffcd
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><env:Body><env:Fault><faultcode>Client</faultcode><faultstring>Unable to find a matching Operation for this remote invocation
</>. Please check your operation name. </faultstring></env:Fault></env:Body></env:Envelope>
That took 0.0 milliseconds to complete.
Agent ended
So I thought of looking into the sample agent scripts provided along with the TestMaker. But examples.pushtotest.com is not up it seams (I learned from Franks reply mail) so I am not able to run those test agent scripts.
If any one can give me some pointers to make it fully functional will be appreciated.
Joseph
The information contained in, or attached to, this e-mail, contains confidential information and is intended solely for the use of the individual or entity to whom they are addressed and is subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
www.aztecsoft.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 25682 bytes
Desc: not available
Url : http://cake.pushtotest.com/pipermail/dev/attachments/20070606/8bdb6b52/attachment-0001.bin
More information about the Dev
mailing list