Karate Test Framework: how can I sign XML using p12? - soap

Karate Test Framework: Does this framework provide ability to sign soap xml request using p12 key ?

Not directly, but you can easily plug-in a few lines of Java code to do this. Note that Karate just sends the whole XML as plain-text, it is up to you to create the right shape, including signatures or Base64 encoded chunks.
Please refer to the docs for Java interop: https://github.com/intuit/karate#calling-java
You can look at the JWT example for some ideas: https://github.com/intuit/karate/blob/master/karate-demo/src/test/java/demo/jwt/jwt.feature

Related

Simulate SOAP request with attachment in Karate [duplicate]

Karate Test Framework: Does this framework provide ability to sign soap xml request using p12 key ?
Not directly, but you can easily plug-in a few lines of Java code to do this. Note that Karate just sends the whole XML as plain-text, it is up to you to create the right shape, including signatures or Base64 encoded chunks.
Please refer to the docs for Java interop: https://github.com/intuit/karate#calling-java
You can look at the JWT example for some ideas: https://github.com/intuit/karate/blob/master/karate-demo/src/test/java/demo/jwt/jwt.feature

UFT API REST: How can I download file in get request

when execute api rest with get method, the response body is a binary pdf file and I need download the ResponseHeader_Content-Disposition or file content to compare files.
It´s possible with UFT 14.51 with vbs?
Thanks!!
For UFT API Tests you can use the Programming Languages C# and Java and a Waste Library / Platform they bring with themselves, so why not rephrase the question: How do I download a File from an HTTP Respone with Java / C#.
Afterwards implement the download Step as a Custom Activity:
https://admhelp.microfocus.com/uft/en/14.50-14.53/UFT_Help/Content/User_Guide/z_Ch_API_TS_Extensibility.htm

extract wsdl password from soap ui project xml

I have been given a url to a password protected wsdl and told to develop from it. The only other resource I have is a project setup xml for soap ui. The document works and I am able to import the project into soap ui and connect to the wsdl that way. I can even run operations. Unfortunately, I cannot figure out what the password is, so I have no way to view the wsdl directly, or (more importantly) have soap ui autogenerate the java client code.
I have found two usernames used in the xml document, but they are all used for individual operations. Putting them into my browser has not worked. Are there a wsdl username and password hidden somewhere in the soap ui document?
I also don't think I fully grasp the auth file thing. I went to USER_HOME and made a .metro folder, then put an extensionless file called "auth" in it and put "http://userName:password#remoteHost.wsdl?wsdl", but eclipse continued to ask for the auth file as though it did not exist.

how to create XML Doc in ios

in my current project i need to create one xml file and send it to server.
i searched many sites a got information about some API like
NSXML (now its deprecated)
http://onlinefreecomputertutorials.blogspot.in/2011/07/how-to-read-and-write-xml-documents.html
GDATAXML (now its deprecated)
http://www.raywenderlich.com/725/how-to-read-and-write-xml-documents-with-gdataxml
please if is there any API i can use to create xml or you have any idea just share with me or any link for tutorial to create xml in objective c.
thanks for any help.
Use TCMXMLWriter. It's a small XML library with a very nice syntax.

how to integrate generated web services stubs file into Xcode

I am doing a project where iphone or ipad is a client side..
problem here is using WSDL file we have generated stubs using a software...
the generated stubs are in the format .h and .m file
but how to run this file in xcode or integrate with the xcode....
I am not getting any links or tutorial to do so please suggest me how to do.
Thank u
Depends on a software that you have used to generate proxy classes from wsdl. We have successfully used http://code.google.com/p/wsdl2objc/, and just added generated files to project (project->add existing files). Bear in mind that those are just proxy classes, project structure and code to consume the webservice you have to write on your own.
Its depend upon the type of web service are generated. If its XML outputted web service , then you need to use nsxmlparser to parse the XML web-service.And if its outputted as JSON then you had to use JSON parser etc. Therefore its depends upon type of your web-service is, then you can use suitable parser to parse the web service. There are several links available on internet.