How to use Webservice

Hi there,
I am new to Web Dynpro, I want to know how I can use webservice using web dynpro development components. could anybody provide me with the steps.
Thanks in advance

Hi Antesar,
Chk this links,..
Webservices
http://www.webservicex.net/WeatherForecast.asmx?wsdl
Configuring Webservices
http://edocs.beasys.com/wls/docs81//ConsoleHelp/webservices.html
Creating Simple Webservices
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555
Webservices weblog
/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
Example
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/using%20car%20rental%20web%20service%20with%20web%20dynpro.pdf
Hope this will be useful for u..
GS

Similar Messages

  • How to use Webservice in Visual composer

    Hi,
    We have developed a RFC in R3 and converted it into Webservice. We want to use this in the Visual composer. Can anyone suggest some steps how to use this RFC in Visual composer?
    I tried the option in Tools--> Define webservice System and gave the following parameters:
    new system name = WDP (system name which we use)
    new system alias = WDP_VC (system alias which we created)
    webservice url = URL of the webservice which we have created and got in WSDL
    when we create it gives an error the URL is incorrect.
    Kindly let me know if these values are correct and suggest the steps to be followed. Also, if there are any prerequiste steps to be done before using this webservice.
    Thanks and Kind regards,
    Rajbarath.

    Hi,
    The option you described refers to defining a new web service system in the portal system landscape. So if you already have it defined - you don't have to define it again.
    As for the actual error you're getting, check that:
    1. The url is indeed accessible, and points to a wsdl. You can do this by simply inserting it in the browser's address bar and making sure you get a wsdl file in the response.
    2. Make sure that you don't need to authenticate, i.e. provide a user and password. Maybe you just forgot to provide these arguments.
    Lastly, keep in mind that this 'Define Web Service System' option is just a shortcut. Generally, you would define a web service system in the portal, like any other system, using the web service connector.
    Hope this helps,
       Lior

  • How to use Webservice in Webdynpro ABAP?

    I tried searching option for importing WSDL file in WebDynpro ABAP. But I am unable to upload it in my component. In service call wizard I can see only one option i.e. to import Function module.
    We cant use Webservice in ABAP webdynpro?
    Thanks
    Nitesh Shelar

    Thanks 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 can’t use wizard, as I don’t 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 use webservice using Jdev

    Hi All,
    Could some one please point me to a tutorial and let me know how to consume a webservice using Jdev.
    Scenario is, I want to extract data from Webserice which will be given by other department using Jdev.
    This will have basic authentication as well.
    I have created a Webservice client and Proxy and provided the WS URL, it is creating several files using Jax-WS Style.
    Now I want to test this webservice client, if its working fine and able to send us the data.
    Thanks

    Hi,
    see:
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/73-handson-wsdc-321927.pdf
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/72-wsprxyclient-pojodc-hands-on-321228.pdf
    Frank

  • How to use Webservices in SAP 7.0 SP 17

    Hi,
    I am having issues calling the webservices in SAP 7.0 SP 17.
    I am following the below mentioned tutorial to call a webservice from a portal project (PAR).
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b449e790-0201-0010-1188-ff17840712d3
    I have been successful to a point where my websevice needs authentication. I am not sure how to do this.
    Here is the code of doContent()
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
             try
                  logger.infoT("Inside doConent()...");
                   UserProfile up = pushUserProfileAttributes();
                   logger.infoT("After pushUserProfileAttributes()...");
                   ILDAPOperationsService port=(ILDAPOperationsService) PortalRuntime.getRuntimeResources ().getService (ILDAPOperationsService.KEY);
                   logger.infoT("After port()...");
                   RegisterUserResponse res = port.CreateExternalUserProfile(up);               
                   logger.infoT("After res ..user created." + res.getEmailAddress());
             } catch (UserRegistationFailed e){logger.errorT("Error in calling webservice...."+ e.getLocalizedMessage());}
                  catch (Exception e1){logger.errorT("Error in calling webservice...."+ e1.getLocalizedMessage());
    Its failing at RegisterUserResponse res = port.CreateExternalUserProfile(up);     
    and the error I am getting is
    Error : Error in calling webservice....com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: [Unauthorized].
    Any help with this will be highly appreciated.
    Also , if any documentation could be shared.
    Looking forward to hear something soon on this.
    Thanks,
    Shiv

    Hi Sumit,
    you may move your question to the ABAP for SAP HANA community (http://scn.sap.com/community/abap/hana).
    Are you asking about the SAP_BASIS version, or which version do you refer to?
    Best,
      Jasmin

  • How to use webservices in blackberry 8800 device using jde4.2.1

    Hi All,
    I develop mobile webservice applications in Java ME. Nowadays i am working on porting of an Application named "Newstouch". I am having problem in running it on JDE version 4.2.1.
    I successfully installed the JDE 4.2.1 with JDK 1.5. When I build project, there is no error then I go for Run the project on JDE's default simulator.
    As I started application from simulator, JDE shows me error,
    Starting WebServicesExample
    VM:LINK WebServicesExample
    VM:UNDF com.sun.midp.io.Base64
    Module 'WebServicesExample' has verification error 1317 at offset 0508
    Linker error: 'VerifyError' for WebServicesExample
    CMM: set CRCNVS: delete 2
    NVS: write 2
    NVS: commit 152
    Error starting WebServicesExample: Module 'WebServicesExample' has verification error 1317 at offset 0508
    please give me a solution for solving this issues
    thanks in advance
    renuChi

    There are demos on the SCM area on OTN. http://www.oracle.com/technology/products/repository/demos.html
    Regards
    Sue

  • What is Webservice and how to use Webservice in iOS6 programming? howmany Webservices are available in iOS?

    Please show me the examples of webservices.

    This looks like a question for the developer's forum. Here is a possible information link: http://mobile.tutsplus.com/tutorials/iphone/ios-quick-tip-interacting-with-web-s ervices/

  • How to send A file using Webservice?

    I heard about webservice when I read through XML...
    It a bit like XML cannot show off it strength without webservice...lol
    What is webservice? What library should I use to send a file from server to client using webservice?
    Webservice is Quite new for me. Any expert here can direct me to the tutorial link that can teach me how to use webservice?
    I go through some code :
    <?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://namespaces.cafeconleche.org/xmljava/ch2/"
    xmlns="http://namespaces.cafeconleche.org/xmljava/ch2/"
    elementFormDefault="qualified">What is xmlns? Is webservice can run it at localhost? My house don't have internet. :(
    Thank....

    to learn webservice..you can try these samples...
    http://www.csd.abdn.ac.uk/~bscharla/teaching/CS5302/practicals/practical8.shtml

  • How to use session in webservice?

    In C#, can use session variable in a webservice object.
    How to use session in Java webservice?
    Who can give me a example?
    Thanks a lot

    Did I use session in a wrong way?No, you are using the session correctly. The code looks fine.
    Check
    - your spelling of the attribute names - obviously they must match
    - the ids of the sessions you get both times: session.getId(). If they have different ids, then most probably the session is being lost somewhere.
    There are a number of reasons to lose a session. If you close the browser, invalidate the session in code, or lose the cookie recording the id. This happens when you change from https to http, so a session can be lost that way.
    The session is normally maintained by session cookies. If you close your browser you lose the cookie. If you have disabled cookies on your machine then it also might not work.
    In cases such as that you should be using the method response.encodeURL() to maintain the session for you in any hyperlinks you produce. Struts normally handles that for you though if necessary.
    Hope this helps,
    evnafets

  • How to create and use Webservice controls using WSDL in weblogic portal10.3

    Hi All,
    I have WSDL , How to create webservice controls using the WSDL in weblogic portal 10.3 and use those controls to invoke those webservice methods?
    please give me the documents links for this.
    Thanks
    Venkata Sarvabatla

    As far as I remember, Controls can be called only from Pageflows, BackingFiles, Another Control (Like control calling another control) etc. In pageflow we use annotation @Control and give control classname and a varialbe for that. I am pretty sure this annotation may not work from normal java class and in your case a JAVA JSR Class.
    If you installed the samples, refer the samples from WLS: C:\beawlp103\wlserver_10.3\samples\server\examples\src\examples\webservices. They have lot of fully ready to work samples with instructions. I used clientgen ant task. But you can use standard SUN JDK Command "wsimport" also to generate the java files from the WSDL. Open any command prompt. If java is in classpath, just run wsimport and that should give an idea.
    Goud

  • How to call webservice application using Browser

    Hi Everybody,
    Synchronous Scenario:  Calling XI Server using WebServices( Sending the Customer no through Soap and from there the receiver adapter RFC is picking that no and it will send it to R/3 using BAPI and getting the Customer Details from R/3.
    I followed the below two blogs and I created the complete scenario. And I deployed the ear file in WebAs in xi server.
    Now the question is how to run this program using the browser. That is how to call.
    Message Interface Name: CDWS_MI
    Service Name                : Soap_Service
    Namespace                   : urn:xiwebservicesusingwebdynpro.com
    Can you tell me how to call through the browser?
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3592---- [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    >1
    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]
    >2
    Advance thanks,
    Abdullah Shaik.

    Hi,
    It's not clear to me what you did. Have you exposed an XI Message Interface through a Web Service? Or have you developed a Web Service in the other way? What is the "ear" that you said? Is an webdynpro app? If it is, I think your question would be properly answered at WebDynpro forum
    cheers!
    roberti

  • How to call webservice using jdev9i

    Hi gurus and experts,
    i need to consume a webservice using oaf. with great effort finally i created stub using axis s/w.
    now i dont know how to use the stub in jdev.where to write the code and what to write.iam strucked :-( .
    since there were no sample tutorial about how to call webservice from jdev9i, iam struggling to make.iam jus a starter.
    and while googling i came to know that stubs can be created using jdev9i .but when i see new-->webservices--web service stub it is greyed out.
    i have 2 questions now:
    1)if stub created using axis can it be used in jdev9i? if yes ,please tell me how? any tutorial links also helps me.
    2)if the stubs should be created only by jdev9i so that webservices can be called using jdev,then please guide me how to make it.
    i need some helping hands from u guys.
    Thanks a lot
    Edited by: 881533 on Oct 25, 2011 2:34 AM
    Edited by: 881533 on Oct 25, 2011 2:37 AM

    Hello sir,
    i got following reply:
    <returnRecordResponse  xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <returnResult>Error_request</returnResult>
    </returnRecordResponse>
    but correct response is
    <returnRecordResponse  xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <returnResult>Success</returnResult>
    </returnRecordResponse>
    can you tell me correction in the code which i have put on the forum?or tell me other way to call webservice?

  • How to use ABAP Webservice to Trigger the start of BPMN

    Hello,
    My scenario is that i define a webservice in the SAP ECC system and import it in the process composer as the service interface. As to the start event, i set the above service interface and operation as the trigger service.
    After then, i call this webservice in the user exit of a T-Code. However, the BPMN is not started by this webservice call.
    Anyone can explain on this and tell me how to use the ABAP webservice as the starting event service interface?
    Thanks in advance
    Erick

    Hi Erick,
    When you develop a process model and use some arbitrary service interface in the message start event then this will be exposed on the Java / BPM system you deploed the process definition on.
    That allows you to start the process via this web service once you know its endpoint.
    So in case you want to start your process from the ABAP side you would need to call this endpoint on the Java side out of your ABAP system.
    Simply calling the web service / code on your ABAP system and hoping that this will also invoke the Java stack won't work I AFAIK.
    Best regards,
    Martin

  • How to use a webservice in  JSPDyn page

    hai,
       I have created one webservices but i donot how to use that webservices in JSPDyn page.
      can anyone give solution for this problem
    Rds
    Shanthakumar

    Check out the Axis user's guide at: http://ws.apache.org/axis/java/user-guide.html

  • How to use This webservice in PHP ?

    Hello.
    I'm trying to use this webservice in PHP but there isn't a documentation or something that can help me.
    I have this function, and she returns to me a sessionID :
    function wslogin() {
         global $crmdomain;
         $url = $crmdomain . "/Services/Integration?command=login";
         $page = "/Services/Integration?command=login";
         $headers = array(
         "GET ".$page." HTTP/1.0",
         "UserName: *****",
         "Password: *****",
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_URL,$url);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
         curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
         curl_setopt($ch, CURLOPT_HEADER, true);
         $data = curl_exec($ch);
         if (!curl_errno($ch)) {
              // Show me the result
              $sessionid = substr($data,(strpos($data,"Set-Cookie:")+23),(strpos($data,";")-strpos($data,"Set-Cookie:")-23));
              curl_close($ch);
              return $sessionid;
    Now, i want to retrieve for example an user... i need to get an user, set an user (insert or update), check if a user exist or not...
    I have test this :
    function getContactInfo ($contactid,$sessionid) {
         global $crmdomain;
         $serverpath = $crmdomain . "/Services/Integration;jsessionid=$sessionid";
         $namespace= "urn:crmondemand/ws/contact/10/2004";
         $soapaction = "document/urn:crmondemand/ws/contact/10/2004:ContactQueryPage";
         $param = "<ListOfContact>
         <Contact>
         <IntegrationId>='$contactid'</IntegrationId>
         <MrMrs/>
         <ContactFirstName/>
         <ContactLastName/>
         <JobTitle/>
         <Department/>
         <AccountName/>
         <AccountId/>
         <PrimaryAddress/>
         <PrimaryCity/>
         <PrimaryZipCode/>
         <PrimaryCounty/>
         <PrimaryCountry/>
         <AlternateAddress1/>
         <AlternateAddress2/>
         <AlternateAddress3/>
         <AlternateCity/>
         <AlternateZipCode/>
         <AlternateCounty/>
         <AlternateCountry/>
         <ContactEmail/>
         <WorkPhone/>
         <WorkFax/>
         <CellularPhone/>
         </Contact>
         </ListOfContact>
         $method = "ContactWS_ContactQueryPage_Input";
         $response = getwsresponse($serverpath,$namespace,$soapaction,$method,$param,$debug);
         return $response;
    function getwsresponse($serverpath,$namespace,$soapaction,$method,$param,$headers=""){
         require_once('nusoap-0.9.5/lib/nusoap.php');
         $client = new nusoap_client($serverpath, array('trace' => 1));
         if($headers != ""){
              $client->setHeaders("$headers");
         $response = $client->call($method,$param,$namespace,$soapaction);
         return $response;
    But when i check : var_dump(getContactInfo("Integrationd",wslogin())); i have always false...
    I have no idea how to use this webservice. Can you help me ?
    Thanks !
    Edited by: 990614 on 27 févr. 2013 00:29

    Perhaps a shorter example would be more appropriate to ask about.
    Use bbcode code tag http://www.phpbb.com/phpBB/faq.php?mode=bbcode#5 to enclose code.
    -- cj

Maybe you are looking for