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

DK3
Tera Contributor

Hi, 

 

I have uncommented line 3 & 4 and tested but the response is still throwing me error.

 

Let me know if the content type needs to change or modify ?

 

Thanks.