Consuming MII WebService in Java WebDynpro

Hello,
We are facing a strange situation...
We define a transaction in MII to be consumed as WebService in Java WebDynpro. This transaction is a simple query on a DB returning 4 fields :
Shift code : SHIFT
Shift description : DESCRIPTION
Start time : START_TIME
End time : END_TIME
It works fine, we use the import adaptative web service wizzard in netweaver developper studio to use this WS...
But if we to an update on the webservice, changing a field name for example (SHIFT -> SHIFTCODE), we start to have trouble...
We got then the very helpful error message :
Exception on execution of web service with WSDL URL '<sever>/WebServices/GetShift' with operation 'Xacute' in interface 'XacuteWSSoap'
If I display the model info using wdContext.currentRequest_XacuteElement().modelObject().associatedModelClassInfo().getModelInfo().toString()
I got the following (extract) :
<ModelClassPropertyInfo name="SHIFT" dataType="com.sap.tc.webdynpro.model.webservice.types.string(java.lang.String)" readOnly="false" qName="SHIFT" required="true" backendType="null"/>
As you can see, the model definition is NOT updated and we still have SHIFT as name instead of SHIFTCODE...
If someboby has an idea, it will save us our life ;o)
Thank you
PS:it the same behaviour if we add a field...

Oliver -
Did you try to reimport the WS model ..? If yes and still doesn't work...Try  to delete the old proxy in webdynpro ( adoptive ws) and import again.
To avoid code changes,you can give same old name while fresh import.
Adoptive WS in webdynpro  is not really like Adoptive RFC .It has some limitations.
Thanks
Hari

Similar Messages

  • Consuming ABAP webservice in Java

    Hi Gurus,
    We are publishing webservices from SAP and Java team is consuming them. For accessing the webservice  from java , we are maintaining User name and Password in SICF for that service.
    Now if we donot maintain the User name and Password in SICF for that service then Exception "Unauthorised " is coming in Java.
    We want to pass the User name and Password from Java. How to achieve this.
    Thanks
    Jitendra

    Hi John,
    thnx for quick response. i have given WSDL to Java team but they are unable to find " Logon service in the WSDL".
    Can u tell us for which XML tags we should search.
    Thanks
    Jitendra

  • 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,
    Sudheer

    Hi 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

  • Consuming external webservice in webdynpro

    Hi colleagues
    I am trying to consume a webservice "BORM_API_A1S_GET_UPD_SW_VECTOR" in webdynpro, it is an external webservice
    i have followed the below steps and ended up with an error
    Steps:
    1) created a Adaptive web service model
    2) got the WSDL source from "Remotelocation/fileSystem"
    3) given the WSDL URL Acess as "e:///C:\Documents and Settings\Desktop\BORM_API_A1S_GET_UPD_SW_VECTOR.wsdl"
    4) created a service group
    5) then i have done the " model to controller" binding and "controller to view" binding
    6) in the INIT method of controller i have creted the instance of the model and binded it to the context element
    7) set some some values in the init methiod(for input parameters)
    8) designed a view to get the values that are set into the input parameters
    9) Configured the service group
    i am getting an error saying    
    "*java.io.IOException: Cannot connect to https://service.sap.com:443/sap/bc/bsp/spn/swdc/slm/accessctrl.do, used user to connect: S0004119795, message : Unable to connect to service.sap.com:443 - service.sap.com*"
    I think i am doing wrong service confuguration
    steps i have followed to Configure the service group are given below
    1) logged into http://ldcidwd.wdf.sap.corp:50000/nwa
    2) SOA management-->technical information --> system connections
       here i have selected the provider systems tab, and created a new provider system of system type "Java"
    Here i need to provide someother information which i am not sure about what to provide, Could any one let me know what to be provided for the other fields
    u2022     System Type: Java
    u2022     System Name: <System ID> ?( what is this)
    u2022     Host: <Host>?
    u2022     System Description: My Web Service System
    u2022     Username: <Administrator>?
    u2022     Password: <Password for Administrator>?
    u2022     Profile Name: SAP_DEFAULT_PROFILE
    u2022     Mode: Multiple Services
    u2022     Services Source: WSIL
    u2022     WSIL URL: ?(what should be provided here
    u2022     Socket Timeout: 60.000
    Please let me know what shall i fill in this fields
    Thanks & Regards
    Swetha

    Hi Gayathri,
    i have opened the WSDL file and i found there are two URLS
    1) "<soap:operation
                        soapAction="http://www.sap.com/BORM_API_A1S_GET_UPD_SW_VECTOR" />"
    2)<soap:address
                        location="http://pwdf4431.wdf.sap.corp:1080/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sap/bosf_swdc_slm/accessctrl.do" />
    i have tried pasting the address URL ina n other IE and i was asked for Authentication
    Thanks & Regards
    Swetha

  • Consuming webservice in a webdynpro component

    Hi Experts,
    I have a third party free webservice as WSDL link.My requirement is to make use of that webservice in my webdynpro component.
    Can any body give me a step by step approach to consume that webservice in my webdynpro Component.
    If possible, Provide me some good material for consuming webservice in a webdynpro component.
    Awaiting for a useful reply.
    Thanks,
    Ramanan.p

    hi,
    Few indroductory sessions
    /people/thomas.jung/blog/2007/12/17/consuming-services-with-abap -Consuming webservices with webdynpro.
    It is possible to create webservice in ABAP as well as in Webdynpro.
    ABAP Webservice:
    http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
    http://www.sappro.com/downloads/SAPXI.pdf
    Webdynpro Webservice:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
    In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
    So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
    Edited by: Mahalakshmi kothuri on Jun 1, 2008 4:17 PM

  • How to consume a ABAP webservice in a  webdynpro app?

    Hi,
    I have a BAPI in ABAP that is exposed as a webservice. I want to use this to build a webdynpro app so that i can consume this webservice. This BAPI returns the Employee data. As soon as the person logs into the portal i am going to pass his login id to this BAPI so that it retrieves the Employee data for that user id. But i need to know the procedure of consuming this webservice in a webdynpro app. Any pointers in this regard will be greatly appreciated.
    Thanks,
    Arun E V

    Hi Arun,
    Consumption of a web service is univesal I guess so it wont matter if it is an ABAP webservice. For consumtion of webservice in Web Dynpro you can go through the following tutorials
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20car%20rental%20web%20service%20with%20web%20dynpro.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20car%20rental%20web%20service%20with%20web%20dynpro.pdf</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/creating%20an%20email-client%20using%20web%20dynpro%20and%20web%20services.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/creating%20an%20email-client%20using%20web%20dynpro%20and%20web%20services.pdf</a>
    Do reward points if it helps
    Regards
    Sid

  • Error while importing Webservice Model in NWDS in java WebDynpro

    Hi All,
    Our Project FileNet team has developed 1 web service and they have given us WSDL of that webservice. I have to use this webservice in my java webdynpro code. We have 2 different webdynpro DC, In one DC I have imported this webservice model as Adaptive web service model, that is I choosed create model  > Import Adaptive web service model->Local file system and URL (radio button)->No logical destinatination> and i pasted the WDSL url and imported the webservice, and i have done all the relevant coding and i am able to execute the webservice in my web dynpro code.
    But today in 2nd DC when I am trying to import that webservice , I am getting the error (check the URL metioned below in bold letters , copy the URL mentioned below and paste in the browser, there I have attached the screen shot of my error), now I am not able to import the WSDL in my NWDS, help me in solving this error, why this error is coming now when i was able to import same webservice some days back in some other DC. Now NWDS is not at all allowing me to import the WSDL.
    https://doc-0o-0k-docs.googleusercontent.com/docs/secure/5elephltc9fqco9g9svslcas2fe0vfp2/32ulb82g3ujf3faagc6tcs302if79vfs/1292241600000/09039132551478801166/09039132551478801166/0B74gjLoX5l3WOTA3NGYxMzYtODA5Ni00YjgzLThlZWEtMTcwNTIyNzNlYzgz?nonce=30ect8rgre40a&user=09039132551478801166&hash=85uqgdnm674vvgvli8oo4041n9lvj16n

    Hi,
    Please have a look at this threads
    Can not create Adaptive Web Service Model
    Problems embedding adaptive webservice model
    Regards
    Saravanan K

  • Error in consuming RFC Webservice in webdynpro

    Hi,
         I am trying to consume RFC Webservices in webdynpro.For that i created Z- functional module for availability check.But once i am deploying this application ,all the input fields of the corresponding application are disabled.
    The error is like
    Exception on execution of web service on destination 'DEFAULT_WS_EXECUTION_DEST' for operation 'ZwrMaterialAvailability' in interface 'ZWebService'
    Can someone help me to resolve this error?
    Thanks,
    Kundan

    Hi Saravanan ,
                             Thanks for your replay.
    Once i am testing the WSDL URL in netweaver webservice navigator,it showing an error like like
    Cannot download WSDL from http://host name.sap.com:8000/sap/bc/srt/wsdl/sdef_ZWEBSERVICE/wsdl11/ws_policy/document?sap-client=800: It is not allowed to access this service.
    But same URL is working fine in browser.It's displaying the XML file.
    Can you provide the solution to resolve this error?
    Thanks,
    Kundan

  • Consuming ABAP Webservice in Webdynpro app

    Hi,
    I have wrote a webdynpro app for consuming ABAP webservice. I used the procedure in the link below
    http://wiki.sdn.sap.com/wiki/display/WDJava/ConsumingABAPWebServiceinJavaWD
    Everything seemed to be went well, I created model and Webservice destinations. I have written the code for calling the webservice, which does not return data as part of response. I mean though the RFC returns data at the backend,its not showing the returned records in the webdynpro table.
    I have also tried checking the same by setting external break point. when the webservice is executed from my webdynpro app,it goes to the ABAP debugger and i could clearly see the records in the export parameters of RFC,but the same is not returned in the reponse object.
    Could any one let me know what could be missing. Any help is greatly appreciated?
    I have used the following code in Init method of my View
    Request_ZMYRFC input=new Request_ZMYRFC (model);
    wdContext.nodeRequest_ZMYRFC ().bind(input);
    ZMYRFC  req= new ZMYRFC (model);
    req.setPUserid("EDLAS00C");
    req.setPLtc("E");
    input.setMYRFC (req);
    IWDMessageManager manager = wdComponentAPI.getMessageManager();
        try
        wdContext.currentRequest_ZMYRFCElement().modelObject().execute();
          wdContext.nodeResponse().invalidate();
          wdContext.nodeZMYRFCResponse().invalidate();
          wdContext.nodeReturn_res().invalidate();
         wdContext.nodeItem_res_ret().invalidate();
          wdContext.nodeILtcg_res().invalidate();
          wdContext.nodeItem_res_ltcg().invalidate();
        catch(Exception e)
          manager.reportException(e.getMessage(), false);
    Thanks
    Santhosh

    santosh,
    Check provider system defination in nwa for webservice.After this mapp the provider system and service group after wd app deployed.This is mandatory while consuming webservice in webdynpro for latest versions of CE7.11 or later.for reference check this article/document. http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46
    Thanks,
    Murthy.
    Edited by: Murthy Karaka on Mar 22, 2010 12:59 PM

  • How to consume SOAP webservice in to my java/j2ee application

    Hi,
          I am a java developer. how to i consume SAP soap webservice in to my java application.
    scenario : 1
    We are migrating 2 specific java modules in to SAP System.But master details are stored in to my java application database.Those details are require
    to SAP application. So that they provide me WSDL file,  How to i consume soap webservice in to my java application and also, How to i provide master data details to SAP system through SOAP webservice.
    Any body provide me a detail instruction how to integrate SAP Application in to my java application using SOAP webservice. or
    In this scenario i will go for any one open source ESB to consume the soap webservice in to my java application, and provide master data to
    SAP application, can any one guide to me.

    Hi,
    What IDE are you using?, for example with Eclipse i used WSDL2JAVA plugin in this way i converted the WSDL in java classes easily. Depending your development environment you can use different tools that makes easier the integration using the WSDL.
    Regards.

  • Consuming WebServices in ABAP WebDynPro via webservice proxy code

    Hi,
    My requirement is to consume a webservice using WSDL(basic authentication) in WebDynPro ABAP. then based on the SOAP response I need to show a pop up message whether the response valid or not.?
    I first tested the webservice by creating LPCONFIG Logical Port and generated WebService Proxy class.
    It got response correctly with basic authentication enabled each time I send a request.
    Secondly I generated webservice proxy code using service calls on creating webdynpro test application with some UI elements. Service call created Nodes,attributes and method correctly.
    it's giving me error when it tries to invoke webservice method through generated code.
    Question is that How do we code authentication to the webservice method via WebDynPro ABAP code.
    I appreciate anyone who worked on this area and taken basic authentication via coding. or worked successfully through coding.
    Thanks
    Praveen

    hi
    Refer this:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6066fbe8-edc4-2910-9584-a9601649747d
    It might be usefull for u.
    Regards
    Vivekananthan.S

  • Consume XI webservice in MII

    Hi Gurus,
    I need to consume a webservice in MII (WSDL published using PI) , please give some guidance/link in this regard.

    Thanks for links ,those are helpful.
    however I tried the things it is giving me below error.
    SOAP service could not be loaded:XmlProxy Error:Status (401): Unauthorized.
    I have  superadmin authorization on both system (PI,MII). but the issue is when I am giving url of webservice it is not showing me the entry space of Username/Password. I am using MII 12.

  • Consuming webservice in ABAP Webdynpro

    Hi all,
    I am using SAP ECC 5.0.Can I consume External webservices using ABAP Dynpro.Sending related links will be highly appreciated.
    Regards
    Sandeep.S

    the thread is marked as answered? is it resolved or are you still looking for an answer

  • Consuming PI Webservice in Portal Components

    Hi
    How to Consume PI Webservice through Abstract Portal Component?
    Thanks
    Prasad

    Hi Sankar,
    If the webservice is working fine in the Wsnavigator then there is some problem with importing the webservice in webdynpro for Java. Please check the required parameter for creating the Adaptive Webservice Model. After adding in the used model and compoent controller binding, you need to write code for to execute the webservice model.
    Please check the code for initialization and execution for the webservice and then test it.
    Best Regards,
    Arun Jaiswal

  • BPM Java WebDynpro xsd:date decrease one day

    Hi Experts.
    I have a problem with the context between Java WebDynpro and BPM. I have an attribute of date type , when BPM call the Web Dynpro UI, this date it shows to user with one day minus, but in BPM Context and Web Dynpro context are with the correct date.
    I checked the BPM context and the value of this attribute is: "2011-08-06Z".
    I think that the problem is with the "Z" because it's like a time zone.
    Any suggestions?
    Thanks,
    Julian.

    Hello Julian,
    We faced the same issue as you, and after doing all checks in configuration, nothing!, finally we found a SAP note that recommends to change the date type to string types, but, we have a lot of webservices calls and mappings that requieres a "date" type and this make more dificult the "solution".
    Then we found a little tricky solution.
    We change the webdynpro Date types to Strings, and make the transformation in bpm mapping to cast as xsd:date,  finally in webdynpro you must perform a string.format for the outgoing date as BPM is specting the date ( "YYYY-MM-DD")
    With this solution you see a "date" type in BPM  context and String type in Webdynpro and the offtset disappears.
    This solution maybe is similar to SAP Note, but you don't need to change all your consumed webservices types.
    Regards!
    Julio Cesar Leyva

Maybe you are looking for