How to Create Web Service from RFC?
Hello Friends,
Can anybody tell me how to crete Web Service through RFC. Our client server has no SOAMANAGER. I have to proceed through WSADMIN and WSCONFIG. Please help me to create WS through these transactions.
Give me the step by step proces i have to follow.
Kumar
hi Kumar,
Refer this Doc:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c05b36f9-e7d4-2910-4488-a46be7ba2906
How to consume the Web Servise
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6066fbe8-edc4-2910-9584-a9601649747d
regards
Vivekananthan.S
Similar Messages
-
Web Service from RFC function module
Hi all,
I'm searching for a way to create web services from RFC-enabled function modules. I know there is a wizard, but it's not suitable for my problem:
I have around 30 function modules (number raising in near future) I want to enable for web services, most of them share the same structures representing the underlying data model. When one structure is modified (i.e. a new sub-structure is added) I have to recreate all web services, which is quite uncomfortable.
In addition, using the wizard results in one wsdl-file for each web service operation, that leads to an administration overhead using this web services from a java frontend.
So I'm searching for a "bulk creation". I also know the wizard can be used for a function group, but I can't put all my RFC-enabled function module in one function group, that would lead to confusion in the package.
Does anyone know how web services are created programmaticaly? If I had a function module which creates the web services I could write a function module which creates all web services I need.
Thank you in anticipation!
FlorianI'm not sure I understand the 're-create' part...how are you re-creating the web service? if you modify the interface of a function-based web service, then you use the 'modify operations' functionality (context menu - right-click) to regenerate the web service interface; this works for a function group based web service as well and hits all of the methods at once. As for the java overhead on function group services, stating the obvious, maybe you just need to lower the number of functions in your groups. We use .Net-developed applications with multi-function webservices and don't have any overhead issues.
-
How to create Web Service as a source system in BI and configure a DS
Hello,
I was wondering if you can give me the links to information where it is explained how to create Web Service as a source system in BI 7 NW 2004s and also how to create a data source that would read data from that Web Service?
Thanks,
AGHi AG.
Please check the following documentation which talk about this questions.
[Creating Web Service Source System|http://help.sap.com/saphelp_nw70/helpdata/EN/80/1a618ae07211d2acb80000e829fbfe/frameset.htm]
[Creating DataSources for WebServices|http://help.sap.com/saphelp_nw70/helpdata/EN/43/ec90a315434c5de10000000a155369/frameset.htm]
[Transfering Data Using WebServices|http://help.sap.com/saphelp_nw70/helpdata/EN/80/1a618ae07211d2acb80000e829fbfe/frameset.htm]
I hope that I can be helpful.
Thanks,
Walter Oliveira. -
Create web service from java code in Jdeveloper 11.1.1.5
I am try to create web service from java code by default it is connected to Integrated web logic server and generate a
WSDL like this.
http://localhost:7101/javaexcel-project1-context-root/MyWebService1Soap12HttpPort.
please tell me how we can change this local host to our needed Host and how to deploy this web service to web logic server.Hi,
Just right click on your project and deploy it to your application server (Weblogic Server (Not the Integrated server)). {Before that, you have create your Application server connection in the Jdeveloper).
After deployment open the Admin console of the weblogic server and find your ear of the project.Click on that (Go to the "Testing tab") and you will get the "WSDL" (Concreate wsdl) and "Test Client" of the Project. -
How to consume WEB SERVICES from ABAP ??
Q: How to consume WEB SERVICES from ABAP program??
the point here is i am using SAP release 620 and the creation of proxy is out of scenario
and also no XI. Its only through ABAP program i need to consume one web service (its a HTTPS one ),
Using cl_http_client... i tried it but i am totally confused of whats happening ???
Req some senior ppl advice on the same/approach.
any hints will suffice my way of approach...!!!
Please do put in your valuable advices..!!
Thanks in advance..!!!!Hello Srinivas,
Following is the code for calling web service:
data: client type ref to if_http_client,
host type string value 'server url',
service type string value '8080',
path type string value '/sap/public/ping',
errortext type string,
proxy_service type string,
scheme type i value 1.
call method cl_http_client=>create
exporting host = host
service = service
proxy_host = host
proxy_service = service
scheme = scheme
importing client = client
exceptions
argument_not_found = 1
internal_error = 2
plugin_not_active = 3
others = 4.
case sy-subrc.
when 0.
write 'Server reached successfully'.
when others.
write: 'sy-subrc =', sy-subrc.
endcase.
Once you got the client object you can call following methods:
"Set the requrie URL for the web service you want to call. This is not WSDL anyway!!
cl_http_utility=>set_request_uri( request = client->request
uri =' url 2 be called ').
*Then you can call send method with proper inputs for sending request to WS
CALL METHOD client->send
Then you can use receive method for getting the response
CALL METHOD client->receive
*You can get last error in case of exceptions
CALL METHOD cl_http_client=>get_last_error
*Close the client object
CALL METHOD client->close
For more information on full code refer my link in previous replay.
Thanks,
Augustin.
Edited by: Augustarian on Aug 18, 2009 1:49 PM -
Create web service from java class in Jdeveloper 11g
I have very simple java class which I want to expose as a web service. I am using the Jdeveloper's in-built wizard to "Creat Web Service" from a java class. While doing so when I am selecting a method to be exposed as a web service, I get a error pop-up which says "Failed to load system class."
I am not able to understand the reson for this error. I tried to do this with a very simple java code too but still no luck!!
Here is the code:
public class DownloadFileFromECMWrapper {
public DownloadFileFromECMWrapper() {}
public static void main(String args[]){
DownloadFileFromECMWrapper obj = new DownloadFileFromECMWrapper();
obj.callDownloadFileFromECM("C:\\shivam\\MyFile.txt");
public String callDownloadFileFromECM(String filePath){
System.out.println(filePath);
return filePath;
Can someone please help me on this.
Edited by: 962154 on Sep 28, 2012 2:37 PMI have very simple java class which I want to expose as a web service. I am using the Jdeveloper's in-built wizard to "Creat Web Service" from a java class. While doing so when I am selecting a method to be exposed as a web service, I get a error pop-up which says "Failed to load system class."
I am not able to understand the reson for this error. I tried to do this with a very simple java code too but still no luck!!
Here is the code:
public class DownloadFileFromECMWrapper {
public DownloadFileFromECMWrapper() {}
public static void main(String args[]){
DownloadFileFromECMWrapper obj = new DownloadFileFromECMWrapper();
obj.callDownloadFileFromECM("C:\\shivam\\MyFile.txt");
public String callDownloadFileFromECM(String filePath){
System.out.println(filePath);
return filePath;
Can someone please help me on this.
Edited by: 962154 on Sep 28, 2012 2:37 PM -
How to create Web services to communicate InfoPath forms to Share Point lists ?
How to create Web services to communicate InfoPath forms to Share Point lists ?
Hi,
As per your posting and my understanding, you wanted to communicate your infopath with SharePoint list/library. Please refer the below link(s) which may help you to solve your issue.
http://blogs.msdn.com/b/russmax/archive/2012/08/17/want-to-call-sharepoint-2010-web-services-within-browser-based-infopath-2010-forms.aspx
http://jaliyaudagedara.blogspot.in/2011/03/submitting-data-to-sharepoint-2010-list.html
or
http://blogs.msdn.com/b/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx
If you need more help please let usknow
Sekar - Our life is short, so help others to grow
Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever you
see a reply being an answer to the question of the thread, click "Mark As Answer -
How to create web services in java?
Hi,
I am a newbie to java webservices. Can anybody tell me how to create web services in java?
Any tutorial link or step by step doc would be useful.
Appreciate your help in this regard.
Thanks in advance.
naymo01.Creating web services in Java appears to depend highly upon the server you intend to use.
Here's a tutorial: http://java.sun.com/webservices/docs/1.6/tutorial/doc/index.html -
How to create Web Service Proxy with help of WSDL.
Hi ,
How to create Web Service Proxy with help of WSDL .
Please help me .
Thanks in advacne for reply .check out this article. It has all the details
http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html -
How to create web service client
Hi All,
I am new to web services .Can any body explain how to create web service client ....
Please give the give the discription step wise.
Thanx
ArunHi Krishna,
Yes it is possible.
Check this Link
[JDeveloper Web Service|http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_wstopdown/wstopdown.htm#t2]
http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_wstopdown/wstopdown.htm#t2
I strongly suggest you to go for Eclipse, instead of Netbeans or Jdeveloper incase of WebService. If you want to run your code in all the Server without making any changes go for Eclipse based development for Web Service.
Kindly let me know if you need some more inputs.
Regards,
Zack -
How to create Web Service & Web Service Client on OCMS
Hi all,
Is anybody can show me how to create Web Service on OCMS?
I only know how to do it on WebLogic Server.
It has many differences between OCMS and WLS.
Thanks & Regards,
Jack.Jack,
This tutorial can help:
http://www.oracle.com/technology/products/ocms/pdf/parlayxjdeveloper.pdf
Regards,
Adam -
How to call WEB Service From SAP
Hi Friends,
How to call WEB Service From SAP.
Thanks in advance,
Murali Krishna KHi,
if you mean calling a web service in Web Dynpro ABAP, see the <a href="http://help.sap.com/saphelp_nw70/helpdata/en/d7/951b42f828df2ce10000000a1550b0/frameset.htm">documentation</a>, if you mean calling a web service in general, this is not the correct forum. This here is the Web Dynpro ABAP forum, for general questions on ABAP, use the ABAP forum.
Regards, Heidi -
How to call web services from HTML
Hi All,
Does anybody have an idea on how to call web services from HTML using axis and i am using jboss-4.0.5 as the application server.What did your Google search return?
-
How to call web services from PL/SQL?
Hi,
Can one help in how to call web services from PL/SQL? Steps, pros and cons, etc....
Thanks in advanceHere's some example skeleton code to get you started...
PROCEDURE p_soap_request(p_username IN VARCHAR2, p_password IN VARCHAR2, p_proxy IN VARCHAR2) IS
soap_request VARCHAR2(30000);
soap_respond CLOB;
http_req utl_http.req;
http_resp utl_http.resp;
resp XMLType;
soap_err exception;
v_code VARCHAR2(200);
v_msg VARCHAR2(1800);
v_len number;
v_txt Varchar2(32767);
BEGIN
UTL_HTTP.SET_PROXY(p_proxy);
-- Define the SOAP request according the the definition of the web service being called
soap_request:= '<?xml version = "1.0" encoding = "UTF-8"?>'||
'<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">'||
' <SOAP-ENV:Body>'||
' <m:DownloadRequest xmlns:m="http://www.website.net/messages/GetDetails">'||
' <m:UserName>'||p_username||'</m:UserName>'||
' <m:Password>'||p_password||'</m:Password>'||
' </m:DownloadRequest>'||
' </SOAP-ENV:Body>'||
'</SOAP-ENV:Envelope>';
http_req:= utl_http.begin_request
( 'http://www.website.net/webservices/GetDetailsService.asmx'
, 'POST'
, 'HTTP/1.1'
utl_http.set_header(http_req, 'Content-Type', 'text/xml');
utl_http.set_header(http_req, 'Content-Length', length(soap_request));
utl_http.set_header(http_req, 'Download', ''); -- header requirements of particular web service
utl_http.write_text(http_req, soap_request);
http_resp:= utl_http.get_response(http_req);
utl_http.get_header_by_name(http_resp, 'Content-Length', v_len, 1); -- Obtain the length of the response
FOR i in 1..CEIL(v_len/32767) -- obtain response in 32K blocks just in case it is greater than 32K
LOOP
utl_http.read_text(http_resp, v_txt, case when i < CEIL(v_len/32767) then 32767 else mod(v_len,32767) end);
soap_respond := soap_respond || v_txt; -- build up CLOB
END LOOP;
utl_http.end_response(http_resp);
resp:= XMLType.createXML(soap_respond); -- Convert CLOB to XMLTYPE
END;Using secure web services (https)...
Web serivces call in Plsql
As for 'pros and cons'... there's nothing to compare against... either you want to call a web service or you don't. -
How to call WEB Service From SAP 4.6 c
Hi Friend,
How to call WEB Service From SAP 4.6 c Report
Thanks in advance.It is not possible to directly call a web service from SAP 4.6c.
Indeed, web service enablement is available as from Web AS 6.20, thus as from SAP R/3 4.7
So as described above, the solution is indeed to make use of PI(XI) for this.
Rgds,
Karim
Maybe you are looking for
-
Sun Java System Portal Server 6.0 FAQs
Sun Java System Portal Server 6.0 FAQs. Author: Sanjeev Agarwal Q. How to connect to external URLs from Sun ONE Portal Server? I want to use URL Scrapper for some of external sites/URLs. Ans: You can connect to external URLs if you have a Proxy Serve
-
Ora-12154 vs. tns-03505
Since both ora-12154 and tns(ora)-03505 deal with not being able to locate a connect string in tnsnames (or other naming method), has anyone ever seen a good definition of exactly what differentiates between the two? What little variable would trigge
-
Greetings, I have an MSI Slim Combo XS24 that I'm connecting to a new system using the MSI K8T Neo mobo. When I connect this drive to the machine, it shows up as a bootable device in the BIOS (v1.6). However regardless of what boot media I put in (
-
Revision: 11086 Author: [email protected] Date: 2009-10-22 11:42:17 -0700 (Thu, 22 Oct 2009) Log Message: Fixing Safari 4.x support for url change detection. QE notes: None Doc notes: None Bugs: SDK-22483 Reviewer: Alex Tests run: Manual browse
-
Access Timebased publishing in WebDynpro?
Hello All, I need to validate the documents from KM before showing them in my Web Dynpro application depending on the Time based publishing properties. I read the documentation on SDN for the same and tried using this example - http://etower.towersem