Skip to Content
0
Former Member
Dec 12, 2013 at 08:33 PM

BOBJ Rest Service keep erroring out with RWS 000079

381 Views

Hi all, we are currently struggling with the issue trying to get a token from BOBJ REST services (http://TXLPHQSBOBJ01T.usdom1.ad:6405/biprws/logon/long)

We use curl as REST client and fire it up from Windows command with Administrator access. But unfortunately, we keep running into brick wall with the call returning RWS 000079 everytime. Not sure what happened. Below is the details of the how we call it, curl POST data and Java stack trace.

Here's my Curl command:

curl -v -i --trace-ascii trace -X "POST" -H "content-type: application/xml" -H "accept: application/xml" -d "@cr.xml" http://TXLPHQSBOBJ01T.usdom1.ad:6405/biprws/logon/long

And this is the content of the cr.xml file:

<attrs xmlns="http://www.sap.com/rws/bip">

<attr name="userName" type="string"/>user1</attr>

<attr name="password" type="string"/>5thtry</attr>

<attr name="auth" type="string" possibilities="secEnterprise,secLDAP,secWinAD,secSAPR3">secEnterprise</attr>

</attrs>

And here is the top few lines of the Java Stack Trace:

== Info: About to connect() to TXLPHQSBOBJ01T.usdom1.ad port 6405 (#0)

== Info: Trying 10.253.2.146... == Info: connected

== Info: Connected to TXLPHQSBOBJ01T.usdom1.ad (10.253.2.146) port 6405 (#0)

=> Send header, 232 bytes (0xe8)

0000: POST /biprws/logon/long HTTP/1.1

0022: User-Agent: curl/7.19.3 (i386-pc-win32) libcurl/7.19.3 OpenSSL/0

0062: .9.8j zlib/1.2.3

0074: Host: TXLPHQSBOBJ01T.usdom1.ad:6405

0099: content-type: application/xml

00b8: accept: application/xml

00d1: Content-Length: 267

00e6:

=> Send data, 267 bytes (0x10b)

0000: <attrs xmlns="http://www.sap.com/rws/bip"><attr name="userName"

0040: type="string"/>Administrator</attr><attr name="password" type="s

0080: tring"/>nustar01</attr><attr name="auth" type="string" possibili

00c0: ties="secEnterprise,secLDAP,secWinAD,secSAPR3">secEnterprise</at

0100: tr></attrs>

<= Recv header, 27 bytes (0x1b)

0000: HTTP/1.1 401 Unauthorized

<= Recv header, 27 bytes (0x1b)

0000: Server: Apache-Coyote/1.1

<= Recv header, 37 bytes (0x25)

0000: Date: Thu, 12 Dec 2013 15:40:25 GMT

<= Recv header, 31 bytes (0x1f)

0000: Content-Type: application/xml

<= Recv header, 22 bytes (0x16)

0000: Content-Length: 4356

<= Recv header, 2 bytes (0x2)

0000:

<= Recv data, 2774 bytes (0xad6)

0000: <error>

0009: <error_code>RWS 000079</error_code>

0032: <message>Please validate your input. (RWS 000079)</message>

0073: <stack_trace>com.sap.bip.rs.exceptions.InvalidEntSessionExce

00b3: ption&#13;

00bf: .at com.sap.bip.rs.exceptions.InvalidEntSessionException.Invalid

00ff: Input(InvalidEntSessionException.java:63)&#13;

012f: .at com.sap.bip.rs.infostore.LogonResource.doLongFormLogon(Logon

016f: Resource.java:261)&#13;

0188: .at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)

01c8: &#13;

01cf: .at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe

020f: thodAccessorImpl.java:25)&#13;

022f: .at java.lang.reflect.Method.invoke(Method.java:597)&#13;

026a: .at org.apache.cxf.service.invoker.AbstractInvoker.performInvoca

02aa: tion(AbstractInvoker.java:173)&#13;

02cf: .at org.apache.cxf.service.invoker.AbstractInvoker.invoke(Abstra

030f: ctInvoker.java:89)&#13;

Here's what I think, but I dont know why it is not working though:

1. It seems the curl reads in the xml payload just fine

2. For same reason when it comes to one of Java modules, it throws off an exception for invalid input. There is no specific as to what is invalid

3. I have checked in CMC that the user is valid and I can login just fine either to CMC or Launchpad using the same credentials

I am curious as to what went wrong with the xml file that you feed to Curl. Anything that you fixed in the file? Does BOBJ have different set of web service users that are different from the CMC's?

BTW, our BOBJ is a trial version, not sure if that makes a difference.

Any help is appreciated.

Franz