How to do a SOAP wsdl web services call from the command line

后端 未结 8 541
失恋的感觉
失恋的感觉 2020-11-30 17:40

I need to make a SOAP webservice call to https://sandbox.mediamind.com/Eyeblaster.MediaMind.API/V2/AuthenticationService.svc?wsdl and to use the operation ClientLogin while

8条回答
  •  时光取名叫无心
    2020-11-30 18:08

    It's a standard, ordinary SOAP web service. SSH has nothing to do here. I just called it with curl (one-liner):

    $ curl -X POST -H "Content-Type: text/xml" \
        -H 'SOAPAction: "http://api.eyeblaster.com/IAuthenticationService/ClientLogin"' \
        --data-binary @request.xml \
        https://sandbox.mediamind.com/Eyeblaster.MediaMind.API/V2/AuthenticationService.svc
    

    Where request.xml file has the following contents:

    
               
               
                  
                     user
                     password
                     key
                  
              
    
    

    I get this beautiful 500:

    
    
      
        
          s:Security.Authentication.UserPassIncorrect
          The username, password or application key is incorrect.
        
      
    
    

    Have you tried soapui?

    Read more

提交回复
热议问题