Contributions
Can I use soapui or readyapi to provide the scripting for automated json downloads?
I'm new to all of this, am mostly a db/.net developer. I need to pull data from a rest json data source on a regular basis (scheduled). I have a user name and password from the provider and can manually pull down the json payload with soapui. My question is, can I use soapui or readyapi as part of set of routines that would periodically connect to the api and invoke a call using 'get updates for the last day' kind of parmameter, and save the json to disk? Or it are these tools mostly good for 'testing' an api manually?Solved820Views0likes1Comment- 1KViews0likes2Comments
Re: Issue with Authentication, or...?
I am appreciative that you responded so quickly. I would really like to get this resolved before the long weekend. It's supposed to be REST/JSON. They did send a wsdl, and that made me confirm to the provider that it's json, and they say it is. There is a payload, if by that you mean data should be returned. I originally used GET. Since you wrote I've also tried POST, PUT, HEAD, PATCH, without seeing any different outcome. The parameters...as I posted there is ?ItemID=123456. That is one of the two parameters that can be used, according to the provider. But you wrote "URI/Template/Resource? Matrix? Query? Headers?" and I'm not sure what you mean. The parameters we're going to use are the simple ItemID (an integer) or a date range, which I've not tried yet. In the SoapUI parameter dialog I don't see a place to change a parameter setting to a value like URI vs Matrix? I'm not sure what you mean by if the payload is validated by the webservice? Likewise, the associated media type, not sure. I expect it to return data in plain text, which will be transformed into rows in sql server. ItemName = "Widget" etc. Proxy, not sure. If it needed that I'd have thought they would have mentioned it. The soapui log looks clean, just info on the request, it's been received, can be kept alive indefinitely, got response, then closed. There is nothing in the error log. The http log has what I think is a Windows Communication Foundation boilerplate response, starting with "metadata publishing for this service is currently disabled". It's the same as what I see if I enter the url to the service only in a browser: https://test.anyname.com/theservice.svc If I enter the full uri including the parameter into a browser (firefox) I get the following. I wouldn't expect the data, at least because it's not authenticated, but did what to see what it offered. The server encountered an error processing the request. The exception message is 'Object reference not set to an instance of an object.'. See server logs for more details. The exception stack trace is: at app.Integration.Services.host.Log.ItemID(integer personId) in D:\path\path\app.log\item.cs:line 45 at InvokeItemInfo(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)989Views0likes0CommentsIssue with Authentication, or...?
I'm new to soapui. I have been provided with a json endpoint, a user name and password which I would like to access some data. In SoapUI, I enter the uri, and the param values. I have created a Basic authentication entry. I'm not able to access any data. I can't share the uri etc but the values I have are like this in the SoapUI interface prior to my test: URI: https://test.anyname.com Resource: theservice.svc Parameters: ?ItemID=123456 On the JSON tab I see this The content you are trying to view cannot be viewed as JSON The HTML tab shows Metadata publishing for this service is currently disabled What am I missing?1.1KViews0likes5Comments