Entity Services and Web Dynpro
Hi,
I want to implement a Web Dynpro with relation to a database (Entity Service and Application Services modeled with NWDS).
I used the following tutorial
, but when I want to add a "Used model", the selection list is empty and so its not possible to do that.
Why is it empty, I implemented exactly after the tutorial?
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8b7059da-0c01-0010-e09c-9ecabaf58864">Example Tutorial (Page 16)</a>
I really need help for that, because I want to implement a Info Callable Object, which shows Entries from the tables. The table should be filled within the actions, and so I need a relation to entity level.
Thanks in advance
Steve
Hi Steve,
In order to search the SDN forums effectively I suggest to:
- Select 'Forums' (top menu bar)
- Select topic of interest (in this case 'SAP NetWeaver > Developing Composites with CAF')
- Enter your search keywords not in the upper left but in the upper middle search box 'Forum Search'
This way the search is more likely to meet your expectations.
Regards,
Axel
Similar Messages
-
CAF DB Update for CAF Entity Service from Web Dynpro
Hi all,
I have created an entity service in CAF called Contacts which contains the following attributes.
phoneNo
cellNo
emailID.
Another entity service called "Person" is created. This contains the following attributes.
personId
personName
personAddr
contactsRef. (Cardinality -> 0..n , Relational Type -> Composition)
That means Contacts entity service is used within Person entity service. Now it is working fine within CAF service browser. Now the Web Dynpro DC of CAF application is used within another custom Web Dynpro DC project. I want to store data from Web Dynpro.
Within the context of component controller of Web Dynpro the structure is like
APerson
|_ personId
|_ personName
|_ personAddr
|_ contactsRef
|_ phoneNo (Under contactsRef)
|_ cellNo (Under contactsRef)
|_ emailID (Under contactsRef)
So I have written the following code within web dynpro custom method.
APerson person = PersonServiceProxy.create();
java.util.List ls = new ArrayList();
for(int i=0; i<4;i++)
AContacts contact = ContactsServiceProxy.create();
contact.setCellNo("9092130156");
contact.setEmailID("[email protected]");
contact.setPhoneNo("432258");
contact.getAspect().sendChanges();
ls.add(contact);
person.setRelatedModelObjects("contactsRef",ls);
person.setPersonID("9999");
person.setPersonName("xyz");
person.setPersonAddr("ABC, KOL");
wdContext.nodeAPerson().bind(person);
person.getAspect().sendChanges();
CAFServiceFactory.getServiceFacade(idendityDefinition.class);
After saving the data from Web Dynpro I am trying to test it from CAF service browser. But I am getting only the parent row. I mean only the value of personId, personName and personAddr fields which I have stored from Web Dynpro. But no value is coming within the table for Contacts entity service for composition relation.
Could anybody help me how can I solve my problem?
Thanks & Regards
Chandan
Message was edited by:
Chandan JashHi Chandan,
Can you do person.getRelatedModelObjects() and get the contact object, to check whether it is null, also check in the CAF DB whether the data you entered is present.
I am not sure the code is actually adding the contact model object to person.
Go thru this SDN Blog on usage of the CMI API's, there is a link for CMI documentation in it which might help you get the right code for adding the contact object.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115.
award points if info is helpful
Regards,
Anish -
Update Entity Service using Web Dynpro
Hi,
I am pretty new to Web Dynpro. I have defined an Entity Service which is working. With Web Dynpro I can create new entities using:
ASomething newSomething = SomethingServiceProxy.create();
newSomething.setX(x);
newSomething.getAspect().sendChanges();
Now I would like to update this entity and tried:
... wdContext.currentSomethingElement().modelOject();
mySomething.setX(y);
newSomething.getAspect().sendChanges();
unfortunately this is not working. The database is not updated. How to solve this problem?
Thanks in advance!
FelixHi
thanks for the answer, but I think you do not have to call serviceFacade.save() and unfortunately it did not help.
I found a solution, but I think it is more a work around. There should be a better option...
ASomething something = wdContext.currentSomethingElement().modelOject();
ASomething something2 = SomethingServiceProxy.read(something.getGuid());
something2.setX(y);
something2.getAspect().sendChanges();
using this coding the DB is updated.
Why is it not possible to call directly:
somethin.getAspect().sendChanges()
Thanks,
Felix
Message was edited by:
Felix Japs -
Hi,
I am learning about web services in java web dynpro. I follow some tutorial on how to create a web service in a java web dynpro using netweaver developer studio. The tutorial works (I think) because in the picture of my local development, I can see the web dynpro component and the model representing the web service. In the web dynpro explorer view I can see the model has been created and the method/service that can be called. But now I don't know how to go on calling these services by the web dynpro methods; can anybody please explain me or post me a link with a tutorial for this (that I did not find). Thanks in advance
GabrieleHi
Please go throught links
https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/faq%252b-%252bmodels%252b-%252badaptive%252bweb%252bservice
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d076c662-8c0f-2b10-8ca4-e63c26e2e489
Import Adaptive Web service Model
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e
hope will help you .
murali -
Error while calling a web service in web dynpro through XI
Hello,
I was following a blog for Invoking Webservices using SAP XI
/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
I have done all the steps specified but when I import the wsdl file in web dynpro application and deploy the project I get the following error:
<b>"Exception on execution of web service with WSDL URL 'bankws_OUT_MI.wsdl' with operation 'bankws_OUT_MI' in interface 'bankws_OUT_MI'"</b>
where:
bankws_OUT_MI -
is the message interface name.
I have defined a web service in the integration reopsitory as follows:
<b>http://PEP:50000/XISOAPAdapter/MessageServlet?channel=:bankws:s_comm</b>
where
bankws --- service name
s_comm -
sender communication channel
selected 'bankws_OUT_MI' message interface from the given choices
'bankws_IN_MI' or 'bankws_OUT_MI'.
interface name: bankws_OUT_MI -
mesage interface name
Can anyone guide me how to proceed further. Also if possible can anyone send me some helpful documentation regarding how to call a web service in web dynpro through XI.
Thanks in advance.
Regards,
Imtoolhello everyone,
I made the whole scenario again and it is running succusfully in Xml spy. Now when i call the webservice in web dynpro... I get the following error:
<b>com.sap.engine.services.webservices.espbase.discovery.BaseIOException: Invalid Response Code 200 while accessing URL: http://PEP:50000/XISOAPAdapter/MessageServlet?channel=:OOMS_WS_OUT:CC_OOMS_WS_OUT. Response Message: OK. Content Type: text/html; charset=utf8. Body Content: <html> <head><title>MessageServlet</title></head> <body> <h3>Message Servlet is in Status OK</h3> <h3>Status information:</h3> Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/xi/645_VAL_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#7 $) bound to /MessageServlet <br/>Classname ModuleProcessor: null <br/>Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean <br/>Lookupname for remoteModuleProcessorLookupName: null <br/>ModuleProcessorClass not instantiated <br/>ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0 <br/>ModuleProcessorRemote not instantiated </body></html></b>
I have also made the entry in the visual administrator for metadata_dest and execution_dest.
Does anybody have an idea what mistake i am doing.
Thanks,
Imtool -
Consuming External Web Services in Web Dynpro Java
Hi All,
I an trying to consume external web service in Web dynpro java using Adaptive Web Service Model.
But getting below mentioned error while executing the web service
Exception on execution of web service with WSDL URL 'D:\Web Service Project\CurrencyConvertor.asmx.xml' with operation 'ConversionRate' in interface 'CurrencyConvertorSoap'
Steps i followed are as below:
1. Created Adaptive Web Service Model for this i select WSDL source as "Local File System or URL"
In next step i select No logical destination radio button and click on next
In next step, browse the WSDL file and successfully import the WSDL file.
2. After successfully importing the WSDL file i wrote below code in Init method:
WebModel modelweb = new WebModel();
Request_ConversionRate reqConversion = new Request_ConversionRate(modelweb);
ConversionRate conversion= new ConversionRate(modelweb);
reqConversion.setConversionRate(conversion);
wdContext.nodeRequest_ConversionRate().bind(reqConversion);
3.After that execute the model - code is given below :
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.currentRequest_ConversionRateElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
wdContext.nodeConversionRateResponse().invalidate();
catch(Exception e)
manager.reportException(e.getMessage(), false);
Please let me know how to resolve this.
Thanks
SandyHi,
You need to use destinations for metadata and modeldata.
Configure those destination in Visula admin.
you can refer to following link.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7
Regards,
Shruti. -
What is best practice for calling XI Services with Web Dynpro-Java?
We are trying to expose XI services to Web Dynpro via "Web Services". Our XI developers have successfully generated the WSDL file(s) for their XI services and handed off to the Web Dynpro developers.
The Java developers put the WSDL file to their local PC's and import as "Adaptive Web Services" data models. When the application is constructed and deployed to our development box, the application abends because the J2EE server on that box cannot locate the WSDL file at runtime (it was on the developers box at, say, "C:\temp\" and that directory does not exist on the dev server).
Since XI does not have a way of directly associating the generated WSDL file to the XI service, where is the best place to put the WSDL so it is readable at design time and at run time? Also, how do we reconcile that we'll have 3 WSDL files for each service (one for Dev, one for QA and one for Prod) and how is the model in Web Dynpro configured so it gets the right ome?
Does anyone have any good guide on how to do this? Have found plenty of "how to consume a Web Service in Web Dynpro" docs on SDN, but these XI services are not really traditional Web Services so the instructions break down when it comes time to deploy.HI Bob,
As sometimes when you create a model using a local wsdl file then instead of refering to URL mentioned in wsdl file it refers to say, "C:\temp" folder from where you picked up that file. you can check target address of logical port. Due to this when you deploy application on server it try to search it in "c:\temp" path instead of it path specified at soap:address location in wsdl file.
Best way is re-import your Adaptive Web Services model using the URL specified in wsdl file as soap:address location.
like http://<IP>:<PORT>/XISOAPAdapter/MessageServlet?channel<xirequest>
or you can ask you XI developer to give url for webservice and username password of server -
Consume Web Service in Web Dynpro
Hi Experts,
I´m currently trying to learn web dynpro development.
Scenario: I have one component which embed two views. One view is for enter customer number and in the other view I will see the name of the customer. The name of this customer is provided in a sap erp2005. I have develop a function modul and wich gave me the appropriate data(customer name). Then I create a web service base on this function module.
When I test this web serviec in WSNavigator, I get the customer name, so the web service is working well.
My Problem is: I can´t invoke this Web Service in Web Dynpro. My steps to invoke web service were: create a model with the web service wsdl and then I add this model in the component (in "Used Models").
I have create a application and assign it to the component. When I "Deploy new archive and Run" the application I be come the error: "Configuration not found for application: demo.sap.com/test_wd3,serviceRefId:7fecf23b-0895-48f3-9902-0e7015a705c3. Please check the configuration details from the NWA. You may have not assigned the Service Group to a Provider System, or the generation of the configuration has failed."
What do I have to consider or to set up?
It is right to assign the input field to the context parameter?
PS: I have followed the steps in this tutorial, but I don´t use XI or PI
http://www.riyaz.net/blog/xipi-consuming-xi-web-services-using-web-dynpro-part-ii/technology/sap/7/
best regards
Anna von Landsberg
Edited by: Anna_von_Landsberg on Dec 8, 2010 4:48 PMHi,
I have the following message error:
Exception on execution of web service with WSDL URL
'http://j2eeserver:port/xxxx/Config1?wsdl'
with operation 'RequestNode' in interface
'urn:xxxxx'
When i debugged it, I found the following error:
Cannot find the required parameter [unTipoProducto] in request message content.
What is wrong?, I pasted the code of my method, that call to web service in the component controller.
public void Alta_Entrega( )
//@@begin Alta_Entrega()
String tipoProducto = wdContext.currentAlta_EntregaElement().getUnTipoProducto();
Request_Alta_Entrega entregaMO = wdContext.currentRequest_Alta_EntregaElement().modelObject();
if (!wdContext.currentAlta_EntregaElement().getUnTipoProducto().equalsIgnoreCase("")){
IWDMessageManager manager = wdComponentAPI.getMessageManager();
if (logger.beDebug()) {
entregaMO.wdSetInvocationLogEnabled(true); //switch on logging for this model object
try{
entregaMO.setInvokerProperty(Stub.USERNAME_PROPERTY,"xxx");
entregaMO.setInvokerProperty(Stub.PASSWORD_PROPERTY,"xxx");
entregaMO.execute();
wdContext.nodeResponse().invalidate();
wdContext.nodeAlta_Entrega().invalidate();
}catch (Exception e){
manager.reportException(e.getMessage(),false);
logger.debugT(entregaMO.wdGetRequestLog()); //request log (HTTP header + SOAP request)
logger.debugT(entregaMO.wdGetResponseLog()); //response log (HTTP header + SOAP response)
logger.debugT(entregaMO.associatedModelClassInfo().getModelInfo().toString()); //model metadata in XML format
logger.debugT(entregaMO.toString()); //model object tree in XML format (= model context node content)
I hope you can understand me, because my english is very bad!!.
Thank you. -
Consume XI web service in web dynpro application
HI All,
I have scenario access web service in web dynpro java, which is created by XI ..Now I have WSDL file. Using that WSDL file I have imported web service model(Adaptive web service method) in my web dynpro java.
By following the PDF document = https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7
I have created a Model as mentioned in the PDF.
Once model is created I have done the mapping from model to component controller, after that I need to execute the Web service model .For the execution I need to write a code in component controller :-
model class name = XIModel
XIModel obj = new XIModel();
Once I am done with the above coding , and when I try to run the application I get the following error :-
com.sap.engine.services.webservices.espbase.discovery.BaseIOException: Invalid Response Code 200 while accessing URL:http://atind037:50000/WSDL/GetPOPDF.wsdl. Response Message: OK. Content Type: content/unknown
Could you please help me with this at the earliest , as it is a urgent issue.
Regards,
Boopathi M.Hi boopathi,
It seems your wsdl url is not correct. Put the http://atind037:50000/WSDL/GetPOPDF.wsdl
in your browser and check whether you are getting the WSDLDefinitions in xml format or not ?
In wsdl url put ? instead of .
URL : http://atind037:50000/WSDL/GetPOPDF?wsdl
call adaptive web services mit Parameter
Regards,
Mithu -
CE 7.1 - How to call CAF services from Web Dynpro
Hi,
whats the suggested way to call caf services from web dynpro?
Of course I can use the Web Service model. But can I call caf directly?
I read something about caf web dynpro model, but I cannot find it in nwds 7.1. On some older tutorial it was in context menu of caf project, but it seems to be removed.
best regards
tomHi ,
The standard way is to use the web service model.
You have to expose the the services as web service and then you can use the wsdl url in the Adaptive web service model option.
The above option will be available when you click the Model in the webdynpro application and the click create new model.
Hope it helps you.
Regards,
Srinivasan Subbiah -
ERecruitment Services in Web Dynpro for Service Users
Hi,
I am currently setting up eRecruitment in integrated sytem with ehp3 and have created service user for Unregistered candidate and content server.I want to use Web Dynpro Services and need to know the Services in Web Dynpro to which Service users will be assigned in ICF.
Also let me know if in integrated System where Erec (support pack 14)& SAP HR are in One system ,Webdynpro can be used.
Edited by: poonamrtiwari on Feb 25, 2010 12:45 AMService with WD
-
Differences between ITS based and web dynpro based ESS
Hi all,
What are the main differences between ( in functionality ) for ITS based and web dynpro based ESS.
I know a few
Underlying technology
ITS ESS had inbox concept, where as web dynpro based ESS/MSS has UWL concept for approvals.
The time statemment in ITS uses smart form while we can use Adobe document services for time statement in ESS 2004.
Funcitonality
There was not collective time approvals option In ITS ESS ( not even in ESS 2004 ) but ther is a collective time apporvals in ESS 2004s
Am not pretty mich intrested in look and feel, or the overview page concept but any additional functionality and a shift in the technology used.
Please add.
regards
Sam
Message was edited by:
sameer chilama
Message was edited by:
sameer chilama
Message was edited by:
sameer chilamaanswered
-
How to call web services in WEB DYNPRO ABAP
Hi ABAPER'S,
Please let me know how to call web services in web dynpro.
Thanks,
Sandy.Hi Sandy,
Please check this blog..
/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
also cehck this...
call the webservices in webdynpro ABAP.
calling webservice in webdynpro component
Re: Web Services in WDA.
Cheers,
Kris.
Edited by: kissnas on May 24, 2011 11:37 AM -
Difference between ITS and web dynpro abap
Hi Experts.
Can any explain me what is the main difference between EWT/ ITS and web dynpro abap. Basically i am going to developed some existing EWT in webdynpro ABAP , so i want to know what are the advantage of WD ABAP over ITS .
Thanks in Advance.
SatyaClosing thread, thanks for your help.
Thanks,
Satya -
Difference between web dynpro java and web dynpro abap
Hi this is watson maureen,
I wnat to know what is the difference between web dynpro java and web dynpro abap?
thank
maureenHi watson,
Go through these links, you will get the difference between web dynpro java and web dynpro abap
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0e4940c-035c-2b10-0b9d-eb8f99674f4e
Web Dynpro: ABAP or Java?
Regards
Sreedhar.
Maybe you are looking for
-
So I just updated to the newest update that was available for safari and iTunes but now it won't let me go on the Internet using safari and it also won't let me sync my songs ,,,,,(it takes forever to backup my iPad AND my iPod) so what can I do ?
-
Error message downloading OBIEE Report to Excel "is in a different format"
Dear experts: We just upgraded to 10.1.3.4.1 in our Dev environment and are seeing a pecuiliar behavior when we try to download a report to either "Excel" or "Excel 2000". After selecting Excel (or Excel 200) from the Download Link, we get the follow
-
Error when trying to implement Primefaces example
I managed to run WAB package with Primefaces. The problem is that some of the example are working and some of the examples have problems when I try to implement them. I tested this example: <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html P
-
Ever since I installed Yosemite on my MacBook, whenever I get a call on my iPhone (a normal phone call), I get a notification on my MacBook that I am getting an incoming FaceTime call. And then I pick up the call on my iPhone and it still says it's a
-
Why are the Hed and SubHeds of my page reverting to default grey color? This is the color defined as the body color. http://www.pmr-nlf.com/asa/html/forsa_british.html Thanks