Curl Command Error

Good afternnon. I need your help please to understand the basics of curl command to test web services.

Ive heard i can test a web service using this command,so:

curl http://glb_osb_fs.nh.inet:7110/serverglobal/services/StrategicPlanning/NotifyMNPAction_v1

it yields some errors, i would like to know about but i dont understand, dont know if some parameters are missingor something:

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:WSResult xmlns:ns1="http://www.example.org/RecibirNotificacionSPN/"><Codigo>33</Codigo><Mensaje>33</Mensaje><Descripcion><codRetorno>33</codRetorno><mensRetorno>ESB Validation error in response</mensRetorno></Descripcion></ns1:WSResult></soapenv:Body></soapenv:Envelope>[spn@prospn01c log]$

Normally, in today's world developers test web APIs using Postman (or something similar).

https://www.getpostman.com/

FWIW, I work with web APIs every day and have not used curl in many years for testing an API. The dev world has moved on to very good tools for this in the last few years. I recommend you download, learn and use PostMan , or a free browser extension, to test API end points. It's a very good web API testing tool used by over 6 million web developers, including your truly.

Frankly, I have tried and used these tools, and in my experience using PostMan will have you a lot of development time.

Time is important.

Hope this helps.

OK, thanks you very much for your feedback and your help, and i come up withh some questions.

  • 1 can i download for free at the office to test web services, do i need ay license or something ?
  • 2 what is better to use Postman or SOAP UI, i ve heard at work in some areas use SPOAP UI as a tool but I've never used
  • 3 There must be a bunch of links related to learning postman, but there is a special one for newbies?
  • 3 Just for the Record as matter of knowlege with the curl command what parameters are missing so that the command work perfectly?

I appreciate your help in advanced

The PostMan web site has the answers to all your questions except the last one. Please read the basics there, Thanks.

Regarding curl, someone who uses curl can help you. Frankly, I stopped using curl for testing or web APIs or downloading web data a decade ago.

I occasionally use curl and wget to download a file.

As a cybersecurity person, I note (as a side note) that a lot of malware uses curl when the hacker attempts to exploit a vulnerability on a web site and download malware to the file system.

Cheers,

1 Like

ok thank you once again, just a couple of questions.

can i download postman for free at my work ?
what is better and easy to use postman or SOAP UI

Thanks for your help in advanced

1 Like

You can read PostMan's documentation about their policies, but I think you can use it for free based on their conditions.

Sorry, I don't use SOAP UI, because I use PostMan and it has worked fine for me when testing an API, but that's to you to choose what you like. Download both and see which one works best for you.

I'm going to download and check out SOAP UI someday. It also looks good.