Skip to Content
1
Former Member
Jun 07, 2013 at 04:59 AM

Issue with login into the BI Platform Server Using REST Web Services SDK

810 Views

Hi

I am trying to run the following command on SP5 Patch8

curl -i -X "POST" -H "content-type: application/xml" -H "accept: application/xml" -d "E:\login.xml" http://localhost:6405/biprws/logon/long | find "X-SAPLogonToken: " > xsaplogontoken.txtfor /f "tokens=1,2 delims= " %a in (xsaplogontoken.txt) do @echo %b > xsaplogontoken.txt

The output is

Access Denied

When i tried to run the following command its giving the error followed, I have place login.xml in E drive

curl -i -X "POST" -H "content-type: application/xml" -H "accept: application/xml" -d "E\login.xml" http://localhost:6405/biprws/logon/long

Output:


HTTP/1.1 401 Unauthorized
Server: Apache-Coyote/1.1
Date: Fri, 07 Jun 2013 02:59:20 GMT
Content-Type: application/xml
Content-Length: 3918

<error>
<error_code>RWS 000079</error_code>
<message>Please validate your input. (RWS 000079)</message>
<stack_trace>com.sap.bip.rs.exceptions.InvalidEntSessionException&#13;
at com.sap.bip.rs.exceptions.InvalidEntSessionException.InvalidInput(Inv
alidEntSessionException.java:99)&#13;
at com.sap.bip.rs.session.SessionFactory.getSession2(SessionFactory.java
:53)&#13;
at com.sap.bip.rs.infostore.LogonResource.doLongFormLogon(LogonResource.
java:231)&#13;
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&#13;
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)&#13;
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)&#13;
at java.lang.reflect.Method.invoke(Method.java:597)&#13;
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(Abst
ractInvoker.java:173)&#13;
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker
.java:89)&#13;
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:153)&#13;
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:87)&#13;
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInv
okerInterceptor.java:58)&#13;
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44
1)&#13;
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)&#1
3;
at java.util.concurrent.FutureTask.run(FutureTask.java:138)&#13;
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecu
tor.java:37)&#13;
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(Se
rviceInvokerInterceptor.java:106)&#13;
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
orChain.java:255)&#13;
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainIniti
ationObserver.java:113)&#13;
at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDes
tination.java:97)&#13;
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(
ServletController.java:461)&#13;
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletCont
roller.java:149)&#13;
at com.sap.bip.rs.server.servlet.BIPServletController.invoke(BIPServletC
ontroller.java:90)&#13;
at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCX
FServlet.java:148)&#13;
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(Ab
stractHTTPServlet.java:179)&#13;
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractH
TTPServlet.java:103)&#13;
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)&#13;
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(Abstract
HTTPServlet.java:159)&#13;
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)&#13;
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)&#13;
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)&#13;
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)&#13;
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)&#13;
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)&#13;
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
555)&#13;
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)&#13;
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:298)&#13;
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:852)&#13;
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:588)&#13;
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48
9)&#13;
at java.lang.Thread.run(Thread.java:722)&#13;
</stack_trace>
</error>

I am able to read the file successfully using

curl -G http://<serverName>:6405/biprws/logon/long -H accept="application/xml"

Please let me know what acn be the issue

Regards,

Praveen