How to create endpoint in the creation of webservice in webdynpro for java
hi all,
I have created a EjbModule project in webdynpro. Now when i create a new > other>webservie--> virtual interface, it is asking for an endpoint. How to create this endpoint
Hi Pinki,
Chk this link..
http://help.sap.com/saphelp_nw04/helpdata/en/da/2bf042493ef54499a77394ef6be096/frameset.htm (Section abt Endpoints while Creating a Web Service for an Enterprise JavaBean)
GS
Similar Messages
-
How to create a node with attributes at runtime in webdynpro for ABAP?
Hi Experts,
How to create a node with attributes at runtime in webdynpro for ABAP? What classes or interfaces I should use? Please provide some sample code.
I have checked IF_WD_CONTEXT_NODE_INFO and there is ADD_NEW_CHILD_NODE method. But this is not creating any node. I this this creates only a "node info" object.
I even check IF_WD_CONTEXT_NODE but i could not find any method that creates a node with attribute.
Please help!
Thanks
GopalHi
I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
Note
The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
My code is like the following:
TYPES: BEGIN OF t_type,
CARRID TYPE sflight-carrid,
CONNID TYPE sflight-connid,
END OF t_type.
Data: i_struc type table of t_type,
dyn_node type ref to if_wd_context_node,
rootnode_info type ref to if_wd_context_node_info,
i_node_att type wdr_context_attr_info_map,
wa_node_att type line of wdr_context_attr_info_map.
wa_node_att-name = 'CARRID'.
wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
insert wa_node_att into table i_node_att.
wa_node_att-name = 'CONNID'.
wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
insert wa_node_att into table i_node_att.
clear i_struc. refresh i_struc.
select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
rootnode_info = wd_context->get_node_info( ).
rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
attributes = i_node_att
is_multiple = abap_true ).
dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
dyn_node->bind_table( i_struc ).
l_ref_interfacecontroller->set_data( dyn_node ).
I am trying to create a new node. That is
CONTEXT
- DYNFLIGHT
CARRID
CONNID
As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
Also I cannot define the structure in the ABAP dictionary because it changes based on condition
Message was edited by: gopalkrishna baliga -
How to insert into mysql the creation time and modification time from java?
first how?
Second what is better from create the date from java or do it from mysql?
thanks in advace
PedroOne way is to use the GetDate function in mysql. This will set the date as you insert data. insert into table(date) values(getdate())
Anytime you modifiy the table just call the function again and update its fields.
Dont know which is beter to do. In java or on the database side. -
Error while Uploading the docs into KM using webdynpro for java
In My view I have create a context node(ctx_va_FileData) with value attribute (ctx_va_FileResource) of type ,Resource.
Select the Simple Type, navigate to Dictionaries u2192 Local Dictionary u2192com.sap.ide.webdynpro.uielementdefinitions and select Resource.
In View part of Layout :Create one u201CFileUpload u201C UI with Create one LinkToAction IU element and assign u201CaUploadFileinto_KMu201D action to this action
Coding Part in Web Dynpro java
Step 1:
Go to the wdDoInit() method and paste the following code
public void wdDoInit()
//@@begin wdDoInit()
try {
IPrivateUploadFile_KMView.ICtx_vn_FileDataElement element = wdContext.createCtx_vn_FileDataElement();
if (element != null)
wdContext.nodeCtx_vn_FileData().bind(element);
}catch (Exception e) {
wdComponentAPI.getMessageManager().reportSuccess("Error: " + e.getCause().toString());
//@@end
Go to the onActionaUploadFileinto_KM and paste the following code
public void onActionaUploadFileinto_KM(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionaUploadFileinto_KM(ServerEvent)
msgMgr = wdComponentAPI.getMessageManager();
IPrivateUploadFile_KMView.ICtx_vn_FileDataElement element =
wdcontext.currentCtx_vn_FileDataElement();
IWDResource resource = element.getCtx_va_FileResource();
if(resource!=null){
try {
//To get the Current User
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
com.sapportals.portal.security.usermanagement.IUser ep5User =
WPUMFactory.getUserFactory().getEP5User(sapUser);
ResourceContext resourseContext = new ResourceContext(ep5User);
//Portal KM Path
RID pathRID = RID.getRID("/documents/SDN"); //Root Directory
IResourceFactory resourseFactory =
com.sapportals.wcm.repository.ResourceFactory.getInstance();
ICollection collection = (ICollection)resourseFactory.getResource(pathRID,
resourseContext);
//Read the File
InputStream stream = resource.read(true);
String resourceName = resource.getResourceName();
String resourceExtn = resource.getResourceType().getFileExtension();
//KM Content
Content cont = new Content(stream,"application/octet-stream",-1,"UTF-16");
//create a file in above mentioned path in KM
com.sapportals.wcm.repository.IResource new_resource =
(com.sapportals.wcm.repository.IResource)collection.
createResource(resourceName, null, cont);
//Get the File length
long contentLen = new_resource.getContent().getContentLength();
//If no data in file
if(contentLen <= 0){
msgMgr.reportException("No data in file" , true);
}else {
msgMgr.reportMessage(IMessageUploadFile_KMComp.SF__UPLOAD,
new Object[] {resourceName},true);
} catch (NotSupportedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (AccessDeniedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (WDUMException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ResourceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ContentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (UserManagementException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}else
msgMgr.reportException("No file Selected ,Browse the file!",true);
element.setCtx_va_FileResource(null);
}//End of Action
But in the onActionaUploadFileinto_KM part IUser is deprecated and i m stuck at that point.
Plz provide me the solution and is there ant alternative solution for this and MY Portal is EP6 Nwds version is 7.0.9Hi Sukalyan,
Have you checked the below links?
These will give you step by step implementation procedure.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af0e9?quicklink=index&overridelayout=true
http://wiki.sdn.sap.com/wiki/display/WDJava/KmuploadusingWebdynproapplication
Regards,
Sandip -
How do I create both endnotes and footnotes in same doc in Pages? I have iWork 2008. I understand how to create one or the other, but not both.
You have to select one or the other.
Try making two documents and see if you can merge the .pdfs, but their will be problems with page flow, making the pages shift. Can't see it working really.
Pages is not the only solution out there or the best for most jobs (let alone the safest). Try Word for Mac, LibreOffice (free) or any App that has the features you need.
Peter -
How to creat a Business System and Tech System in SLD for the DB2 DataBase?
Hi,
How to creat a Business System and Tech System in SLD for the DB2 DataBase?
JosephHi,
Technical System
In SLD, click on technical landscape->New Technical System->WebAS ABAP.
Business System.
1.Goto Business Landscape->New Business System->Name the business system.
2. Choose the technical system that needs to be attached->WebAS ABAP->Technical System Name.
Go Through this links..
TBIT41:
https://websmp201.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT41&LANGUAGE=
TBIT42:
https://websmp206.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT42&LANGUAGE=
TBIT43:
http://www50.sap.com/useducation/curriculum/course.asp?cid=60161651
TBIT44:
https://websmp102.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT44
Also try elearning.
https://www.sdn.sap.com/irj/sdn/elearn
Thanks,
Satya Kumar -
How to creating TreeModel of the underlaying drives
can anybody plz tell me how to creating TreeModel of the underlaying drives. so that we get the entire tree structure of the drives like window explorer.
This thread will get you started.
http://forum.java.sun.com/thread.jsp?forum=57&thread=457526 -
How to create links to the same page, how to create links to the same page
How to create link to the same page with iweb?
ThanksYou're referring to anchors. There are a couple of ways. These topics discuss them:
iWeb FAQ - Anchors
How do i hyperlink to certain portion...: Apple Support Communities
OT -
How to create and manage the log file
Hi,
I want to trace and debug the program process.
I write the code for creating log file and debugging the process.
But i am not able get the result.
please help me how to create and manage the log file.
Here i post sample program
package Src;
import java.io.*;
import org.apache.log4j.*;
import java.util.logging.FileHandler;
public class Mylog
private static final Logger log = Logger.getLogger("Mylog.class");
public static void main(String[] args) throws Exception {
try {
// Create an appending file handler
boolean append = true;
FileHandler handler = new FileHandler("debug.log", append);
// Add to the desired logger
Logger logger = Logger.getLogger("com.mycompany");
System.out.println("after creating log file");
catch (IOException e)
System.out.println("Sys Err");
}Please give the your valuable suggesstion... !
Thanks
MerlinRoshinaJust i need to write a single line in log file.
-
How to create and see the user interface of helloworld sample??
hello friends,
i have deployed the hello world sample
now i want to know how to create and see the user interface of hello world sample.
thanks and regards..If you go to bpel console host:port/BPELConsole (in a dev install, localhost:9700), click on your process, we will generate, based on the describing wsdl a UI for you ..
hth clemens -
Hi guys,
How to create or generate the index category?.
From the posts of this forum I have read more things but anything works:
reports:
-RSRETT02
-RCF_INITIALIZE_KPRO
-RSTIRIDX_INDXCAT_RETRIEVE
Can anyone show me the way?
Thanks in advance.Hello,
If you haveat least Version 7.10.18 then KPro configurations are no longer required. Did you activate Business Function HCM_ERC_SES_1 as this is required for SES? The scenario to choose will depened on whether you are making a new implementation, upgrading without use of SES before or upgrading after using SES with earlier versions. Scenario 1 is for when you have activated HCM_ERC_CI_3 after using earlier versions with HCM_ERC_SES_1 already activated. Scenario 2 is for those who have upgrade and activated HCM_ERC_CI_3 but where using search without SES in their earlier version. Last scenario is when you are making a new e-Recruiting implementation (not upgrading). Also check notes 1426757 and 817145.
When you try to search are you getting an error? Can you check in SLG1 transaction after trying to search and post the error messages. Also can you execute report RCF_CHECK_SEARCH_SETTINGS as it will point you to the missing configurations points if any based on your version.
Regards, -
How to Create IView with the HTML Content
Hi Friends,
Give me steps how to create IView with the static html file.
Regards,
Lakshmi Prasad.Hello thr...
follow the below link for the required steps.
[KM Document iView|http://help.sap.com/saphelp_nw04/helpdata/EN/fc/cf14bcd42911d5994400508b6b8b11/frameset.htm]
You need to upload the document onto KM. Then you will be able to create the KM Document iView.
Cheers!!!
Biroj Patro. -
How does my spouse get the benefits of using my iCloud for contacts and calanders but not messages, etc?
iCloud is designed for personal use and not for managing multiple access. If you gives your password to someone else, this person can benefit everything including access to purchase with your account, email, etc.
You should rather consider having each one an iCloud account and then, create and share a calendar. As for contact, you can send them to your spouse to be save in her account but they cannot be shared nor synced. -
How to print/list all the groups/users present in Weblogic using Java code
Hi,
Weblogic version : 11.1.1.5
How to print/list all the groups/users present in Weblogic using Java code
I want to make a remote connection to Weblogic server and print all the users/groups present in it.
I have gone through the below mentioned site, but I cannot use the same approach since most of the API' are deprecated for example "weblogic.management.MBeanHome;"
http://weblogic-wonders.com/weblogic/2010/11/10/list-users-and-groups-in-weblogic-using-jmx/
Thanks in advance,
Edited by: 984107 on 05-Feb-2013 05:26
Edited by: 984107 on 05-Feb-2013 22:59see this http://www.techpaste.com/2012/06/managing-user-groups-wlst-scripts-weblogic/
Hope this helps. -
How to insert text in the middle of an existing textfile using java
Hi,
How to insert text in the middle of an existing textfile using java i/o streams??Mickie wrote:
I shudn't delete the file...Then you will have the old file and the new file - do you want that?
and I have to insert text not only at a single place ....got to do at many places in the text file!!then extrapolate on the procedure outlined in reply #1 .
Maybe you are looking for
-
Öffnen von Fotos in Photoshop Elements
This discussion has been automatically generated for: http://help.adobe.com/de_DE/lightroom/using/WS30BB1A73-0A01-4072-978C-56C8DE443A03.html.
-
Customization for open item managment
Dear, I am fascing problem in customzing the open item managment in SAP fico. Please suggest me how I will do this. With Regards, sitansu
-
HI, I have bought the ox s lion software from apple as a download some time ago and I have had no problems using it. However, I'm now trying to install it on another mac I have, but I cannot find the software on the original system. I have looked in
-
Hi i am working on a solarsystem (have to finish this for university) My Problem is: I have to jump to a selected Planet, but i can't get the current Coords. I tryed to get them already with getLocalToVworld but on the Console i get: Transform3D: 1.0
-
Iteration in JSF without a TABLE tags.
How to iterate in JSF? We may use a cool "dataTable" control, but it generates an HTML table. It's a nice solution for the table, but what to do if we needn't TABLE-TR-TD tags? (just to display something delimitered by <br> etc.) Regards, Oleksa Stel