How to consume webservices i.e WSDL file in Webdynpro ABAP.
Hi experts,
I have WSDL file in my local system, configured using SOAMANAGER ,a proxy class is generated,when i test it prompts for username and password after entering the required data it is executing fine.
I called the the PROXY NAME in my WD component using service call , a method is generated . But when i pass the values in importing parameter getting an error "Null reference object".
I think this error is for Authorization ??
Please help me..
Thanks
Aisurya
Hi,
instead of service call, try calling the proxy class method by explicitly creating object and then passing parameters etc.
Define context, attributes and then pass those to proxy method.
Thanks,
Chandra
Similar Messages
-
How to assosciate webservice to a WSDL file
Hi
I tried developing webservice(EJB as RPC) in weblogic server and installed and its working fine if i call it from client.
I am using java2WSDL(axis) tool to create a WSDL file and WSDL2Java to create stubs for client to call.I am struck in linking webservice to use the wsdl file which i have created.
I manually tried to add my WSDL file to the WAR file of my application and also Updated the web.xml file of the Web application adding a mime-mapping.
I am able to access the WSDL file in browser as http://bt885094:7001/webservice/user.wsdl
But my client tries to access the service "http://bt885094:7001/webservice/C2PUserService" which has an associated WSDL file defined as http://bt885094:7001/webservice/C2PUserService?WSDL which needs to be checking for http://bt885094:7001/webservice/user.wsdl
Could anyone tell me how to assosciate webservice to a WSDL file.
thanks in advanceThank you everyone for your help. As a complete newbie I found this nice walkthrough tutorial in onjava(i dont mean to spam).
1. View: Take a peek at the existing Fibonacci code.
2. Java2WSDL: Generate the WSDL file for the given Fibonacci interface.
3. WSDL2Java: Generate the server side wrapper code, and stubs for easy client access.
4. FibonacciSoapBindingImpl: Fill in wrapper to call the existing Fibonacci code.
5. Deploy: Deploy the service to Apache Axis.
6. Client: Write a client that uses the generated stubs, to easily access the Web service.
Given the webservice endpoint and the method name, I think I can now consume the web service using steps 3,4, and 6. -
Importing WSDL File in Webdynpro abap component
hi experts,
I wanted to use a wsdl in my webdynpro component, ie. in wd java, i can create model and in that i get options to import a wsdl via wsdl file, i have a wsdl file, but how can the same be achived here in wd abap, i could import a functional module, but i dont know how to import wsdl ...
have gone through this url but i could not find the blog.
https://scn.sap.com/thread/502026
Regards
Govardan Raj Shi Kiran,
The links you have suggested are help full, im completely new to this feild,
here il explain what i did,
i have a wsdl file named as M****_*******_Pzzzz_Baaaaa_Details.wsdl
using se80 i went to my package where my webdyrnpro component is stored.
right click of this pkg, i selected create -> enterprise service /webservice - > proxy object.
here i got a pop with options as 1) consumer Group 2) Exception Classes 3) Service Provider 4) Service Consumer 5) Data Types 6) Data Types Enhancements
i selected service consumer , coz i wanted to consume wsdl.
then on click of continue ,
here i selected Local File radion button.
then browse my wsdl file in my computer, then gave prefix as zbaadtlprxy
and assigned a package and request that im using currently and completed.
now i created a proxy object with name available as
M****_C*********_P*******_Batch_D .
i activated the same.
now after this what is the next step. ? -
How to combine multiple webservices into one WSDL file
Gurus,
I have 4 four webservices(ws1,ws2,ws3 & ws4) defined in XI. Normally in XI when we define webservice ,WSDL file will be generated for each interface. Now I have 4 related interfaces, so 4 WSDL files will generated. Suppose if I have 100 webservices then 100 WSDL files need to be generated & need to send to other party to consume our services, which is very tedious task & to track also. So is it possible to combine related webservices into one WSDL file? Your inputs will be highly appreciated.
Regards,
SanthoshHi,
Instead of trying to combine the interfaces, you can try to define your interface mapping with 4 sender interfaces with in one interface mapping . I think this may give you the result you are expecting.
If you want entire content to be in one interface , then, define single interface which can accomadate, all message ocntent of all 4 interfaces.Means your sender message to contain the 4 datatypes internally.
Regards,
Reyaz -
How to upload a pdf file using webdynpro abap
Hi Experts,
I need to upload pdf files using webdynpro abap.my question is where to upload this files and how to upload this files, and how to display this pdf file.
Please Provide Requried Information.
Waiting for Reply.
Thanks & Regards.
Bhushan.Hi,
There is a UI element with the type 'File Upload'.
You can use that in your view.
For further details and coding, please refer to
[http://www.****************/Tutorials/WebDynproABAP/Upload/Page1.htm]
Hope this helps you.
Regards,
Dolly -
How to upload file in webdynpro abap alv
Hello Friends,
how to upload file in webdynpro abap alv
Regards
Narendra
Moderator message: please search for available information, post in correct "Web Dynpro ABAP" forum if still required.
Edited by: Thomas Zloch on Jun 6, 2011 11:55 AMHi Narendra,
You ahve to search before posting. This discussed many times.
You need to use file upload ui element to upload data. and display in alv.
Please go thorugh this..
http://wiki.sdn.sap.com/wiki/display/WDABAP/UploadandDownloadfilesinWebdynproABAP
Re: Upload .xls file in WDABAP
http://forums.sdn.sap.com/click.jspa?searchID=72307893&messageID=5425671
Cheers,
Kris. -
How to read the excel file using webdynpro abap?
Hi,
how to read and modify excel file using webdynpro abap?
Regards,
PavaniFor reading excel file follow the steps :
1. Use a File upload UI element and bind it with xstring.
2. Now your excel will be uploaded and stored in Xstring.
3. Convert Xstring to String data using FM 'HR_KR_XSTRING_TO_STRING'.
4. Now split the string at new line so as to make an internal table .
Ex . SPLIT l_string AT cl_abap_char_utilities=>newline INTO TABLE it_table.
here it_table is type table of string.
5.now loop at the internal table and separate the content of this table separated by tab.
Ex. SPLIT wa_table AT cl_abap_char_utilities=>horizontal_tab INTO TABLE it_new.
it_new type string_table.
6. For more info , refer this thread :
Re: How to upload excel file in Webdynpro application using ABAP -
How to upload muliple files in webdynpro abap?
dear team
any one could you tell me how to upload multiple files in webdynpro abap with detailed steps?
and where & what code i have to write?
kindly give me the solution for this problem
regards
sathyaPlease use the forum search!
Thomas has made an excellent guide about exactly what you require:
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d7e04
Cheers, Lukas -
Uploading and downloading files in webdynpro abap
how to up load axl file and download file in webdynpro abap application .
Hello Pradeep,
you might see the following documentation for [Download|http://help.sap.com/saphelp_nw70/helpdata/EN/09/a5884121a41c09e10000000a155106/frameset.htm] and [Upload|http://help.sap.com/saphelp_nw70/helpdata/EN/b3/be7941601b1d09e10000000a155106/frameset.htm] containing also names of Web Dynpro Components as reference.
Best regards,
Andreas -
Creating a PDF file in webdynpro abap.
Hi friends,
Can anybody tell me how to create PDF file in webdynpro abap and how to save and edit, copy etc., whatever you can do through normal pdf file?
I have checked with the standard application WDR_TEST_ADOBE and WDR_TEST_ADOBE_ONLY. But none of the applications are working...
Could anyone please suggest me how to do this?
Regards
Sireesha.Hello Sireesha,
Good places to start are the online help and tutorials, which you can find here:
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms-elearning">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms-elearning</a>
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm</a>
Best regards,
Thomas -
Uploading CSV file into Webdynpro abap application
Hi all,
Please let me know the process of uploading .csv file in Webdynpro(ABAP) using FILE_UPLOAD UI element.
Thanks
SubathraHi,
you can use the following code ..........
assumiing the file cointain tow colums name and age
TYPES :
BEGIN OF str_itab,
name(10) TYPE c,
age(10) TYPE c,
END OF str_itab. DATA : t_table1 TYPE STANDARD TABLE OF str_itab,
i_data TYPE STANDARD TABLE OF string,
lo_nd_sflight TYPE REF TO if_wd_context_node,
lo_el_sflight TYPE REF TO if_wd_context_element,
l_string TYPE string,
fs_table TYPE str_itab,
l_xstring TYPE xstring,
fields TYPE string_table,
lv_field TYPE string. DATA : t_table TYPE if_main=>elements_data_tab,
data_table TYPE if_main=>elements_data_tab.
get single attribute
wd_context->get_attribute( EXPORTING name = `DATASOURCE` IMPORTING value = l_xstring ).
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
in_xstring = l_xstring
IMPORTING
out_string = l_string.
SPLIT l_string AT cl_abap_char_utilities=>newline INTO TABLE i_data.
Bind With table Element. LOOP AT i_data INTO l_string.
SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
READ TABLE fields INTO lv_field INDEX 1.
fs_table-name = lv_field.
READ TABLE fields INTO lv_field INDEX 2.
fs_table-age = lv_field. APPEND fs_table TO t_table1.
ENDLOOP.
lo_nd_sflight = wd_context->get_child_node( 'DATA_TAB' ).
lo_nd_sflight->bind_table( t_table1 ).
Thanks,
Shaik Shadulla.
Edited by: shaik shadulla on Jul 16, 2009 3:27 PM -
How to use traffic lights concept in alv in webdynpro abap
Hai ,
How to use traffic lights concept for alv in webdynpro abap. If possible give me some code.Hi Ravi,
You can create ICON to get traffic light.
Go through this step by step.. in this example
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1190424a-0801-0010-84b5-ef03fd2d33d9?quicklink=index&overridelayout=true
Please go through this...
Re: Display ICON in the ALV table column
Re: Image in ALV
cheers,
Kris. -
Display pdf file using webdynpro abap
Hi Friends,
My requirement is to display pdf file in the second page with the input text entered in the fisrt page when clicked on action
button( in the first page) using webdynpro abap.
Can anybody explain the step by step procedure as I am new to this area.
Thanks in advance.
Reagrds,
NagarajuHi,
Check this.,
Creating a PDF file in webdynpro abap.
Web Dynpro ABAP display pdf
hope this helps u.,
Thanks & Regards
Kiran -
Uploading/Downloading Files in Webdynpro ABAP
Hello,
I am trying to Upload/Download Files in Webdynpro ABAP using the following link:
http://wiki.sdn.sap.com/wiki/display/WDABAP/UploadandDownloadfilesinWebdynproABAP
It works fine and the file(either .doc or .txt) gets uploaded successfully. But when I download it ,it is not able to retrieve the contents.
May be the SAP ECC system does not work with Microsoft Office 2007.
Please help.
Thanks.I guess it has problem with .doc extension but
.txt you can read
and also .docx and .xlsx will provide the content
it is only this .doc and .xls which will create problem.
e.g. .docx after downloading will give one .zip file.
change its extension to .doc or .docx. the content will be there.
thanks
sarbjeet singh. -
How to Consume a WSDL file in Webdynpro JAVA Application 7.30
Hi Experts,
My requirement is,I have a wsdl file(Provided by the SAP PI) which i need to consume in Webdynpro Java 7.3(NWDS 7.30).
I has been tried in the follwing way
1.First click on the Model --> Adaptive Web Service Model -->Model Name--Package Name
2.Choose Remote Location/File System.
3.After that choose the WSDL file from my project which i added earlier.
4.After that I get the node in the context menu.But I am uneble to set some data into the node and also uneble to get data data from the node
After deploying my project I get the following error.
Error ::
The initial exception that caused the request to fail, was:
com.sap.esi.esp.service.server.query.discovery.ExtendedServiceException: Configuration not found for service reference with ID: c73e38ff-a4d8-4e4c-89c2-827fd5cf17ac from application demo.sap.com/mwebsrvc. Either you have not assigned the Service Group to a Provider System or the generation of the configuration has failed. Check the configuration details from SAP NetWeaver Administrator -> Application Communication. --> Details about the Service Reference: {urn://TestSOAPtoRFCSender}SI_TestSOAPtoRFCSender_OB; Service Group: com.tsecl.SITestSOAPtoRFCSender_OB.pidev_nerapdrp_gov_in; Service Group Software Component: demo.sap.com/mwebsrvc; Service Group Application: demo.sap.com/mwebsrvc; Configuration state: Not configured
at com.sap.esi.esp.service.server.dynamic.DIIServiceRefConfigContextImpl.prepareContext(DIIServiceRefConfigContextImpl.java:275)
at com.sap.esi.esp.service.server.dynamic.DIIServiceRefConfigContextImpl.<init>(DIIServiceRefConfigContextImpl.java:59)
at com.sap.esi.esp.service.server.dynamic.DIIContextCreatorImpl.createDIIServiceRefConfigContext(DIIContextCreatorImpl.java:18)
at com.sap.engine.services.webservices.espbase.client.dynamic.configuration.DIIContextFactory.createDIIConfigurationsContext(DIIContextFactory.java:12)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:368)
... 67 more
Please help me about this.
Thanks and Regards,
Amit BasakHi Amit,
Create provider system in NWA -> SOA management -> System Connections. After ping is successful go to NWA -> Application Communication and select your DC and assign the provide system for your service configuration group.
I hope it will works fine as we also did the same.
- Pradeep
Maybe you are looking for
-
Time Capsule disk cannot be mounted nor found by Time Machine
Suddenly Time Machine can't find my Time Capsule disk to back up to. I've tried setting up my Time Capsule in various ways, even resetting to default factory settings. My network seems to work fine and Time Capsule is shining brightly green, but clic
-
VBA 4198 error command fail with ActiveDocument.Save
I am getting 4198 error run time error with on the ActiveDocument.Save line below If optSave.Value Then ' If save & close option selected... 'Change the status of the Normal template to unchanged. If ch
-
Dear users, Could you tell me wether there are any action games like Prince of Persia for MBP 13''? I have found only GTA. Thanx!
-
WRT600N - Wireless Client Table BUG
The bug discussed in this thread http://forums.linksys.com/linksys/board/message?board.id=Wireless_Routers&thread.id=74677 still exists on the latest firmware.
-
Swaping Macbook pro 2.16 Core 2 Duo logic board for 2.33?
Looks like I have a dead Macbook pro logic board, waiting for a phone call from the Apple with diagnosis. It's a 2006 Core 2 Duo 2.16Ghz 128mb ATI. As the title states, can I swap the dead board for a 2.33 core 2 duo with 256mb ATI? Same form factor.