I run following code on Netbeans as well as Eclipse ID and it worked perfectly.
When i take code to runtime environment(say MuleRuntimeEnvironment) it is returning
java.io.IOException: Server returned HTTP response code: 405 for URL: http://100.91.17.170:81/Orch21/Orchr.svc/Jobs/
That URL accepts GET as well as POST. I have tested that by changing request method to PUT
What could be the reason for same? any workaround required in Code? or is this Runtime related issue?