Consuming WS in WebDynpro
Hi,
We are trying to consume a webservice through webDynpro application and getting the following error:
Exception on execution of web service with WSDL URL 'http://nessep7cd:50000/mail1/Config1?wsdl' with operation 'sendMail' in interface 'mail1Vi_Document'
Does anyone has a suggestion?
Thanks,
Aviad
Hi
Refer :
1 . http://help.sap.com/saphelp_nw04/helpdata/en/29/18260dd1b6de4bb10b231e4fd0eab5/frameset.htm
2. https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11669cea-0c01-0010-63b2-b98c35b1b370
3. Adaptive WebService and 1:n relation in the response
Regards
Abhijith YS
Similar Messages
-
Consuming Webservice in WebDynpro - Content-Type issue
Hi,
I am getting a shortdump when consuming WebService in WebDynpro.
I trace it back to the class CL_SOAP_HTTP_TPBND_ROOT method GET_HTTP_HEADERS whereby the
value = 'text/html; charset=iso-8859-1' while the constants tsrc_soap_11_http_content_type = 'text/xml' ; tsrc_soap_bx_http_content_type = 'application/x-sap-bxml' ; tsrc_soap_mtom_http_cont_type = 'application/xop+xml' ; tsrc_soap_mp_http_content_type = 'Multipart/Related'. Because of this Content-Type difference my WebDynpro application dumps?
Any ideas how to solve this problem?
Thanks.
Regards,
Amelhi,
Few indroductory sessions
/people/thomas.jung/blog/2007/12/17/consuming-services-with-abap -Consuming webservices with webdynpro.
It is possible to create webservice in ABAP as well as in Webdynpro.
ABAP Webservice:
http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
http://www.sappro.com/downloads/SAPXI.pdf
Webdynpro Webservice:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
Edited by: Mahalakshmi kothuri on Jun 1, 2008 4:17 PM -
Consuming Webservices in webdynpro ABAP
Hello,
I want to work with consuming Webservices in Webdynpro ABAP. Can anybody give an example for the same.
Any help would be highly appreciated.
Thanks.Hello
Here is a link.
It has many links for the webservice consumption in abap and web dynpro
Consuming webservice in a webdynpro component
actaully process on a high level is like this.
1. first you need to create an client proxy., For creating this go to SE80
and follow this link
http://help.sap.com/saphelp_nw04/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/content.htm
2. then you can consume this service using the service call option of the web dynpro
here go to the web dynpro comp and right click on it and create-> service call
and use the proxy created in the first step here.
it will create one custom controller which you can use.
thanks
sarbjeet singh -
Consuming WebServices using WebDynPro
Hi
Need help in finding some good material/hands on for usage and consuming custom/External web services in some sample code/project in Web DynPro
kindly suggest some tutorials including hands on the same
thanksHi Saurabh,
Go through these links .They are sample tutorials for the same
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on accessing an email web service - 6_0_.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on accessing the car rental web service - 7.htm
Go through this link also
http://help.sap.com/saphelp_nw04/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/frameset.htm
This will give you a basic idea of webservice import
Hope this helps you
Regards
Rohit -
Consuming ABAP Webservice in Webdynpro app
Hi,
I have wrote a webdynpro app for consuming ABAP webservice. I used the procedure in the link below
http://wiki.sdn.sap.com/wiki/display/WDJava/ConsumingABAPWebServiceinJavaWD
Everything seemed to be went well, I created model and Webservice destinations. I have written the code for calling the webservice, which does not return data as part of response. I mean though the RFC returns data at the backend,its not showing the returned records in the webdynpro table.
I have also tried checking the same by setting external break point. when the webservice is executed from my webdynpro app,it goes to the ABAP debugger and i could clearly see the records in the export parameters of RFC,but the same is not returned in the reponse object.
Could any one let me know what could be missing. Any help is greatly appreciated?
I have used the following code in Init method of my View
Request_ZMYRFC input=new Request_ZMYRFC (model);
wdContext.nodeRequest_ZMYRFC ().bind(input);
ZMYRFC req= new ZMYRFC (model);
req.setPUserid("EDLAS00C");
req.setPLtc("E");
input.setMYRFC (req);
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.currentRequest_ZMYRFCElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
wdContext.nodeZMYRFCResponse().invalidate();
wdContext.nodeReturn_res().invalidate();
wdContext.nodeItem_res_ret().invalidate();
wdContext.nodeILtcg_res().invalidate();
wdContext.nodeItem_res_ltcg().invalidate();
catch(Exception e)
manager.reportException(e.getMessage(), false);
Thanks
Santhoshsantosh,
Check provider system defination in nwa for webservice.After this mapp the provider system and service group after wd app deployed.This is mandatory while consuming webservice in webdynpro for latest versions of CE7.11 or later.for reference check this article/document. http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46
Thanks,
Murthy.
Edited by: Murthy Karaka on Mar 22, 2010 12:59 PM -
Consuming webservice in a webdynpro component
Hi Experts,
I have a third party free webservice as WSDL link.My requirement is to make use of that webservice in my webdynpro component.
Can any body give me a step by step approach to consume that webservice in my webdynpro Component.
If possible, Provide me some good material for consuming webservice in a webdynpro component.
Awaiting for a useful reply.
Thanks,
Ramanan.phi,
Few indroductory sessions
/people/thomas.jung/blog/2007/12/17/consuming-services-with-abap -Consuming webservices with webdynpro.
It is possible to create webservice in ABAP as well as in Webdynpro.
ABAP Webservice:
http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
http://www.sappro.com/downloads/SAPXI.pdf
Webdynpro Webservice:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
Edited by: Mahalakshmi kothuri on Jun 1, 2008 4:17 PM -
Consuming PI Webservice from Webdynpro Java Not working
Hello SAP,
Environment: CE 7.2.
Resolution expected immediately, Helpful answer is highly appreciated.
Is the namespace should not exceed 60char for PI Webservice, for executing the webservice from Webdynpro Java.
I tried with all the options in executing the PI Service from Webdynpro Java, None of the options worked. I am facing the below error while I was calling the PI Webservice.
I don't see any problem from Webdynpro Java, what ever the procedure I have followed is the standard procedure.
Fortunately when I execute the service from Webservice Navigator, it is working as expected. The same webservice when I consume it from Webdynpro Java it is not working
Options tried so far:
1) Published the Services to Service Registry and there by consuming the PI Service from Service Registry - Not worked
2) Tweaked the URL with few options - Not worked (Tweaking the URL, ex: portType, Binding)
3) Changing the Business Systems in PI and there after calling the service - Not worked
4) Initializing the code, instead of creating Service Controller and calling the PI Service - Not worked.
5) Created a Provider System and tried to call the PI Webservice from Provider System - Not Worked
For all the Options, I am facing the same error which is provided in the screenshot.
Below procedure which I have followed for calling the PI Webservice:
1) Created Adaptive Webservice Model
2) Provided PI Webservice URL (It prompts for PI System UserId and Password)
3) Selected Option - No Service Group Configuration
4) Provided Logical Destination
6) Completed creation of Model
7) Added the model as a UsedModel
8) Right Click on Comp Contr. and selected Apply Template and Created a ServiceController for the model (Entire mapping to comp contr, Initializing the nodes is taken care by Service Contr.)
9) Created an Template Action button and there by calling execute method which is auto rendered from CompContr..
10) Build the project.
11) Activated the code and Run the Application.
12) Getting the below error which is showed in the message.
ERROR MESSAGE:
Exception on execution of web service on destination 'GetPIHRPeopleData' for operation 'SI_CreateHRPeopleData_OS' in interface 'SI_CreatePeopleCompany_OS'Hi Sankar,
If the webservice is working fine in the Wsnavigator then there is some problem with importing the webservice in webdynpro for Java. Please check the required parameter for creating the Adaptive Webservice Model. After adding in the used model and compoent controller binding, you need to write code for to execute the webservice model.
Please check the code for initialization and execution for the webservice and then test it.
Best Regards,
Arun Jaiswal -
How to consume Web Service in ABAP WebDynpro
Hi
I want to know the entire details about how to consume Web Service in WebDynpro application.
regards
PiyushhI piyush,
Have a look at this Blog by Thomas Jung.
/people/thomas.jung/blog/2007/12/17/consuming-services-with-abap
on consuming webservies thru webdynpro ABAP
Cheers
Mary -
Hi
Please provide tutorial and general guidelines for settings for consuming webservice in webdynpro ABAP.
Thanks & Regards,
ChaitaliThanks Rich for quick answer.
But my problem is, I have a stand alone WAS without any RFC Function modules and dictionary structures, of backend R/3, on WAS which I wanted to map in my component.
I strongly believe that in case of stand alone WAS I need to have at least backend dictionary structures to begin with my design. I cant use wizard, as I dont have function modules on this system. I have to code for that manually..
So that is why, I was looking for Webservice option..
Thanks,
Nitesh Shelar. -
How to consume an webservice in XI
Hi,
I need to consume an webservice in XI, can any one please guide me in this.
Regards,
LakshmiHI
I guess you want to consume webservice in webdynpro from XI , if that is the case
may be you can ask your XI consultant to provide you a WSDL url , and expose that as
webservice using adaptive webservice model and if you are using EP 7.0 you have to create Destinations
in the visual admin tool ->webservice security-> dynamic proxy
and if you are using CE 7.1 then you can create the destination in
NWA->SOA management -> Destination template
and for creating destination you can search SDN there are many thread available
/people/katharina.seiz/blog/2008/12/11/web-service-150-pi-150-web-service-scenario--a-complete-walkthrough
check the above link this may give you some idea
Thanks.
Edited by: murali krishna reddy on May 4, 2009 9:36 AM -
Web Dynpro integration with R/3
Dear all,
We have the following requirement in Web Dynpro integration with R/3
We have to update the local SQL tables based on R/3 system return values. R/3 system should call the webdynpro business method for updating local SQL Status table. In the R/3 system after purchase order is created, via user exit it should call and update some fields in the local SQL tables. To solve this problem we have thought of following solutions possibility:
1. In R/3 system based on user exit, it calls the ABAP Proxy -> XI (SOAP Adapter) -> Web Dynpro Web Service in WebAS-> XI -> ABAP Proxy -> User exit PO continues.
2. In R/3 system based on user exit, it calls directly web service then web service goes to user exit.
3. In R/3 -> user exit -> ABAP Proxy JDBC Adapter -> SQL stored procedure call - > user exit.
Please give your valuable suggestion or any other options to solve above problems.
And another one question is how to create web service and deploy into WebAS through webdynpro project?. Kindly guide us to the correct document for creating webservice through webdynpro or any other related url link.
Advance thanks,
S.Saravanan.Hi Sarvanan,
Please refer to the following link for help on webservice,
Creating webservice, http://help.sap.com/saphelp_nw2004s/helpdata/en/db/99c04ba22fe64f96a8651df68eab92/frameset.htm
Consuming a Web Service in JAVA,
http://help.sap.com/saphelp_nw2004s/helpdata/en/81/12703e5da3e946e10000000a114084/frameset.htm
Consuming webservices in webdynpro,
http://help.sap.com/saphelp_nw2004s/helpdata/en/91/9c2226df76f64fa7783dcaa4534395/frameset.htm
I feel once you go through these links you yourself will be in a much better position to decide upon to your design options.
Reply back for more help,
Guru. -
Hello all,
I want to create a central method for connecting the DB from WebDynpro.
In some of the documents its recommended to create an EJB for that purpose.
Can anyone tell me why is it more recomended than using a webDynpro DC?
Thanks, Adi.Hi,
I was put up with the same question but i went for a Java DC, which inturn is consumed in an EJB.
One simple reason is:
An application can have webdynpro components and regulat java components (say Java DC). A Java DC can be consumed in a webdynpro DC but a webdynpro DC (say you have implemented the connection configuration in Controller) cannot be consumed in Java DC.
So for having a single point of control on DB Connection for webdynpro and java components we generally go for a Java DC component which will provide connection (JDBC and RFC).
Hope that helps.
Regards,
S.Divakar -
System landscape directory configuration
Hi ,
I have problem related to System Landscape directory.
Actually my intention is to consume webservice from abap system.So i heard that we have to configure
setting in system land scape directory.
So if i go to system landscape directory i.e.
visualadministrator->services-slddatasupplier-CIM client generation setting
then at this point it ask for
HTTP connection parameter :
Host:
Port:
User:
password:
so i just want to know what detail we hav to mention here.
Please help me on this issue.
Thanks,
sudhanshuI do not think you need SLD configuration for comsuing webservice.
Once you have downloaded the WSDL file you can consume the same using Webdynpro
Check in wedynpro forum with the search string "Consuming Webservice in webdynpro",
you shud get lot of help.
Check this link
Using RFC as WebService in WebDynpro
Few more
http://www.riyaz.net/blog/xipi-consuming-xi-web-services-using-web-dynpro-part-ii/
http://www.riyaz.net/blog/xipi-consuming-xi-web-services-using-web-dynpro-ui-design-part-iii/
Edited by: Santhosh Edla on Jun 12, 2009 10:12 AM -
Hi,
I m trying to use an external webservice in VC but i always get no results. I have already set up the uddi and the classification stuff and registered the service in Service Regirtry but it seems that I just cant get any access to the service from the search tab in VC. Anybody any clue what might be wrong?
greetz miladAfter multiple trials and errors, I was indeed able to publish a non-ABAP web service to the service registry, browse it from the service registry (with the correct data in the Data tab) and consume it from WebDynpro, CAF and VC (yes!). These are just some of the many gaffes to watch for:
1.Make sure the Service Registry destination definitions has the correct system name defined. It should be picked from the SLD system name (under http://host:port/sld) definition (I think it CE1 by default).
2.Make sure you have the user authentication for destinations defined.
3.Do not use the publish feature in the Service Registry. It does not publish the necessary metadata for VC or other applications to use. Always go by the Publication Restrictions function in the NetWeaver Administrator.
4.Check the ServiceRegistrySi port setting, the port is automatically set to 50100. Change the setting to reflect your java node port. More details at [Using the local service registry from other applications (VC, GP)|Using the local service registry from other applications (VC, GP)]
If going thru service registry is not a priority, define a destination and use the web service directly through it. It is easier and faster.
Regards
Suresh -
Webservice Consumption in CE 7 1 EHP1
Hi All,
I was trying to consume webservice using webdynpro in NWDS CE 7 1 EHP1.
Getting error as : unable to find service group as <server name where WSDL exists>.
Kindly clarify me.
Regards,
Devender VHi Devender,
I am getting an error " Cannot connect to http://localhost:50000/NWDemoAdminService/NWDemoAdmin?wsdl&mode=ws_policy: Unable to connect to proxy:8080 - proxy "
I think there is a problem with the proxy setting but u can try with some other standard available service.
in the web service navigator, select a standard service and test it.
import the model to ur web dynpro component and execute the model.
please follow the vital things specified in the document like creating a communication profile , provider system......
Thanks and Regards
Maybe you are looking for
-
Best way to work with H.264 video
Hello! I'm working with 1080p 29.97 (H.264 encoded) video and I want to bring it into FCP (off a SDHC card) edit it and export it out. I would like to do everything always keeping the highest possible quality. What is a good workflow for this? Right
-
Different behaviour of a plug in in CS6 and CS5.5
I've noticed a difference in a plugin behaviour in CS6 and CS5.5. In a SequenceSetup function the following call generates a PF_Cmd_ARBITRARY_CALLBACK in CS6 with the PF_Arbitrary_FLAT_SIZE_FUNC state of extra parameter. The same PF_Cmd_ARBITRARY_CAL
-
Planning a multiple hardware configuration
We are in the process of planning to deploy an additional job server on a separate machine. The new machine will match the our original configuration. Our current configuration uses the SAP/BW integration kit. Is there anything we need to look ou
-
Help, I don't know how to burn a DVD!
Hello, Not sure where to post this question but I need help with the DVD player part of my computer. It isn't iDVD I'm talking about either. Okay so I own this collection of Billy Blanks DVD's and so I want to burn one of them onto a blank disc. I in
-
iPhone running iOS 8.2. Can't install or update apps, buttons grayed out. Probably a Settings issue, because iPad working fine.