Hello,
Today I have found a problem with connection to NetSuite web service.
Integration fails on NetSutie login:
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html
at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:142)
at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:118)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:175)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
at sps.suitelink._2012_1.proxy.runtime.NetSuiteBinding_Stub.login(NetSuiteBinding_Stub.java:2025)
After some research I found that NetSuite service responds with 302 http status code:302 Moved Temporarily
This document you requested has moved temporarily.
It's now at https://webservices.na1.netsuite.com/dcrf.nl?k=d29.....24&dcrdt=%2Fservices%2FNetSuitePort_2012_1&dcid=001&dch=0eb2........a32cd3a17cd0463&NS_VER=2012.2.0&dcsid=gnwwQqJH5............7453
This problem reproduces on another server, but not on third one. What could be the reason of such behavior and can it be fixed?