Creating web service for bapi and consume in portal.
Hi ,
I am new to Web Services. This is my requirement I need to publish the functionality of bapi as a web service and consume the web service from portal side.
I have followed these steps to create web service.In transaction se80 i have created service definiton and a wsdl file is generated.
When i am exporting that WSDL file and creating a model in a webdynpro project. I am getting the following error. I dont know how to proceed further.Error while loading WSDL.Check error log for more details.
Whether the proxies need to be generated?What is the purpose of it? Where the proxies need to be generated?
Is Process integration needed to use web services?
Kindly guide me how to proceed.
Best Wishes
Idhaya R
the proxy is the object that make possible to use the service; even if service and consumer are on the same host, you need a proxy to use it.
try to check this blog
/people/thomas.jung/blog/2007/12/17/consuming-services-with-abap
Similar Messages
-
Is it possible to create web services for classes and bol objects?
i am new to crm web channel,can any one please ,help me....
thank u in advance,
kiran.Hi Kiran,
Here, when you are talking about classes and BOL objects together, I assume you are talking about the BOL layer for CRM. If that is the case, and you have no dependency on WCEM for these objects, I would suggest you use the NW gateway to expose Odata web services from the CRM box itself. If you would like to expose the Odata web services from WCEM, please have a look at Ch 7 Dev & Extension Guide available in help.sap.com/wec301.
Good luck!
Regards
Pranshu -
Issue in creating web service for a ABAP Function Module
Hi,
now i'm learning how to create web service for a ABAP Function Module. I used the following steps.
1. select the Function Module, named "zws_test".
2. in the context menu, select "create->proxy object". so we enter into wizard.
3. in the wizard, press the radio button "Service Provider".
4. in the next page, press the radio button "Existing ABAP Objects(Inside Out)".
5. In the next page, Enter the "zws_test_prvider" as Service Definition and select "Function Module" as Endpoint Type.
6. in the next page, enter "zws_test" as Function Module and mark the "Mapping der Namen" button
7. in the next page,select "PRF_DT_IF_SEC_LOW" as Profile and mark "Deploy Service".
8. Save in the local package.
9. then it will pop up a window with title "WSDL Source". i selected "URL/HTTP Destination" and press "OK".
10.in the next page, i enter the URL as "http://hostname:portnumber/", and press "OK".
11. then it will pop up a window with title "Display logs". A record with error message "HTTP error(return code 404, message "Not found")" appears.
12. i press "ok" and a service provider with name "zws_test_prvider" appears in my local package.
13. i use "zws_test_prvider"'s URL to create a service consumer "ZCO_WS_TEST_CONSUMER" and logic portal "LP1".
14. But when i test my service consumer "ZCO_WS_TEST_CONSUMER", it will throw an exception "cx_ai_system_fault" with errortext "SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/".
15. I use t-code SM59 to test connection and get the following info.
Status HTTP Response 200
Status Text OK
Duration Test Call 328 ms.
who can give me the reasons about item 11 and 14, and explain me how to create service provider and service consumer for a Function Module.
Thanks in advance
Johnneyhave you seen this weblog
/people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices -
How to create web service for a Java class in SAP NetWeaver Studio
hi all,
i am using SAP Netweaver Developer Studio.have created a normal java project and i want to create web service for one of the classes in this project. i used the Web Service Creation Wizard to create a web service for this class. but it says there's no methods available for VI. all my methods in this class are public, what should i do?Hi,
I guess there are other ways. But this is an easy way, if you find the right wizards.
Besides this it is good practise to define interface methods so that session bean implement these interface methods, and thus seperate the interface from the implementation.
In this approach you will need 3 projects:
An enterprise application project (will contain EJB Module)
An EJB Module project (will contain session bean)
A Java project (contains code that implements the session bean methods)
In my previous post I suggested to use a J2EE web mudule project. This was a mistake, it should be EJB module.
But it should be possible to do it in another way. It is up to you.
Good luck, Roelof -
XI for create web servicies for SAP R/3 4.6C
Hi All,
we are implementing PM (Plant Management) module of SAP R/3 4.6C and we have the necessity to create web services for some PM functionalities. Infact we need to integrate our SAP R/3 4.6C with other applications (non-SAP) through TIBCO (it's mandatory). So we think to use SAP XI. Moreover our users don't want to use SAP GUI for the accessing to the PM functionalities but they want an UI more friendly. So we think to use SAP EP.
Which is your opinion about this architectural scenario? Is it possible to fulfil the requirement of our business users with a more simple architectural solution (for example with WEB DYNPRO)?
Many thanks in advance for your collaboration.
Regards,
BobInfact we need to integrate our SAP R/3 4.6C with other applications (non-SAP) through TIBCO (it's mandatory). So we think to use SAP XI.
TIBCO is another middleware. So once you expose your R/3 functionalities as web service, you may directly use TIBCO to integrate and XI won't be required at all.
Moreover our users don't want to use SAP GUI for the accessing to the PM functionalities but they want an UI more friendly.
WebDynpro application would provide you an easy GUI and could act as Soap client as well to send data.
Regards,
Prateek -
Creating Web service for PL/SQL Procedure with Complex Data Types
I need to created web service for PL/SQL Procedure with Complex Data types like table of records as parameters, how do we map the pl/sql table type parameters with web service, how to go about these?
Hello,
When you are creating a service from a Stored Procedure, the OracleAS WS tools will create necessary Java and PL wrapper code to handle the complex types (table of record) properly and make them compatible with XML format for SOAP messages.
So what you should do is to use JDeveloper or WSA command line, to create a service from your store procedure and you will see that most of the work will be done for you.
You can find more information in the:
- Developing Web Services that Expose Database Resources
chapter of the Web Service Developer's guide.
Regards
Tugdual Grall -
How to create web service for database application
Hi everyone
Is it possible to create a web service for an apex database application page which has reports and radio fields and dialog boxes and validations in it. IF it is possible to create, pls help me with example or step by step procedure. I have seen all oracle docs of implementation of Web services in apex but unable to figure out how to get that link of wsdl for an application.
Thanks in advance.
Regards
Sandeep ArthamHi,
I guess there are other ways. But this is an easy way, if you find the right wizards.
Besides this it is good practise to define interface methods so that session bean implement these interface methods, and thus seperate the interface from the implementation.
In this approach you will need 3 projects:
An enterprise application project (will contain EJB Module)
An EJB Module project (will contain session bean)
A Java project (contains code that implements the session bean methods)
In my previous post I suggested to use a J2EE web mudule project. This was a mistake, it should be EJB module.
But it should be possible to do it in another way. It is up to you.
Good luck, Roelof -
Can't create web service for other servers
I am trying to create EJB web service for JBoss 4.0 but getting error in "build-impl.xml " file on the following line
"<taskdef name="wscompile" classname="com.sun.xml.rpc.tools.ant.Wscompile">"
Is there any way to create an web service for another servers.
OR
Is there any way to configure "wscompile" tool to generate the web service for other servers
It would be of greate help if any-body responds
thanks in advance
paragHi,
The following article
http://developers.sun.com/prodtech/javatools/jsenterprise/reference/docs/jse7/jse7_jboss_plugin.html
describes how to configure the JSE IDE to develop and deploy a J2EE application on a JBoss Application Server by using the JBoss plug-in.
Hope this helps.
Radhika -
Java API (web services) for exportMetadata and importMetadata
We ususally use WLST command : exportMetadata and importMetadata to export/import MDS. is there any corresponding web services or Java API avalaible for the similar purpose?
ThanksHi,
U can expose a EJB or a java class as a webservice in webdynpro and u can use it in webdynpro directly and if u want to use it through Portal u need to create proxies and do it.
U can go through this weblog which helps u in creating a Bean as a webservice.
/people/sap.user72/blog/2005/09/15/creating-a-web-service-and-consuming-it-in-web-dynpro
And u can expose the services created in XI also as webservices.
Regards,
Sirisha. -
Create web service for /POSDW/CREATE_TRANSACTIONS_EXT
Hello Experts,
In our POSDM implementation, we are trying to connect third party POS to POSDM via custom Middleware (.net application). I am trying to create a webservice for /POSDW/CREATE_TRANSACTIONS_EXT function module so that via middleware we can upload the T-log into POSDM.
While creating a web service we are getting an error "
SOAP application
"urn:sap-com:soap:runtime:application:rfc:710"
does not exist"
I have also checked the function module is RFC enabled. If anybody can put some light on how to solve this problem would be really appreciated.
Thanks
MayankHi Mayank,
Use transaction ST22 in R3 (where you have created the RFC) and see what error has occoured. This will help you to solve your problem.
Since you got RFC_ERROR_SYSTEM_FAILURE exception, therefore have a look at the dev_jrfc.trc files. These files are written by JRFC and can be found in the directories j2ee/cluster/server* of the J2EE Application Server Installation.
Thanks and Regards,
Ramesh D -
Communication error when calling web service for checkin and checkout files
Hello,
I am trying to checkout and also to checkin files within the DMS via web service. The files are stored in the VAULT (=TRESOR) without the data server parth and DVA computer.
For checkout:
Original zum Ändern auschecken
CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTMODIFY2'
EXPORTING
documenttype = pi_documenttype
documentnumber = pi_documentnumber
documentpart = pi_documentpart
documentversion = pi_documentversion
documentfile = lf_documentfiles
pf_http_dest = ''
pf_ftp_dest = ''
statusextern = lf_status
IMPORTING
return = lf_return
checkedoutfile = ls_checkedoutfile.
and for checkin:
Dokument einchecken
CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
EXPORTING
documenttype = pi_documenttype
documentnumber = pi_documentnumber
documentpart = pi_documentpart
documentversion = pi_documentversion
hostname = ''
statusintern = ''
statusextern = lf_status
statuslog = ''
IMPORTING
return = lf_return
TABLES
documentfiles = lt_files.
But it is not working cause I always get a 'communication error' from the function CV120_FTP_START_REG_SERVER when calling one of these BAPIs via web service:
IF pf_check_gui = 'X'.
CLEAR: gf_gui_exist,
gf_gui_checked.
CALL FUNCTION 'RFC_PING'
DESTINATION 'SAPGUI'
EXCEPTIONS: communication_failure = 1 MESSAGE lf_msg_text
system_failure = 2 MESSAGE lf_msg_text.
IF sy-subrc = 0.
gf_gui_exist = 'X'.
ELSE.
CLEAR gf_gui_exist.
ENDIF.
gf_gui_checked = 'X'.
ENDIF.
Afterwards the following function is called where I got the error 'Program no longer started via RFC. No return possible.':
-> Vault with DVA -> ** Start FTP on the client
CALL FUNCTION 'SYSTEM_START_REG_SERVER'
EXPORTING: progname = 'sapftp'
startmode = '' " X
exclusiv = 'Y'
waittime = 500
startcomp = 'C' " G=gui, C=RFC
startpara = ' '
IMPORTING: err_code = lf_errno
err_mess = lf_error_msg
destination = pfx_destination.
Regards
JensHi! As mentioned below I had the same problem.
There are two notes concerning security setting of the SAP Gateway:
1069911 - GW: Changes to the ACL list of the gateway (reginfo)
1480644 - gw/acl_mode versus gw/reg_no_conn_info
Your basis team should check if the Gateway settings allow external programs to register on the gateway.
Best regards
Dominik -
Web Services for BW query - consuming in ADOBE FLEX
Hello Gurus,
Somehow, my client is not going ahead with BO Xcelsius dashboard solution due to budget problem so i am plannign to create some dashboard in ADOBE FLEX using web services. Do any one of u have implemented this kind of scenario? My intension is to go ahead with some good looking , better features which can be used as an alternative of Business Objects. I can see some tools like COGNOS, QLickview etc but I saw the look and features of ADOBE FLEX last week and tried explorin it.
1) You can either suggest alternative tool OR
2) if any one of you have used Web services to create ADOBE FLEX reports then let me know. I went thru some forums, blofgs and videos in SDN and came to know how to activate Web services in SAP BI side and got little idea. I didnt see anybody used ADOBE FLEX on the top of SAP BI query.
Thanks in Advance.
Rahul.no answer so closing
-
Question about creating Web service for Xcelsius
Has anyone successfully written a Web service in .Net C# that Xcelsius can use? I was just trying to create something simple and it will not work. I get data in my Xcelsius report, but it is all lumped into one 'cell' and the XML tags are still in there. If anyone has some sample code that does work it would be much appreciated.
Here is what I have:
public string getTableInfo()
SqlDataAdapter dbadapter = null;
DataSet returnDS = new DataSet();
using (SqlConnection dbconn = new SqlConnection(
"Server=SERVER;"
+ "Database=DB_NAME;"
+ "User ID=ACCOUNT;"
+ "Password=PW123;"
+ "Trusted_Connection=False;"))
SqlCommand cmd = new SqlCommand();
string sqlQuery = "select FIELD1, FIELD2 from TABLE";
cmd.CommandText = sqlQuery;
cmd.Connection = dbconn;
dbadapter = new SqlDataAdapter(cmd);
dbadapter.Fill(returnDS);
return returnDS.GetXml();
thanks!!!Hi Jeremy,
This might get you closer (VB.net): VB.net code to create XML
Regards,
Matt -
Unable to create web service for axis2 client
Hi,
Iam very new about using axis2. What i want to do is to generate a webservice for my client. Client should be able to send data to server using those services. My xml pattern is given below.
<test1>
<test2>
<test3>
<test4></test4>
<test5></test5>
</test3>
<test3>
<test4></test4>
<test5></test5>
</test3>
</test2>
</test1>
I used inner class to generate suck kind of xml, but due to lack of knowledge, i was unable to do that. Below is my test class.
public class EchoService{
public MyInnerClass retMyInnerClass(MyInnerClass test1) {
return test1;
public class MyInnerClass {
private String test2;
public MyInnerClass() { }
public void setTest2(String test2) {
this.test2 = test2;
public String getTest2() {
return this.test2;
Please help me to find my mistake.
Thanks
ProjjwalHi there.
I don't know what the problem is with NetBeans, but if you see the local copy of the WSDL in the firstcup-war project, you will find that the name of your computer should be there as part of the URL. Change it to 'localhost' or to '127.0.0.1' and it should work.
Example:
<xsd:schema>
<xsd:import namespace="http://webservice.firstcup.sun.com/" schemaLocation="http://localhost:8080/DukesAgeService/DukesAgeService/__container$publishing$subctx/WEB-INF/wsdl/DukesAgeService_schema1.xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"/>
</xsd:schema>And...
<port name="DukesAgePort" binding="tns:DukesAgePortBinding">
<soap:address location="http://localhost:8080/DukesAgeService/DukesAgeService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"/>
</port> -
Can WLS 6.1 creat Web Services for JB insted of EJB?
I mean can the wsgen utility generate Proxies and other needed pieces and pack
them proprietarily if I would substitute the EJB by JB ?I mean can the wsgen utility generate Proxies and other needed pieces and pack
them proprietarily if I would substitute the EJB by JB ?
Maybe you are looking for
-
Please help me play a rented itunes video on apple tv. Have a pictue and movie runs for about three seconds, and then stops. No sound? But I can play any music from my library with sound?
-
Is there any way i could burn a DRM-protected movie from iTunes?
Every time i burn something i get an error in iTunes (error 4280), so i try to burn it with a more reliable software but then another iTunes-related error pops-up (This video is iTunes-DRM protected). Is there anyway i could possibly burn something f
-
How come all descriptions in slideshow were lost after exporting to video?
Hi, I'm new to iPhoto 9. I'd made a slideshow & tried to export it in different ways, but not successful: 1) when I exported it as a video, all photo descriptions in the slideshow were lost, only the music was kept. 2) I'd also tried to export the sl
-
Configuring ODI to use Fusion Middleware OBIA 11.1.1.7.1 Installation
Hi, I am trying to install OBIA 11.1.1.7.1 in Windows 2008. All went well , upgraded weblogic to 10.3.6 When I run the following command create the wallet files, The command used : c:\Middleware\Oracle_BI1\common\bin\wlst.cmd c:\Middleware\Oracle_BI1
-
Multiple conditions for same fault in fault-policies.xml
Hi all I have below fault-policy and bound to composite level. When I tested this with RemoteFault, I see only HumanIntervention action is happening, I do not see retry is working. As per my understand and below configured policy, framework should fi