SOAP API Response- HTTP 415 Error

DK3
Tera Contributor

Hi all, 

I was trying to hit an application through SOAP LogOn method, but i am getting response as "Method failed: (/services/BIDataService) with code: 415". I see that many posts are suggesting to add content type tag but i am not sure whether the below screen shot has right tag or not ?

When i tried to LogOn from SOAP UI, the response was successful and i can see my expected result. 

What am i missing in the below code ??

Thanks!

find_real_file.png

 

5 REPLIES 5

Mike Patel
Tera Sage
Try using mid server. Your endpoint might not be open on internet.

ARG645
Tera Guru

Q: whether the below screen shot has right tag or not ?

Suggestion: content-type tag is commented in the request. Please uncomment it and try to run it with proper content type values.

The HTTP 415 Unsupported Media Type client error response code indicates that the server refuses to accept the request because the payload format is in an unsupported format. Your request did hit the Server, so you dont need to assign a MidServer. 

DK3
Tera Contributor

Hi Aman.

I have tried with content-tag as well, but the output is still same.  

Did you use the correct content type values ? Please paste the screen shot.