Problem in calling Webservice from Webdynpro ABAP
I want to call a BAPI FM which is available in SAP ECC server when user is clicking on a button in a web dynpro application which is available in SAP Portal server.
For example,
Portal server name is DVP-EPP &
ECC server name is DVP-ECC
I have the done the following steps to achieve it,
In Server DVP ECC:
1) Created Web service from the standard BAPI FM (SE37-->Utilities-->More Utilities-->Create WebService --> From the the Func.Module)
2) Downloaded the WebService as WSDL file from SOAMANAGER
3) Tested the Web service through SE80, it is correctly calling the BAPI & creating necessary data.
In Server DVP EPP:
4) Created a Proxy class as follows,
a) SE80 --> Package --> Create --> Enterprise service
b) Selected Object type "Service Consumer"
c) Selected Service Consumer "Local File"
d) Browsed and selected WSDL file downloaded from DVP ECC
e) Selected the Package, Prefix, Request, Completed the process & Activated it.
5) Configured the Logical port as follows,
a) Selected my Proxy class through F4
b) Wrote a name for Logical port, Selected 'Default port' checkbox and selected 'Create'
c) In the next screen, in 'Call parameters' tab, selected the 'URL' radio button & mentioned the URL of the WSDL-Document created in DVP-ECC system
d) Saved the data & activated it
5) Now, tested the service through (SE80-->Package-->Enterprise Services-->Client Proxy) option.
6) When I test it, system prompts a dialog box for User-Name & Password (as available in DVP-ECC system).
After the details are given, system throws the Information message as "SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/" - Exception of class CX_AI_SYSTEM_FAULT
No record is created in DVP-ECC through the WebService BAPI.
Please tell me whether the steps that I followed are correct as per my requirement and a solution for the above interruption.
Thanks in advance
Good day guys,
Somehow I managed to resolve the above error.
Now in DVP-EPP system, I am able to Test the Web service Client Proxy (through SE80) and a record is successfully created in destination system (DVP-ECC).
Now, in Webdynpro I am unable to call this webservice proxy class.
System throws the error,
Error (id=SoapFaultCode:5): Web service processing error; more details in the
web service error log on provider side (UTC timestamp 20141006045544;
Transaction ID 9A144DE49C12F1B5A6B9E41F137BE3CC)
I just created a sample WDA application and on click of a button I am calling the Webservice Proxy class as follows,
Method on_submit_click().
TRY.
CREATE OBJECT wd_assist
EXPORTING
logical_port_name = 'ZLOG_PORT'. "Logic port creatd for Proxy class (in SOAMANAGER)
CALL METHOD wd_assist->bus1240create "Method available in generated Proxy Class
EXPORTING
input = ls_inp
IMPORTING
output = ls_outp.
CATCH cx_ai_system_fault.
ENDTRY.
ENDMETHOD.
Do I have to do any thing additionally in order to call the WebService in WDA?? Because, in the same system, if I test it in SE80, record is perfectly created in destination server.
Also please suggest if I have to do any other configuration changes related to this.
Keenly awaiting your reply.
Have a nice day .
Thank you.
Similar Messages
-
Calling a webservice from webdynpro ABAP.
Hi,
Anybody have doc/material with screenshots on calling a webservice from webdynpro ABAP (In WAS 7.0 version using service calls ) with clear steps ?
Thanks in advance. Ponts will not be a constraint for right answers
Praveen
Edited by: Praveen kumar Kadi on Feb 23, 2009 11:19 AMHi Praveen,
1st Step : configure Logical Port
http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
2nd Step : Generate Proxy Object
http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
3rd Step : Instantiating the proxy object & calling the methods exposed by webservice
data: sys_exception type ref to cx_ai_system_fault,
sys_exception2 type ref to cx_ai_application_fault,
client_proxy type ref to zco_myesa, "MY PROXY CLASS
lv_ret_code type int4,
lv_input type zsend_email_input,
lv_response type zsend_email_response.
data: lv_from type string,
lv_from_address type string,
lv_to type string,
lv_to_address type string,
lv_subject type string,
lv_msg type string.
lv_input-from = 'MYSAPTEST'.
lv_input-from_address = '<someAddress>'.
lv_input-to = 'Prashant'.
lv_input-to_address = '<someAddress>'.
lv_input-subject = ' TEST'.
lv_input-msg_body = ' Hi this is wonderfull to see it work'.
try.
create object client_proxy
exporting
logical_port_name = 'BASIC'. " Basic is a TYPE G RFC Destination
call method client_proxy->send_email
exporting
input = lv_input
importing
output = lv_response .
catch cx_ai_system_fault into sys_exception .
data lv_err type string.
lv_err = sys_exception->if_message~get_text( ).
write: / lv_err.
catch cx_ai_application_fault into sys_exception2 .
lv_err = sys_exception->if_message~get_text( ).
write: / lv_err.
endtry.
if lv_response is initial.
write: /'Not Executed'.
else.
write: /'Did Execute'.
endif.
Greetings
Prashant -
How to call a webService from WebDynPro ABAP ?
We are trying to call a webService from WebDynPro-ABAP application. It is not working, While if we are calling the WebService from a Report, it is working.
How exactly do we call a WebService from a WebDynPro-ABAP application?
What are the main steps involved ?Hi Phani,
You will need to create a service call as follows.
Right click on your WD component name and select Create->Service Call
The wizard will guide you through a series of steps to make a Web Service Call. On the 3rd screen, it will give you options such as Function Module, Web Service, etc
Before making a service call, you will need to create a proxy for the Web service in the ABAP Workbench using a WSDL document as a basis. To create or consume Web services, you will need the authorizations associated with the role SAP_BC_WEBSERVICE_ADMIN. -
Calling GuidedProcess from WebDynpro ABAP
Hi all
can anybody tell me that how to call GP from webdynpro ABAP.
and what are the advantages and disadvantages in this scenario??
if anyone reply then it would be the great help to me
Regards
Suresh babuHey,
You can call a GP from WD ABAP through by implementing a service call from a method that is embedded in your WD. You can refer this link for the same.
http://help.sap.com/saphelp_nwce10/helpdata/en/44/58f9cc0d95311ce10000000a155369/frameset.htm
But you should note here that Data exchange between ABAP WD and GP is not two way but its only one way.
Cheers,
Mandrake -
Problem with calling Webservice from Java Webdynpro
Hi,
I have a scenario where I need to call a Webservice through my Webdynpro application. I need to pass few parameters(of type string) and the Webservice is suppose to retrun a few records based on the input values.
When I run the webservice directly using the browser, the output is in XML format.
When I create a model for the webservice in webdynpro, the return value is a Node element of type java.lang.Object. From webdynpro, I am successfully able to make a call to the Webservice (as there is no exception with model execute command), but the return value is always null. I am not sure if the webservice is not returning any data or if I am not reading the correct context element. There is no documentation available for the webservice either.
Can anyone tell me what is that I am missing. Is it not possible for Webdynpro to call a webservice which can return only XML data?
Any help on this issue would be greatly appreciated.
Thanks,
SudheerHi Sudheer,
You can refer to wiki link (& other links available at the end in this)
https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/faq-Models-AdaptiveWebService
Kind Regards,
Nitin -
How to call webservices in webdynpro abap
Hi Experts,
My requirement is I have to call an URL by exporting an XML file to that URL I have to import an XML file again i .e nothing but I have to send request file in the form of XML and need to get response in the form of XML file from the URL .This total execution should be finished by clicking a button in webdynpro ABAP.
Regards,
Satya.Hello Satya,
You may try to find the sample code as follows:
1. Goto Transaction se80
2. Select "package" --> enter "SWDP"
3. goto "embedded packages" --> "SWDP_DEMO" --> Web Dynpro
Here, you will get demo applications. Find the most appropriate demo application and try to customize the code according to your requirement.
Best Regards,
Raju MJRK -
Calling webservice from webdynpro thru model(webservice created from BAPI)
Hi all
i have created one webservice from Functional module in backend system(ECC) and also i released the same webservice in backend(ECC) thru the TCODE wsconfig.
my questions are
1) how to execute that created Webservice in backend system itself(ECC). can you please send the execution steps for webservice in ECC system.
2) how to call from webdynpro thru model for that created webservice from functional module. can you please send the execution steps for the same. here there are three options while model for webservice like local server,Local file system and UDDI or URL.
Regards
Sunil
[points are always rewardable]hi!
Below are good documents on Webservices
Adaptive webservice model
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e
Re Importing of Web Services in Simpler way
Re Importing of Web Services in Simpler way
Using RFC as WebService in WebDynpro
Using RFC as WebService in WebDynpro
Enterprise Applications with webservices and Web Dynpro
The specified item was not found.
Regards
vishal -
Problem while calling webservice from a plsql stored procedure
Hi everybody,
I need to call a webservice from a plsql stored procedure.
I was following documentation published in the otn at the following link.
"http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html"
I am encountering the following error on my sql prompt-
SQL> exec dbms_output.put_line(time_service.get_local_time('94065'));
BEGIN dbms_output.put_line(time_service.get_local_time('94065')); END;
ERROR at line 1:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1022
ORA-12545: Connect failed because target host or object does not exist
ORA-06512: at "APPS.DEMO_SOAP", line 65
ORA-06512: at "APPS.TIME_SERVICE", line 13
ORA-06512: at line 1
Has anybody worked on the same example. Please direct me.
Thanks & Regards
Kiran KumarKiran, were you able to solve this?
I am facing the same error.
Oracle Server is Unix and webservice is .NET.
I am able to connect to Java web service. -
Problem while Calling Webservice from ABAP
Hello All,
I am Calling the Webservice using ABAP-Class from abap,i getting the following HTML response error from the Webservice.Can any one help me.
tional//EN">######
####td {font-family : Arial, Tahoma
, Helvetica, sans-serif; font-size : 14px;}##A:lin
k ##A:visited
##A:active ####
Thanks and Regards,
KamalIt is not finding the correct URL - hence the 404 - page not found error.
Correct the URL and try again. -
Probelm in calling ME23N from WebDynpro ABAP application.
Dear All,
My requirement is to call the transaction ME23N by doing some action from WDA application.
And I have to pass the Purchase Order Nubmer from this WDA application.
This is for your information, For this I have created the Transactional iView for ME23N and I am using the PCD location .*
I am using the " navigate_absolute " method from the portal intergration ( IF_WD_PORTAL_INTEGRATION ).
There I am passing the launching paramerters and Business parameters . It is opening the ME23N Screen, But it is not taking the purchase order number what I am paasing in the business parameters . It is always taking the default purchase order number.
And one more this , the same thing i have tried for VA03 transaction, here everything is going fine.
But I did not understand the why it is not taking purchase order number what I am passing from the WDA application in the business parameters.
Hope I have given my query clearly...
Please help me...
Thanks & Regards,
Veerendra NathSolution found.
You can use Tcode MMPURPAMEPO Tcode.
In your URL set the parameter P_EBELN with the PO number and set the OKCODE to execute the report.
This transaction is used in Portail only.
You can found the same for MIGO/MIRO and several other Tcode.
Regards
Ludovic Bento -
Calling ActiveX from WebDynpro ABAP application
Hello everyone,
I am looking for the possibility of calling an ActiveX control based application by extending my Web Dynpro ABAP application. Is this possible at all?
Thanks,
Amber
Message was edited by: Amber GuptaSaraa_n wrote:
Hello Bala,
>
> I doubt whether you can pass parameter for the TCODE ME23N because in the ME23N transaction, you can select the PO only via the popup dialog and you cannot directly enter the PO number.
>
> I dont think while calling TCODE via ITS you can set value in the popup dialog and execute it. Alternative would be to use ME23 TCODe.
>
> BR, Saravanan
It is correct taht ME23N can be tricky (as can MIGO and MIRO) because of the way they launch. I've done this in the past by creating a new custom program and TCoce. The custom program has a simple parameter for the PO # so it can be passed in via URL. The logic of the custom program then starts a call transaction and handles the popup and supplies the PO #. -
Error When Call WebService from WebDynpro
Hi,
I´m with this error when i execute* the web service that i created on my WebAS:
Request_CalculatorWSViDocument_add req = new Request_CalculatorWSViDocument_add();
wdContext.nodeRequest_CalculatorWSViDocument_add().bind(req);
wdContext.currentRequest_CalculatorWSViDocument_addElement().modelObject().setX(x);
wdContext.currentRequest_CalculatorWSViDocument_addElement().modelObject().setY(y);
wdContext.currentRequest_CalculatorWSViDocument_addElement().modelObject().execute();
java.lang.NoSuchMethodError: com.sap.engine.services.webservices.jaxrpc.wsdl2java.BaseGeneratedStub._initParameter(Lcom/sap/engine/services/webservices/jaxrpc/wsdl2java/ServiceParam;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)V
at br.com.softtek.model.proxies.Config1BindingStub.add(Config1BindingStub.java:58)
at br.com.softtek.model.proxies.Config1BindingStub.add(Config1BindingStub.java:101)
at br.com.softtek.model.Request_CalculatorWSViDocument_add.execute(Request_CalculatorWSViDocument_add.java:91)
at br.com.softtek.comp.CalculatorComp.executeOperation(CalculatorComp.java:217)
at br.com.softtek.comp.wdp.InternalCalculatorComp.executeOperation(InternalCalculatorComp.java:214)
at br.com.softtek.comp.CalculatorCompView.onActionAdd(CalculatorCompView.java:143)
at br.com.softtek.comp.wdp.InternalCalculatorCompView.wdInvokeEventHandler(InternalCalculatorCompView.java:173)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
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)
Any idea?
Regards,
BrunoHi tulasi,
My WebService uses "Simple SOAP".
Naga Raju Meesala,
The WebService type is "WebService Mode"l.
Any idea?
Regards,
Bruno -
Call the webservices in webdynpro ABAP.
Hi,
I have WSDL file. please tell me the procedure how to call webservices in webdynpro -ABAP.
Thank you
neelimaHi neelima,
Refer This,
<b>Consuming XI Web Services using Web Dynpro</b>
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3593. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
<b>Web service related scenario with XI</b>
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9.
(Reward Points If helpful)
Regards
Nandha. -
Related documents or links on how to call webservices from WDJ
Hi all
i need documents & links on how to call webservices from Webdynpro for Java.
if anybody send the documents on sample scenarios on the same then it is the great help to me...
Thanks
SunilHi Sunil,
May these links help you.
http://help.sap.com/saphelp_nw04/helpdata/en/f7/f289c67c759a41b570890c62a03519/frameset.htm
http://help.sap.com/saphelp_nwce10/helpdata/en/64/0e0ffd314e44a593ec8b885a753d30/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/d2/0357425e060d53e10000000a155106/frameset.htm
and the below thread to call weservices in java.
Re: How to call a web service from Java
Regards,
Supraja -
Error when Interative Adobe Form is called from Webdynpro ABAP.
Hi Experts,
I trying to call a Interactive adobe form from ABAP Webdynpro application but I am facing the below error.
Line: -
The following error text was processed in the system GJD : User session (HTTP/SMTP/..) closed after timeout
The error occurred on the application server az18u021_GJD_01 and in the work process 0 .
The termination type was: ERROR_MESSAGE_STATE
The ABAP call stack was:
Method: PREPROCESS_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
Line: -
When I uncheck the enabled property of the Interactive From in the Page of the WebDynpro I am able to execute the application successfully.But the Adobe form behaves as a Static Form when I uncheck the enabled property.
So kindly provide your valuable suggestions to avoid the above error when I am calling a Interactive adobe form from Webdynpro ABAP.
Thanks in Advance.
Regards,
Arun.Hello,
Hello, are you sure you have your ADS credentials configured correctly and valid? I guess you know that is the only difference between clicking enabled on true or false. If you are not sure, you can use SE38, search for FP_* and pick some reports to check the licencing. The names of the reports are good enough to recognize the right one.
Or maybe that is a security problem? Have you checked the ADS_ERROR string? Did you use the ADS trace?
check: http://help.sap.com/saphelp_nw70/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/content.htm
and especially note 999998
Regards, Otto
Maybe you are looking for
-
hi all i'm trying to reboot my imac g4. basically i want to erase EVERYTHING of the Hd and start from scratch again. why? I'm trying to install adobe cs2 and i want to make sure that i've gotten rid of all the preferences and older versions of softwa
-
Response.Redirect not working after printing CR
Using Visual Studio 2010 sp1 with Crystal for VS 2010. Web app running as a web application in x86 mode using .NET 4.0 framework. I recently created a CR with a sub-report and it previews and prints just fine. However, after I PRINT the report, my
-
Space.bar.problems!
my.spacebar.just.stopped.working.for.no.apparent.reason.today.I.opened.up.my.lap top.and.found.I.could.no.longer.put.in.any.spaces. the.illumination.of.the.keyboard.in.the.top.row.also.is.not.working.Although.it. comes.up.on.the.screen.when.I.press.i
-
Audio in iChat not working?
I have been trying to have an audio chat with a friend of in Germany using iChat, and he can here my audio, but I can't hear him. We check the various audio settings, and everything looked OK, so I thought it might be a hardware problem with the mic.
-
Overclocking MSI A64 K8N Nforce3 Plat
What are people getting FSB wise on this motherboard. I cannot get past 233 without it failing to boot.