How to get the response as an attachment using Soap UI - rest

Ok, so I am very much new to Soap UI and trying to test a REST webservice which returns an attachment(.docm) as a response. While running the service, I am getting the response in binary stream but not the attachment.
Infact in the response section -- Header tab, I can see the attachment name in content-disposition column (See the attached image) but attachment tab is empty.
Am I missing something ? Do I need to write any groovy script for the same ? Please suggest. Appreciate any help on this.

Ok, So I got the solution. Posting it here if someone else faces this issue.
There are some settings which need be enabled for the same.
I have added 1 more parameter in the Request details tab with the value as
Enable MTOM = true
Also, I have added the values in Dump file column under Test Request properties. See the screenshot attached.
:)
Hope it helps others as well. Cheers

Adding "Enable MTOM" as Header parameter in rest request and "Dump File" as Property parameter, it's works.

Related

"Client Error" message when trying to implement an Rest API View

I'm creating an API with Drupal to serve a angular application. The problem is, when I create the view with Rest export and try to access it (via browser or postman), it gaves me an "Client error" message (and nothing more).
I'm using drupal-8.7.6, running with PHP7.3, mysql and apache 2. But I've tried at nginx also and the error appeared again.
To reproduce it, just add some contents, enable the Restful web services, jsonm hal and create a view that exports rest data.
I expect to access the information via GET request (using browser, postman or any other way)
Go to your View
Go to Format
Click on Settings beside Serializer
Finally check Json option and save.
You are done :)
find out what was happening
I was not specificating the format of output, so Drupal was searching for an html to serve. To workaround this, just add to url: ?_format=json, for example, if my view route is "/articles", it will be: http://drupal.dev/articles?_format=json
Go to the rest exports view, click on format setting and click accepted request format to json.

Angular developers need a path to call for the content from aem page

I generated the json file and gave the path /bin//filename.json . I am able to see the json file in author mode but not in publish. Our aem ops team says they cannot make bin as public. Tried to change the path, using js generated the json path file now at path /content//***/filename.json which I am able to see in author mode but not in publish.
My question is is there any other way that I can try . Please if any other ideas do comment.
Thank you.
Or just simple: Angular get content of page by call .infinity.json
Examp:
Your page is: /mysite/en/home.html
We change to : /mysite/en/home.infinity.json
For more detail: https://forums.adobe.com/thread/2337725
Good luck
We open using url under /bin/.. for SlingServlet
First create a slingSevlet
#SlingServlet(paths="/bin/filename.json", methods = "GET", metatype=true)
Then check the filter and make sure that /bin/filename.json accepts GET requests:
curl 'http://localhost:4502/system/console/configMgr'
Search for 'Apache Sling Referrer Filter'
Check the configuration

ISO-8859-1Q in attached file

I have a problem with attached file attached in outlook email sent by the console business objects,
his name was prefexé ISO-8859-1Q which causes me a problem opening it.
Need help to evolve. thank you
Sounds like the Filename attribute of the Content-Disposition MIME header included an invalid charset value.
How exactly is the message created and received?

SoapUI doesn't send out query string after "Post QueryString" is checked

I tried to test RESTful web service by posting query parameters, however, after I checked "Post QueryString" check box, no parameters were send out with request
Can someone please tell me what is wrong? BTW, I am using version 4.5.1
Thanks a lot
I can't be sure, but increasing the Size of Raw Request to Show setting (which defaults to 10000) may help.
See: File / Preferences / UI Settings / Size of Raw Request to Show.
I set it to 100000, now I can see the POST query parameters in Raw mode, too.
(Also, credit goes to SmartBear forum user olensmar.)

Nagios does not send the graph in email

So, I have been trying to make Nagios work with Graphite to send alert emails but that's not working right. I used the following URL to set everything up:
http://www.protocolostomy.com/2012/02/24/sending-alerts-with-graphite-graphs-from-nagios/
The sendgraph.py alone, with the correct parameters sends a correct email with the graph properly displayed. But if I use nagios to send the graph it sends the correct message but the graph does not show up. I only get a file name which when tried to open gives me this message: "It may be damaged or use a file format that Preview doesn’t recognize." I have no idea why. All the work of sending the graph is done by sendgraph.py and it has all the correct parameters to it for sure because the URL gives the correct values from Graphite and then I get the email (so the email is correct) and I get the description and state of the graph correctly.
Could anyone please suggest me a way out of this?
Thanks!
In the Nagios documentation for macros it states:
"Additionally, any macros that contain custom variables are stripped for safety and security."
In you nagios.cfg file, try removing the '&' from this line:
illegal_macro_output_chars=`~$^&"|'<>