Authorization error calling a XI web service from Web Dynpro
Hi all,
I'm trying to communicate to XI from a Web Dynpro application but I get an Unauthorization error (401).
I've generated a WSDL in XI and import it to web dynpro as a new Model. But when a I call the web service, the exception "Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized." appears.
I don't know how to pass the right user and password from Web Dynpro, I've tried the web service from SOAP client tools and it works fine.
I'll apreciate any help.
Regards,
Diego.
Hola mi nombre es Luis,
Creyendo que eres español te escribo en tal idioma.
He visto que a ti también te devolvía un error de autentificación 401, y que lo subsanaste, pero a mi con la solución que te dieron no me vale, ya que implemento el código que te ofrecieron para arreglarlo y ahora me da un fallo de "Server Error" poniendo en usuario y password, los correspondientes a XI.
+Request_MI_outTurnoverDetailsDisplay_MI_outTurnoverDetailsDisplay req=new Request_MI_outTurnoverDetailsDisplay_MI_outTurnoverDetailsDisplay();
wdContext.nodeRequest_MI_outTurnoverDetailsDisplay_MI_outTurnoverDetailsDisplay().bind(req);
req._setUser("username");
req._setPassword("password");+
No sé si es que ese usuario y contraseña son otros distintos.
Si pudieras ayudarme, te lo agradecería.
Un saludo, Luis
Similar Messages
-
Unable to consume secured Web service from a Dynpro application
Hello,
I have followed <a href="http://help.sap.com/saphelp_nw04/helpdata/en/c3/bac36a469e4c75aba646077e71516d/frameset.htm">this tutorial</a>
in order to protect and consume a secured Web service from a Dynpro application using SAP logon ticket.
The problem is that after implementing everything needed I receive 401 Unauthorized when I am trying to consume it from the web dynpro side.
If I manually transfer the request the credentials, before the execute i.e:
modObj._setUser
modObj._setPassword
modObj.execute();
I am able to call it, meaning the dynpro application doesn't transfer these credentials to the Webservice even though it's authentication property is set to true.
Any idea how to solve it?
Roy
Message was edited by:
Roy CohenTry below steps
Add jars
o security.class
o tc/sec/destinations/interface
Setting WebDynpro project property
o Project>Properties>Web Dynpro References-->Interface references
 Name=tcsecdestinations~interface
o Project>Properties>Web Dynpro References-->Service reference
 Name=webservices
 Name=tcsecdestinations~service
Dynamically Set httpdestination and Call web service
final InitialContext ctx = new InitialContext();
final DestinationService dstService = (DestinationService)ctx.lookup(DestinationService.JNDI_KEY);
if (dstService== null)
throw new NamingException ("Destination service not available");
final Destination destination = dstService.getDestination("HTTP"," DestinationName");
// getting user name
Properties destprop = destination.getDestinationProperties();
String username = destprop.getProperty("USERNAME");
String password = destprop.getProperty("PASSWORD");
final HTTPDestination httpDestination = (HTTPDestination) destination;
HttpURLConnection httpConnection = httpDestination.getURLConnection();
String httpURL = String.valueOf(httpConnection.getURL());
Request_AdvLocationVer1ViDocument_getLocation obj=wdContext.currentRequest_AdvLocationVer1ViDocument_getLocationElement().modelObject();
obj._setUser( user );
obj._setPassword(pass);
obj._setEndPoint(httpURL);
obj.execute();
Rahul -
Calling a Siebel Business Service from an Excel Macro
Hi Everyone !!
I have a requirement where i have to call a siebel Business Service from an excel macro. Please help me with the code.
Regards,
AbhiHere's a starter for one:
Private Function ConnectToSiebel(sConnectString As String, sUserName As String, sPassword As String, _
oSiebel As SiebelDataControl) As Boolean
On Error GoTo ErrorHandler
' Uses the specified parameters to connect to the Data Control
Dim iErrCode As Integer
Set oSiebel = CreateObject("SiebelDataControl.SiebelDataControl.1")
oSiebel.Login sConnectString, sUserName, sPassword
If (oSiebel.GetLastErrCode <> 0) Then GoTo ErrorHandler
ConnectToSiebel = True
Exit Function
ErrorHandler:
MsgBox oSiebel.GetLastErrCode
ConnectToSiebel = False
End Function
The connect string passed takes the format:
host="siebel://<SERVER_HOST>/<SERVER_NAME>/PSCcObjMgr_enu"
You can then use the 'oSiebel' object as if it was the Application(). For example, Set oService = oSiebel.GetBusService("Blah")
Regards,
mroshaw -
Cannot call Siebel UCM Organization service from SOA 11g
Hi,
I am trying to call Siebel UCM Organization service from SOA 11g and getting the following error.
Unable to process SOAP Header child element 'wsse:Security' with 'mustUnderstand="1"'(SBL-EAI-08000)
Please let me know if anybody has solution for this issue?I am using this URL : api.geonames.org/postalCodeSearch?postalcode=90110&username=siddhardha
I see below message in audit trail.Not sure why the headers are not visible.
Am i missing something which is very fundamental.?
<messages>
<Rest_InputVariable>
<part name="Input">
<Input>
<postalcode>90110</postalcode>
<username>Siddhardha</username>
</Input>
</part>
</Rest_InputVariable>
<Rest_OutputVariable>
<part name="geonames">
<geonames>
.....results.............
</geonames>
</part>
</Rest_OutputVariable>
</messages>
Edited by: Siddhardha M on Jul 19, 2012 5:44 AM -
How can we call a OSB proxy service from a BPEL process?
Hi,
I want to call a OSB proxy service from a BPEL process. Can you please explain me the procedure?Get the wsdl of the OSB proxy service and create webservice parnerlink in BPEL based on this wsdl to invoke the service
To form the wsdl url, copy the Endpoint URI configured to the proxy service(just click on the proxy service in the console) from the sbconsole - /ATHGPUM_GlidePathService/ProxyService/ATHGPUM_GlidePathProxyService
Pre append <<protocol://OSB Hostname:OSB Port>> - http://localhost:8000/ and post append with ?WSDL
The final WSDL url look like - http://localhost:8000/ATHGPUM_GlidePathService/ProxyService/ATHGPUM_GlidePathProxyService?WSDL
Regards
Albin I -
Calling an MFL business service from a WSDL proxy service
Hi,
I'm using Service Bus v2.6, and trying to call an MFL business service from a wsdl based proxy service.
I have done the following so far:
- Define an MFL-based business service that writes MFL messages to a JMS queue and reads reply messages off another queue, and it works when I debug this business service by itself.
- Define a wsdl proxy service that routes requests to the MFL business service.
Since the tutorials don't have MFL examples, I'm struggling to get this working. I've tried different ways, but no luck.
Here's my definition of the route node in the Proxy Service at the moment.
1. Call a custom XQuery (.xq file) to convert incoming message to an XML representation of the MFL message, and assign the result to a variable "param1"
2. Use "Service Callout" to call the MFL business service, and set Request Document Variable to "param1" and Response Document Variable to "param2".
When I debug the flow, param2 (reply) comes up as empty, and I don't know how to make it work.
I've turned on the JMS trace etc and the JMS bit is working (i.e messages being written, and read by the business service).
There seems to be something wrong with the way I call it from the proxy service.
Any help would be much appreciated..
ThanksHello,
Can you indicate the classpath that you use to run your client, version of weblogic and the version of jaxrpc api that you are using.
As a quick experiment adding the jaxrpc jar files to your classpath one at a time.
This [url http://www.javaworld.com/javaforums/showflat.php?Cat=&Board=Enterprisejava&Number=3801&page=12&view=collapsed&sb=9&o=&fpart=1]chap seemed to have a similar problem to you and solved it by adding the jaxprc-spi jar file to his class path. It may be that the jaxrpc-impl is causing you greif.
Also see this thread:
http://forums.bea.com/bea/message.jspa?messageID=200612003&tstart=0
Hussein Badakhchani
www.orbism.com -
Error While Deploying A Web Dynpro Appln thru NWDS
HI,
I am getting an error while deploying a Web Dynpro Application through NWDS.Following is the Exception
Aborted: development component '<ComponentName>'/'local'/'LOKAL'/'0.2006.07.26.15.06.05':Caught exception while checking the login credentials for SAP J2EE Engine. Check whether the SAP J2EE Engine is up and running.com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [sapsbx28] with user name: [J2EE_ADMIN] Check your login information. Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot authenticate the user.] (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMEXC)
When i give a request for deployment it asks for the SDM password. I enter a valid SDM pwd. If i enter a invalid SDM pwd i get some other exception. So the pwd SDM entered by me is correct.
can any one help me in solving this
regards
Nilesh TaunkHi Nilesh,
Try opening Visual Admin if your not able to login with username(administrator) and password. Problem with NWD2004s do the following steps.
C:\usr\sap\J2E\JC01\j2ee\configtool->configtool.bat->open it
1. Click on Secure store
2. Right you will find :
admin/password/J2E->retype your admin passowrd which you gave during installation=>SAVE properly
Restart the server and try login visual admin
Deploy now...Other wise see this thread same error solved:
Re: An Deploy Problem about Credentials.
Regards
Suresh -
I am getting a error while executing the Web Dynpro Application Page.
Hi All,
I am getting a Error while executing a web dynpro application :::
: Navigation in Phase WDDOMODIFYVIEW Cannot Be Triggered. Component: Z_WEP_PERSONAL_DATA, View: OVERVIEW, Window: Z_XXP_PERSONAL_DATA
I have checked this error description in ST22 :
What happened?
The exception 'CX_WDR_RT_EXCEPTION' was raised, but it was not caught anywhere
along
the call hierarchy.
Since exceptions represent error situations and this error was not
adequately responded to, the running ABAP program
'CL_WDR_CLIENT_APPLICATION=====CP' has to be
terminated.
Error analysis
An exception occurred which is explained in detail below.
The exception, which is assigned to class 'CX_WDR_RT_EXCEPTION', was not caught
and
therefore caused a runtime error.
The reason for the exception is:
Navigation in Phase WDDOMODIFYVIEW Cannot Be Triggered. Component:
Z_XXP_PERSONAL_DATA, View: OVERVIEW, Window: Z_XXP_PERSONAL_DATA
Can u plz help me regarding this error.
Thanks,
Deepika>Navigation in Phase WDDOMODIFYVIEW Cannot Be Triggered
Looks to me like you are trying to fire a navigation plug within WDDOMODIFYVIEW. According to the rules of the WD Phase Model this is not allowed. -
Call a ABAP Web-Dynpro-application via a BSP-Application
We have a BSP-Framework, that call several applications among other things other BSP-Applications, ITS-Application and other systems. Now I want to integrate a ABAP Web Dynpro-Application.
For the moment I can call the ABAP Web Dynpro-Application from our application.
This application runs in the same session as the Framework (verify in transaction sm04).
When I want to call another application in the Framework, the session will be killed (no more sessions in sm04). This happens also, when I want to call the ABAP Web Dynpro-Application a second time.
I guess, that the ABAP-Framework thinks I want to go outside the system (for example www.google.de) and close the session. I found out, that this wouldn't happen, if the application were suspended. But I found no way to tell the application via a url-parameter to suspend.
Can someone help me?Thx for the tip,
but I can't firea suspend plug. Because I'm in BSP. I understand the docu so, that you have the option to call a other apllication like BSP from a ABAP Web Dynpro.
I want to call the ABAP Web Dynpro form BSP like this way.
1. Start BSP-Framework
2. Call ABAP Web-Dynpro-Application from BSP
3. Call another Application from BSP without automatically logout by unload ABAP Web Dynpro. (I have a chance to call the ABAP Web Dynpro again via url to suspend before I call the other app.)
Regards Stefanie -
Error calling a BizTalk WCF Service with WCFTestClient
I have published schema as a wcf service (WCF-CustomIsolated). I can browse to the wsdl from the local server and from my PC. I can call the service from a console application running on my pc, but when I attempt to add the service from the wcf test client,
I get the message:
Warning: No code was generated.If you were trying to generate a client, this could be because the metadata documents did not contain any valid contracts or servicesor because all contracts/services were discovered to exist in /reference assemblies. Verify
that you passed all the metadata documents to the tool.Warning: If you would like to generate data contracts from schemas make sure to use the /dataContractOnly option.
Was there a configuration step I missed?Hi Jeremy, probably not a configuration issue. I remember reading somewhere the inability of the client to consume the service in such scenarios. I am assuming metadata publishing is enabled. Will try and search the article I read.q
Praveen Behara
MCST : BizTalk Server 2006 R2, 2010
Yup, metadata publishing is enabled. I can browse to the wsdl. This is a pure message solution, so I'm using a custom disassembler pipeline component to receive the request and generate a response. When the wcf test client tries to add
the service, the execute method of my pipeline fires, which seems odd to me, because we're not actually making a request at this point, only trying to get the meta data I would think.
When adding the service, wcf test client's request has an action of
http://schemas.xmlsoap.org/ws/2004/09/transfer/Get with an empty body like this:
POST http://myserver/MyService/test.svc HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8
Host: myserver
Content-Length: 512
Expect: 100-continue
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2004/09/transfer/Get</a:Action>
<a:MessageID>urn:uuid:8bd3f321-0a94-44f1-9eb4-5575068cc408</a:MessageID>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
<a:To s:mustUnderstand="1">http://myserver/MyService/test.svc</a:To>
</s:Header>
<s:Body/>
</s:Envelope>
I'm assuming somehow the BizTalk receive location would have to be configured to behave differently under this circumstance instead of passing the message to the pipeline component... -
How to call third party validation service from self service page
Anyone can help me out on what needs to be done to call third party address validation service when button "Next" Personal Information page of Employee Self Service is clicked.
1. Writing Custom XXXAddressUpdateCO by extending AddressUpdateCO. XXXAddressUpdateCO's processFormRequest will validate the address using the third part service. This third party address validation service is in the DB where Oracle Apps is there.
To use this service from the controller, how can I set the new application module XXXAdressUpdateAMImpl where I will make call to this service and return the result yo Custom controller class.
Any suggestions?If your page does not have LOVs, then you can extend and substitute the AM. Thereafter include the code to invoke the third party validation from the AM.
Otherwise you may need to write the invoking code in the Controller itself.
Hope you got some clues. Let me know if you need more information.
Thanks
Sumit -
Looking for a beginner guide - Adaptive RFC call BAPI in Web Dynpro Java
Hi,
im new in SAP Developeing. I developed some basic web Dynpro applications (after some tutorials) and they are all working.
Now i want to build an Web Dynpro application with an adaptive RFC Model.
I already imported the adaptive RFC Modell with a function Model (BAPI Z_...) from the R3 System successfully.
But if i deploy the application i will get following error:
com.sap.tc.webdynpro.services.exceptions.TypeNotFoundException: type extern:mypackages.com.types.BapiModel:mypackages.com.types.Zmbs_Bapi_Dispo_Orderdata could not be loaded: com.sap.dictionary.runtime.DdException: TypeBroker failed to access SLD: Error while obtaining JCO connection.
at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getStructure(DataTypeBroker.java:305)
at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:234)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:671)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:449)
at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:387)
at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:416)
at com.sap.tc.webdynpro.progmodel.context.MappingInfo.getDataNode(MappingInfo.java:83)
at com.sap.tc.webdynpro.progmodel.context.MappingInfo.initMapping(MappingInfo.java:125)
at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:121)
at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.doInit(MappedNodeInfo.java:215)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:671)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)
at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:754)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:289)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
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:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Caused by: com.sap.dictionary.runtime.DdException: TypeBroker failed to access SLD: Error while obtaining JCO connection.
at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker$1.fillSldConnection(DataTypeBroker.java:90)
at com.sap.dictionary.runtime.ProviderFactory.internalResolveLogicalNameToJCODestination(ProviderFactory.java:377)
at com.sap.dictionary.runtime.ProviderFactory.resolveLogicalNameToJCODestination(ProviderFactory.java:322)
at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:181)
at com.sap.dictionary.runtime.ProviderFactory.getProvider(ProviderFactory.java:146)
at com.sap.dictionary.runtime.DdDictionaryPool.getProvider(DdDictionaryPool.java:97)
at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:79)
at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:48)
at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:149)
at com.sap.dictionary.runtime.DdBroker.getStructure(DdBroker.java:180)
at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getStructure(DataTypeBroker.java:303)
... 49 more
Caused by: com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection.
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:152)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnectionUnMapped(SystemLandscapeFactory.java:178)
at com.sap.tc.webdynpro.services.sal.sl.core.SystemLandscapeInternal.getJCOClientConnectionUnMapped(SystemLandscapeInternal.java:62)
at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker$1.fillSldConnection(DataTypeBroker.java:77)
... 59 more
Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to load client to connect to SLD. Please check your SLD connection settings using the Visual Admin.
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory$1.run(SystemLandscapeFactory.java:754)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getClient(SystemLandscapeFactory.java:747)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.readJCODestinationFromSLD(JCOClientConnection.java:511)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:439)
at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:233)
at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:218)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:129)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:150)
... 62 more
Caused by: com.sap.sldserv.exception.SldServiceRuntimeException: Failed to create CIM client. Check via 'Visual Administrator' tool if the secure store is operational.
at com.sap.sldserv.SldApplicationService.getCimClient(SldApplicationService.java:117)
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory$1.run(SystemLandscapeFactory.java:751)
... 70 more
Caused by: com.sap.lcr.api.cimclient.CIMClientException: java.net.MalformedURLException: URL must have a host part
at com.sap.lcr.api.cimclient.ClientFactory.createConnection(ClientFactory.java:466)
at com.sap.lcr.api.cimclient.ClientFactory.createClientImpl(ClientFactory.java:413)
at com.sap.lcr.api.cimclient.ClientFactory.createClient(ClientFactory.java:363)
at com.sap.sldserv.SldApplicationService.getCimClient(SldApplicationService.java:113)
... 71 more
........Looks like a have a Problem with JCO.
Is there a good guide, which explains the Basic steps in developeing Web dynpro applications and BAPI ?!thank you guys for all the answers.I have to read all the documentations.
to my szenario:
I installed on my notebook the Trial Versions of:
SAP NetWeaver Application Server 7.00/Java AS 7.00
SAP NetWeaver Developer Studio Version: 7.0.14
All my basic Web Dynpro Applications in Java are running (even with Adobe Interactive Forms) on the local NetWeaver Trail- Web AS Trail perfectly.
Now i want to connect per RFC to another SAPERP Server, which is in the intranet.
I did the whole RFC tutorial with the flights -
http://help.sap.com/saphelp_nw04/helpdata/en/c3/76b45d9688e04abe1a1070410ddc1e/content.htm (also with the JCO codeing etc)
so my web dynpro application should work.
I think I have to configure - like ramesh said something on the NetWeaver Trail.
So what do i need and configure excactly on my Netweaver Trial to work with RFC - to call the BAPIS in the other System?
- SLD ? JCO ?
If i over Web Dynpro - Content Administrator - >
it says "Connection to System Landscape Directory (SLD) could not be opended successfully." and all the buttons
create Jco destinations etc. are greyed out.
I didn´t configured the SLD and JCO in the Netweaver yet. -
Error message display in web dynpro application?
Hi All,
In my web dynpro application I am displaying error messages but the focus does not go to the field where error occured and also if I click on the error message it does not lead to the place of error.
And also when I navigate to another view the error message does not go.
Below is my code:
* report message
DATA err1_text TYPE syst-msgv1.
err1_text = wd_assist->if_wd_component_assistance~get_text( key = '002' ).
CALL METHOD lo_message_manager->report_t100_message
EXPORTING
msgid = 'ZAA'
msgno = '005'
msgty = 'E'
p1 = err1_text
RECEIVING
message_id = lo_text.
Please suggest me the way to do it.
Thanks & Regards
ArchanaHi,
I got your point.. in the BIND_TABLE( set_intiail_elemts = abap_true) change this to ABAP_FALSE.
Because of this you are gettng the intiial values. Eventhough your table has no BALNK/space records.
bind a single element
node->bind_table(
new_items = lt_year_list
set_initial_elements = abap_true ).
change as
bind a single element
node->bind_table(
new_items = lt_year_list
set_initial_elements = abap_false ).
You can use this code - I have tjhe dropdwon for projects event I'm doing the same.
navigate from <CONTEXT> to <PROJECT> via lead selection
lo_nd_project = wd_context->get_child_node( 'PROJECT' ).
***Gets the selected project id from drop down
if lo_nd_project is not initial.
CALL METHOD lo_nd_project->GET_LEAD_SELECTION
RECEIVING
ELEMENT = lo_el_project.
get all declared attributes
if lo_el_project is not initial.
lo_el_project->get_static_attributes(
IMPORTING
static_attributes = ls_project ).
change your code to
lo_nd_year_list = wd_context->get_child_node( name = wd_this->wdctx_year_list ).
***Gets the selected project id from drop down
if lo_nd_year_list is not initial.
CALL METHOD lo_nd_year_list->GET_LEAD_SELECTION
RECEIVING
ELEMENT = lo_el_year_list .
IF lo_el_year_list IS NOT INITIAL.
get single attribute
lo_el_year_list->get_attribute(
EXPORTING
name = `YEAR`
IMPORTING
value = lv_year ).
Regards,
Lekha. -
Testing thru NWDS: Error replaying a recorded Web dynpro java application
Hello Experts,
I am trying to test a web dynpro for java application using the record and replay facility provided in NWDS. I have gone through the documentation provided under the head "Testing Web Dynpro Applications in the Developer Studio" at help.sap.com
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/c1/c6213e225f9a0be10000000a114084/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/c1/c6213e225f9a0be10000000a114084/frameset.htm</a>
The testing seems pretty straight forward..
I am able to record a web dynpro application and it generates a test script file with extension .testscript but when i replay the generated test script it gives me the following error:
<b>-->Contacting XML Client on Server to get initial XML document.
ERROR: Contacted the Xml client on the J2EE Server, but did not receive an Xml document from it.
******************************</b>
or sometimes this error:
<b>-->Contacting XML Client on Server to get initial XML document.
ERROR: Cannot contact the XML Client on the J2EE Server.
******************************</b>
Seems like some configuration needs to be done at the J2EE server level enabling some XML service etc.
I will be highly obliged if someone can guide me how to remove this error and replay the recorded application..
Regards
SundeepHi all,
if anyone has any knowledge of this subject plz reply....
Regards
Sundeep -
Call Transaction in Web dynpro
Hi friends ,
how to call the sap transaction in web dynpro abap.
I am using the function module
CALL FUNCTION 'ABAP4_CALL_TRANSACTION '
EXPORTING
tcode = 'VA01'
in web dynpro abap
but i am getting error like fill all the required filed
please give suggestion.
Regards ,
krishnan R.Hi Krishnan,
You cannot call a transaction from WebDynpro ABAP. You can instead create an transactional iView in the portal. Go through this link for further information.
[http://help.sap.com/SAPHELP_NW04S/helpdata/EN/18/f96f4132f15c58e10000000a1550b0/frameset.htm|http://help.sap.com/SAPHELP_NW04S/helpdata/EN/18/f96f4132f15c58e10000000a1550b0/frameset.htm]
There are already many similar threads over the issue of calling a transaction from WebDynpro ABAP. Please try run a search in the previous forum threads. Below are a few such threads:
[https://forums.sdn.sap.com/click.jspa?searchID=18250003&messageID=5345700|https://forums.sdn.sap.com/click.jspa?searchID=18250003&messageID=5345700]
[call Transaction thru WB4A.|call Transaction thru WB4A.]
Regards,
Uday
Maybe you are looking for
-
SharePoint 2010 Search Error: "Internal server error exception"
Hi, We have a SharePoint 2010 Farm with 5 servers: 1 SQL Server Cluster 2 WFE 1 Index Server 1 Search Server Please see bellow a more detailed specification.Our DNS is using a Load Balancer It turns out that when it uses one WFE (SERVWFE05) it throws
-
So, I bought the iPod shuffle and when I plug it into my mac, the option of syncing doesn't appear. What do I do?
-
Keep footer in place, load pages above footer independently. Frames?
Hello everyone! I am building a website in Muse, with an animated navigation bar I've made in Edge Animate. The links in the navigation bar animate when clicked to just my logo, the title of the specific page, and a menu back button. Because this ani
-
Problem in running and installing iTunes
After every time I have installed iTunes it gives memessage "to help protect yourcomputer, windows has closed this program" I did change the Change DataExecution Prevention Settings. But after I closed the DEP screen it gives memessage "iTunes has e
-
Hi , My thinkpad has problems updating . It is a T61 with windows vista business. It cannot update any windows updates and when i reboot it is stuck for a day . the screen reads "configuring updates complete 0%, do not turn off computer ". any sugges