Ask a Question

REST Service is not working in SOAPUI. Giving response as 500-Internal server error.

SOLVED
sudhahar
Occasional Contributor

REST Service is not working in SOAPUI. Giving response as 500-Internal server error.

Hi,

I have created a REST Service using JDeveloper. When I test this REST service using SBConsole it works as expected but when I test through SoapUI, 500-Internal server error. Attached the OSB Application as well as the SoapUI project.

Please let me know what's going wrong here.

 

Thanks,

Sudhahar

12 REPLIES 12
Lucian
Community Hero

Hey, I can't find your attachements in the post. Can you please revise this?



If my answer helped please click on the 'Accept as Solution' button.
sudhahar
Occasional Contributor

Hi Lucian,

 

Please find the attached OSB application as well as SoapUI Projects.

 

Thanks,

 

I managed to import the SoapUI project and send a post request. I am getting an Unknown host exception. I am not sure what to do with the other zip file. Can you help me out?



If my answer helped please click on the 'Accept as Solution' button.
sudhahar
Occasional Contributor

Hi Lucian,

 

The other one is a OSB application. If you have JDeveloper and server set up then you can unzip it open the REST_Example.jws. But you should be familiar of OSB developement..

 

Thanks,

Sudhahar.S

Unfortunately I don't have experience with OSB. Can you maybe upload the raw request/ response to see if there is a clue in there? 

 

Also... 500 is quite a generic error. Can you check the logs of the application  you are trying to reach to see if there is anything in there?



If my answer helped please click on the 'Accept as Solution' button.
richie
Community Hero

Hi @sudhahar

 

 

You're using the OSB which I have lots of experience of - however depending what you are testing and how you are testing makes a big difference in analysing your issues.

 

e.g. I'm guessing its publish/subscribe so asynchronous - is this correct?

if asynch, are you posting to a test API created to support your asynch calls or are you posting straight to adaptor? or are you bouncing a message off a Queue/Topic first?

 

Sorry - I can't really help without a lot more info - I'm not using the OSB on my current project, I'm using Mulesoft ESB so I can't load in your .zip file I'm afraid.

 

Cheers,

 

richie

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
sudhahar
Occasional Contributor

Hi Lucian,

 

Thanks for this.

 

I have already shared the SoapUI project. You can load that project in to SoapUI. Otherwise you can load the WADL from \REST_Example\RESTExample\Resources\Rest_Json.wadl. It will create the REST project as well as prepopulate the request. 

 

Thanks,

Sudhahar.S 

sudhahar
Occasional Contributor

Hi Richie,

 

Yes it's OSB project. I am having one proxy service and pipeline. Just sending the input through Proxy and printing it in pipeline.It's a small esample code.

 

 

Thanks,

Sudhahar.S

sudhahar
Occasional Contributor

Hi All,

 

Sorry for the confusion. It's our DEV environmental issue because the same code works as expected in SIT environment.

 

Thanks for your time.

 

Kind Regards,

Sudhahar.S

cancel
Showing results for 
Search instead for 
Did you mean: