cancel
Showing results for 
Search instead for 
Did you mean: 

2 mock responses to the same service, 2nd gives a 500 response

Dear Community, API Masterminds week 4 has started!

Participate in the exciting online event by posting questions or replies and win! During the entire March, we decide top contributors each week and reward them with great gifts . Congratulate the winners of Week 3 here.
Week 4 task: Ask more questions, bring interesting topics and reply to existing ones in the ReadyAPI Community
Topics to participate in:
See All
Week 4 Leaders:
Members with the biggest number of posts
sonya_m 16 posts
nmrao 14 posts
HimanshuTayal 12 posts
pizzaTime 1 posts
richie 1 posts
Highlighted
New Contributor

2 mock responses to the same service, 2nd gives a 500 response

I have two consecutive mock response test steps, both mocking the same service. 

The callout to the first mock response test step from my application appears to work fine, except that the asserts in the test step are not checked.

The application's callout to the second test step results in a http-500 error as follows.


  BEA-382502
  OSB Service Callout action received an error response
 

   
      500
   

 

 
    Annuity Quotes Pipeline Pair Node
    Annuity Quotes Pipeline Pair Node_request
    Callout to AnnuityQuotesWebservice
    request-pipeline
 



Both mock response test steps have as their start step the case's initial test request test step that prods my application into action.

Any help with this would be appreciated.

Thanks

Mick.
7 REPLIES 7
Highlighted

Re: 2 mock responses to the same service, 2nd gives a 500 response

Hi Mick,

I'll try to reproduce this.. will get back to you..

regards,

/Ole
eviware.com


 Join the 2020 API Masterminds event in the ReadyAPI Community to demonstrate your excellent expertise, help people and win prizes! Start participating today!
Highlighted

Re: 2 mock responses to the same service, 2nd gives a 500 response

Hi Mick,

I just created a testcase with two mockresponse steps after eachother without setting any start-step, calling them worked fine from within soapUI.. are you using the latest nightly build? Try setting the second mockresponse steps startstep property to the one before it.. !?

regards,

/Ole
eviware.com


 Join the 2020 API Masterminds event in the ReadyAPI Community to demonstrate your excellent expertise, help people and win prizes! Start participating today!
Highlighted
New Contributor

Re: 2 mock responses to the same service, 2nd gives a 500 response

Hi Øle,
        I tried what omitting the start step but that didn't work.  (How do I get the overnight builds by the way?)

I've attached the soap_ui log, the error log and the project.

I seem to be getting a dispatch exception followed by an XML exception, unexpected end of file after null.  But I can't see anything wrong with the XML.

Hope this helps,

Mick.
Highlighted

Re: 2 mock responses to the same service, 2nd gives a 500 response

Hi!

the nightly build is at http://www.eviware.com/nightly-builds, please try it out as I remember this being an issue that has been worked on.

regards!

/Ole
eviware.com


 Join the 2020 API Masterminds event in the ReadyAPI Community to demonstrate your excellent expertise, help people and win prizes! Start participating today!
Highlighted
New Contributor

Re: 2 mock responses to the same service, 2nd gives a 500 response

Hi Øle,
          That didn't work either.  Running 2.5.2 I still get the exception ERROR:com.eviware.soapui.impl.wsdl.mock.DispatchException: org.apache.xmlbeans.XmlException: error: Unexpected end of file after null

I've included the log files for the run.  It is running the same project I uploaded on Friday.

Thanks,

Mick.
Highlighted
New Contributor

Re: 2 mock responses to the same service, 2nd gives a 500 response

Hi Øle,
        There might be some link between the mock response not being schema compliant.  However making the response schema compliant only seems to sort out some of these problems.  Sadly, all too frequently the web services we have to intergrate with are not schema compliant, hence we need to test against unsatisfactory reality.

Thanks,

Mick.
Highlighted

Re: 2 mock responses to the same service, 2nd gives a 500 response

Hi Mick,

sorry for the long delay here.. I'm still trying to reproduce this without any "luck".. could we set up an online meeting and look at this on your machine? Mail to support@eviware.com and we'll take it from there..

regards!

/Ole
eviware.com


 Join the 2020 API Masterminds event in the ReadyAPI Community to demonstrate your excellent expertise, help people and win prizes! Start participating today!
New Here?
Join us and watch the welcome video:
Join 2020 API Masterminds
We invite all lovers of API testing to participate in the API Masterminds event. Ask questions or help others by giving solutions and get rewarded.
>> Participate Today
Get Your Free Ticket
SBC2020
Top Kudoed Authors