Contributions
Re: Request headers not received in REST mock service after deploying in server
I couldn't hit my mock from other component because of set up issue. Instead i tried from postman and i got only response like "There are currently 1 running SoapUI Mockservices" not my oringinal response.3.3KViews0likes1CommentRe: Request headers not received in REST mock service after deploying in server
sorry i misunderstood that i have to generate war file with headers alone.Now i understood that it is the name of the war file. Actually i had generated war file and deployed it, but when i hit it from soap ui to that particular url it is working fine. However, when the other component of my application tries to hit the mock service url, in my mock service log,I could see the request body content but header value(abc) is showing as null.3.3KViews0likes3CommentsRe: Request headers not received in REST mock service after deploying in server
Server type: Apache tomcat def requestBody = mockRequest.getRequestContent() def abc_1= mockRequest.request.getHeader('abc').toString() Using the above way, i am fetching the header and storing it in a variable.3.4KViews0likes7CommentsRe: Mock service Content type is changing to text/plain when i deployed my mock service in server
Thanks a lot.. However, where should i mention this in my script? Actually, when i hit from soap ui, i could see application/json in content type in raw tab. And even i checked my xml file deployed in server and i could see that media type is mentioned as application/json. Could you please let me know where should i mention this accept header? in groovy script or in server?1.7KViews0likes1CommentMock service Content type is changing to text/plain when i deployed my mock service in server
I had developed a REST mock service. When i tested in my local using soap ui, it is working fine. As soon as i have deployed my mock service to server, i am not able to read my header part. i am able to read the header if i hit the end point using soap ui, however i am not able to read the header if my other component hits the endpoint directly or via postman.1.7KViews0likes3CommentsIs there any way to fetch my xml file from my local in a sequential manner
I am fetching my xml requests from my local using groovy script and getting responses. And i am using property transfer to JDBC request for validation. But the requests are not fetched in the sequential manner. I want to fetch my xml file based on the name. example: req1.xml req2.xml req3.xml If i am having these 3 xmls in my local, then i need my script to fetch req1.xml first, then req2.xml and so on... Is there any way to do this?656Views0likes1Comment