cancel
Showing results for 
Search instead for 
Did you mean: 

WebService - No Data Retruned...

Former Member
0 Kudos

I am calling the Sample BLT(xMII 12.0) as WebService. It should return a string (test message).

The SOAP request goes successfully, However, it is returning nothing. The same BLT works fine on xMII 11.5.

Here is the log:

HTTP/1.1 302 Found[\r][\n]"

"Server: SAP J2EE Engine/7.00[\r][\n]"

"Date: Mon, 04 Feb 2008 13:47:15 GMT[\r][\n]"

"Content-Type: text/plain[\r][\n]"

"Location: http://hostname:50000/logon/logonServlet?redirectURL=%2FXMII%2FSOAPRunner%2FTesting%2FVikas%2FSample...;

"Content-Length: 0[\r][\n]"

"Set-Cookie: saplb_*=(hostname_00)6230950; Version=1; Path=/[\r][\n]"

"Set-Cookie: JSESSIONID=(host_NWJ_00)ID1951078950DB10658293447650976044End; Version=1; Domain=domin; Path=/[\r][\n]"

Edited by: Vikas Gupta on Feb 4, 2008 7:59 AM

Accepted Solutions (0)

Answers (10)

Answers (10)

Former Member
0 Kudos

We are using xMII Version 12.0.0 Build(58).

Thanks Again

Vikas

Former Member
0 Kudos

Finally , we found the answer - The problem is seems like starting xMII12.0 for using BLT as WebService you are required to pass userId and password as part of SOAP Action. which is similar to WebServices on NetWeaver.

I wish, This should have been documented...

Thanks Sam for the pointers....

BTW, Sam Let me know - How should I assign you the points..

0 Kudos

Happy to help, just out of curiosity I was able to test the WS interface via SOAP UI and only needed to specify the credentials in the SOAP message. So I am curious if you are using v12.0.2 or a ramp-up version of xMII.

Sam

PS: The points should be radial buttons on the left of the forum page by our names.

Former Member
0 Kudos

Here is an update SOAP Request, Sorry but did not work too..

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">

<soap:Header/>

<soap:Body>

<XacuteRequest xmlns="http://www.sap.com/xMII">

<LoginName>vikasg</LoginName>

<LoginPassword>test123</LoginPassword>

<InputParams />

</XacuteRequest>

</soap:Body>

</soap:Envelope>

Thanks

Vikas

Former Member
0 Kudos

Another Log ---

HTTP/1.1 302 Found

Content-Length: 0

Set-Cookie: JSESSIONID=(host_NWJ_00)ID0128307850DB10850411046281628274End; Version=1; Domain=.domain Path=/

Date: Tue, 05 Feb 2008 20:47:07 GMT

Content-Type: text/plain

Server: SAP J2EE Engine/7.00

Location: http://hostname:50000/logon/logonServlet?redirectURL=%2FXMII%2FSOAPRunner%2FTesting%2FVikas%2FSample

0 Kudos

Vikas,

Here's the request XML in the SOAP body that I have...I have a feeling that the xmii namespace is what's causing your issue:

inside the soap body and envelope....

<XacuteRequest xmlns="http://www.sap.com/xMII">

<LoginName>Administrator</LoginName>

<LoginPassword>abc123</LoginPassword>

<InputParams />
</XacuteRequest>

Sam

Edited by: Salvatore Castro on Feb 5, 2008 4:17 PM

Former Member
0 Kudos

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xmii="http://www.sap.com/xMII">

<soapenv:Header/>

<soapenv:Body>

<xmii:XacuteRequest>

<xmii:LoginName>vikasg</xmii:LoginName>

<xmii:LoginPassword>test123</xmii:LoginPassword>

<xmii:InputParams/>

</xmii:XacuteRequest>

</soapenv:Body>

</soapenv:Envelope>

Former Member
0 Kudos

I have an administrator and Developer role on the xMII Server.

Do I need some other role too?

Thanks

Vikas

0 Kudos

No, xMII does not regulate System Security via the roles directly but allows customization of these roles via Security Services -> System Security where you can assign different priviledges to any of the NW UME roles. Be sure that you belong to a Role that is in XacuteRuntime. Is there any reason why you're not using the Message Listener interface in v12? You have much more control over how each message is handled.

Here's the help link: [http://help.sap.com/saphelp_xmii120/helpdata/en/45/6a862988130dece10000000a11466f/content.htm|http://help.sap.com/saphelp_xmii120/helpdata/en/45/6a862988130dece10000000a11466f/content.htm]

Hope this helps.

Sam

0 Kudos

Vikas,

Please post the XML document of your post body.

Sam

Former Member
0 Kudos

Sam,

Thanks for the response

Sorry, I don't see the 303 response code.

BTW, First Log Message is from SOAP Client and Second from xMII Log..

0 Kudos

Sorry it's a 302 but that is actually the same general type of "Redirection", make sure you are properly authenticating. The NetWeaver UME is a lot picker than the xMII v11.5 UME engine was.

Sam

0 Kudos

From the help documentation:

"The input parameter data structure includes authentication credentials that must be provided with the inbound request. The user name and password must have runtime permission on the SAP xMII server."

Located here: [http://help.sap.com/saphelp_xmii120/helpdata/en/44/847b251e4355cee10000000a1553f6/content.htm|http://help.sap.com/saphelp_xmii120/helpdata/en/44/847b251e4355cee10000000a1553f6/content.htm]

Hope this helps.

Sam

Former Member
0 Kudos

I am still out there wating for help ...

Please advice - what could be the possible cause...

0 Kudos

Looks like you're not authenticated....the 303 status is the redirect code but it is most likely back to the Security Login page with is HTML and not valid XML.

Sam

Former Member
0 Kudos

Another Update: I found the following error in the Log

Execution Exception: null

[EXCEPTION]

java.lang.NullPointerException

at com.sap.lhcommon.xml.XMLHandler.setNodeValue(XMLHandler.java:1180)

at com.sap.xmii.xacute.expressioneval.ExpressionEvalUtilities.AssignPropertyValue(ExpressionEvalUtilities.java:495)

at com.sap.xmii.xacute.engine.TransactionEngine.Eval(TransactionEngine.java:164)

at com.sap.xmii.xacute.core.Assign.Process(Assign.java:55)

at com.sap.xmii.xacute.engine.TransactionEngine.Process(TransactionEngine.java:104)

at com.sap.xmii.xacute.core.Action.Process(Action.java:77)

at com.sap.xmii.xacute.engine.TransactionEngine.Process(TransactionEngine.java:104)

at com.sap.xmii.xacute.core.ActionSequence.Process(ActionSequence.java:25)

at com.sap.xmii.xacute.engine.TransactionEngine.Process(TransactionEngine.java:104)

at com.sap.xmii.xacute.core.Conditional.Process(Conditional.java:27)

at com.sap.xmii.xacute.engine.TransactionEngine.Process(TransactionEngine.java:104)

at com.sap.xmii.xacute.core.ActionSequence.Process(ActionSequence.java:31)

at com.sap.xmii.xacute.engine.TransactionEngine.Process(TransactionEngine.java:104)

at com.sap.xmii.xacute.core.Conditional.Process(Conditional.java:27)

at com.sap.xmii.xacute.engine.TransactionEngine.Process(TransactionEngine.java:104)

at com.sap.xmii.xacute.core.ActionSequence.Process(ActionSequence.java:31)

at com.sap.xmii.xacute.engine.TransactionEngine.Process(TransactionEngine.java:104)

at com.sap.xmii.xacute.core.Repeater.Process(Repeater.java:78)

at com.sap.xmii.xacute.engine.TransactionEngine.Process(TransactionEngine.java:104)

at com.sap.xmii.xacute.core.ActionSequence.Process(ActionSequence.java:31)

at com.sap.xmii.xacute.engine.TransactionEngine.Process(TransactionEngine.java:104)

at com.sap.xmii.xacute.core.ActionSequence.Process(ActionSequence.java:31)

at com.sap.xmii.xacute.engine.TransactionEngine.Process(TransactionEngine.java:104)

at com.sap.xmii.xacute.engine.TransactionEngine.Execute(TransactionEngine.java:48)

at com.sap.xmii.servlet.Runner.service(Runner.java:171)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)

at com.sap.xmii.system.SecurityFilter.doFilter(SecurityFilter.java:97)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:384)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Former Member
0 Kudos

Just an update - I am able to call via XacuateConnecter...

http://hostName:50000/XMII/Illuminator?Server=XacuteConnector&Mode=Query&Transaction=Testing/Vikas/S...

Please advice...