Wow… this one really burned through a lot of my time. After many hours of trial and error and google digging, I finally found the trick that would read my service without errors.
Go to your web.xml file (this applies to eclipse) and scroll down until you find the following section:
<!– ============================================================== –>
<!– UI5 proxy servlet –>
<!– ============================================================== –>
<servlet>
<servlet-name>SimpleProxyServlet</servlet-name>
<servlet-class>com.sap.ui5.proxy.SimpleProxyServlet</servlet-class>
<init-param>
<param-name>com.sap.ui5.proxy.REMOTE_LOCATION</param-name>
<param-value>http://<your url>:<port></param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>SimpleProxyServlet</servlet-name>
<url-pattern>/proxy/*</url-pattern>
</servlet-mapping>
make sure your section looks exactly like the above, just change the blue text to be your sap server/port.
Thanks for reading,
As always, thanks for reading and don't forget to check out our SAP Service Management Products at my other company JaveLLin Solutions,Mike