WebService Model Node

Hi experts,
I have worked with WebDynpro Java. There is it possible to create a WebService Model with a Wizzard. After that you can
drag and drop Model Nodes to the context node and view and bind them to a view.
Is this not possible in abap? Have I to create all Nodes and attributes by my own without wizzards support?
This could be a lot of work for a complex service 
Thansk in advance

Hi SAP User,
In Webdynpro ABAP you can not drag and drop to the context node to create them, but you can use a wizard to add Nodes with a certain data dictionary structure.
Since the Webservice (you probably mean BAPI / Function Module) is always using data dictionary elements/structures as importing and exporting parameter, it might be more work as in Webdynpro Java but it's still relatively fast..
So you have some kind of wizard support, but not as complete as in Java.
Regards,
Roelof

Similar Messages

  • Error in Adaptive WebService Model when creating instance of Node

    Hi All,
    I have created an Adaptive WebService Model which calls a WebService. This WebService has been generated in the CAF and represents an Application Service. One of the Methods of this Application Service returns a Complex Type which contains a list of BOs.
    However, when creating an instance of the Request Node, I receive an exception. The coding is:
           JobAppModel model = new JobAppModel();
           Request_GetAllJobApplications requestMO = new Request_GetAllJobApplications(model); <==
    The exception is
    com.sun.jdi.InvocationException occurred invoking
    The exception is not shown on the screen, only in the debugger in the field where you can see the variables.
    Does anybody know where thgis exception ma ycome from or where my mistake is?
    Thanks, Johannes

    Hi
    Have u define the system property path and return type ?
    Have a look on this threads
    [Test|Problem with XI web service,;
    Best Regards
    Satish Kumar

  • Return parameter of a Webservice model in web dynpro

    Hii,
    I have imported one webservice model in my web dynpro application.
    After execution, when web service returns 'NULL'  ( i checked in web service navigator)
    but at the same time, the response node in web dynpro is NOT NULL and it is showing size 1 ??
    How come this is possible? When i check the attributes of response node, they are all NULL...
    Im checking response node this way==>
              wdContext.currentRequest_BodyShopUAViDocument_checkUsernamePasswordElement().setUsername(uniqueName);
    wdContext.currentRequest_BodyShopUAViDocument_checkUsernamePasswordElement().setPassword("dummy");
    wdThis.executeRequest_BodyShopUAViDocument_checkUsernamePassword();
    if(wdContext.nodeResponse() == null){
          WDClientUser.forceLogoffClientUser("someURL");
    Pls help me in resolving this...
    regards,
    Amey

    Hi Manoj,
    I'm checking webservice, this is the session bean method for which i hav created web service==>
    public UserDTO checkUsernamePassword(String username, String password) {
    // TODO : Implement
                    UserDTO UserMasterResult = null;
              java.sql.Date sqlDate = null;
              java.util.Date utilDate = null;     
              try{
                   Collection result = userMasterLocalHome.findByUsernamePassword(username,password);
                   // If invalid user
                   if (result.size() == 0)
                        return UserMasterResult;
                   }else {
                        // Valid user found. Returning the details                              
                        UserMasterResult = new UserDTO();
                        for (Iterator it = result.iterator(); it.hasNext();) {
                             userMasterLocal = (UserMasterLocal) it.next();
                             UserMasterResult.setLoginid( userMasterLocal.getLoginid() );                         
                             UserMasterResult.setUsername(userMasterLocal.getUsername());
                             UserMasterResult.setPassword(userMasterLocal.getPassword());                         
                             UserMasterResult.setUserrole(userMasterLocal.getUserrole());
                             UserMasterResult.setEmail(userMasterLocal.getEmail());
                             UserMasterResult.setCreatedAt(userMasterLocal.getCreatedAt());
                             UserMasterResult.setCreatedBy(userMasterLocal.getCreatedBy());
                             UserMasterResult.setChangedAt(userMasterLocal.getChangedAt());
                             UserMasterResult.setChangedBy(userMasterLocal.getChangedBy());
                             UserMasterResult.setData1UserMaster(userMasterLocal.getData1UserMaster());
                             UserMasterResult.setData2UserMaster(userMasterLocal.getData2UserMaster());
                             UserMasterResult.setData3UserMaster(userMasterLocal.getData3UserMaster());     
              }catch(Exception e){               
                   e.printStackTrace();
              return UserMasterResult;     
    M i going wrong somewhere here???

  • Accessing model node with cardianlity 1 to 1 throwing error

    Hello All,
    I'm try ing to set values to a model node in the request for a mass update.
    in teh model nodes, one of the model node is mandatory with 1:1 cardinality.
    i cannot call the currentElement() nor the create and addelement
    both throwint the same error as below.
    I'm using CE 7.2 engine, and its very critical for me to complete this update.
    com.sap.tc.cm.base.exception.BaseModelRuntimeException: No object for mandatory target role 'Position' of model class 'uk.co.apps.bertha.wdj.model.wd.models.managets.PositionWrapper' with cardinality 'ONE' maintained
        at com.sap.tc.cm.base.model.BaseGenericModelClass.getRelatedModelObject(BaseGenericModelClass.java:436)
        at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass.getRelatedModelObject(WSTypedModelClass.java:82)
        at com.sap.tc.webdynpro.progmodel.context.DataNode.doSupplyElements(DataNode.java:162)
        at com.sap.tc.webdynpro.progmodel.context.DataNode.supplyElements(DataNode.java:106)
        at com.sap.tc.webdynpro.progmodel.context.Node.getElementListAsObject(Node.java:244)
    the generated code, i have a list to which i have to bind this node to, there is no code generated as i see it.
    i tried regenerating and it doesnt help.
    the following is the complete stack
    com.sap.tc.cm.base.exception.BaseModelRuntimeException: No object for mandatory target role 'Position' of model class 'uk.co.apps.bertha.wdj.model.wd.models.managets.PositionWrapper' with cardinality 'ONE' maintained
      at com.sap.tc.cm.base.model.BaseGenericModelClass.getRelatedModelObject(BaseGenericModelClass.java:436)
      at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass.getRelatedModelObject(WSTypedModelClass.java:82)
      at com.sap.tc.webdynpro.progmodel.context.DataNode.doSupplyElements(DataNode.java:162)
      at com.sap.tc.webdynpro.progmodel.context.DataNode.supplyElements(DataNode.java:106)
      at com.sap.tc.webdynpro.progmodel.context.Node.getElementListAsObject(Node.java:244)
      at com.sap.tc.webdynpro.progmodel.context.Node.getElements(Node.java:251)
      at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:390)
      at com.sap.tc.webdynpro.progmodel.context.Node.getCurrentElementInternal(Node.java:689)
      at com.sap.tc.webdynpro.progmodel.context.Node.getCurrentElement(Node.java:696)
      at uk.co.apps.bertha.wdj.ui.ts.wd.comp.tscomp.wdp.IPublicTeamStructComp$IPositionUpdateNode.currentPositionUpdateElement(IPublicTeamStructComp.java:10729)
      at uk.co.apps.bertha.wdj.ui.ts.wd.comp.tscomp.TeamStructComp.saveMyChildren(TeamStructComp.java:920)
      at uk.co.apps.bertha.wdj.ui.ts.wd.comp.tscomp.TeamStructComp.saveNewChangedTeam(TeamStructComp.java:882)
      at uk.co.apps.bertha.wdj.ui.ts.wd.comp.tscomp.wdp.InternalTeamStructComp.saveNewChangedTeam(InternalTeamStructComp.java:925)
      at uk.co.apps.bertha.wdj.ui.ts.wd.comp.tscomp.TeamStructEditView.onActionSubmitSuccess(TeamStructEditView.java:481)
      at uk.co.apps.bertha.wdj.ui.ts.wd.comp.tscomp.wdp.InternalTeamStructEditView.wdInvokeEventHandler(InternalTeamStructEditView.java:523)
      at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:142)
      at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:75)
      at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.doHandleActionEvent(ProcessingEventPhase.java:159)
      at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.execute(ProcessingEventPhase.java:94)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:162)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:110)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseLoop(WindowPhaseModel.java:101)
      at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processPhaseLoop(WebDynproWindow.java:547)
      at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.handleWindowHierarchyChanges(AbstractClient.java:108)
      at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:56)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1652)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1466)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:884)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessing(ApplicationSession.java:856)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:343)
      at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:315)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
      at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:76)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:62)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
      at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:400)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:203)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:438)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:427)
      at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:80)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:268)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
      at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
      at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:54)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:447)
      at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:264)
      at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
      at com.sap.engine.core.thread.execution.Executable.run(Executable.java:115)
      at com.sap.engine.core.thread.execution.Executable.run(Executable.java:96)
      at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:315)

    Thanks for reply,
    but i can't understand what is myModel indicates in the below code?
    Request_EmployeeManagementLocal_updateEmployee reqMod =
          new Request_EmployeeManagementLocal_updateEmployee(myModel);
    //Check empl model class will be there , create an object for that
          Employee objEmpl=new Employee(myModel);
    regards,
    Pradeep Kumar

  • Validation of context attributes with adaptive webservice model

    Hi, I am creating a Web Dynpro Java application (on top of Netweaver AS 7.0) using an adaptive webservice model to invoke a webservice.
    The webservice has some request attributes of type string with limited length (for example limited to 1 character). I bound the model to component controller context and created a mapping between the component controller context and view context. In the view, I created a form which is bound to the context attributes.
    When user enters string values, which are longer than the maximum length specified in webservice WSDL, and submits the form, an exception is thrown when Web Dynpro runtime is trying to assign entered values into context attributes:
    com.sap.dictionary.runtime.DdCheckException: Length of character string "abcdef" must be smaller than or same as MaxLength 1;
        at com.sap.dictionary.runtime.DdTypeString.checkValid(DdTypeString.java:195)
        at com.sap.tc.webdynpro.model.webservice.base.model.BaseGenericModelClass.setAttributeValue(BaseGenericModelClass.java:304)
        at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass.setAttributeValue(WSTypedModelClass.java:62)
        at at.gov.bmf.demo.comp.employee.model.OrganizationalAssignment.setEmployeeGroup(OrganizationalAssignment.java:52)
        at at.gov.bmf.demo.comp.employee.wdp.IPublicEmployeeDemo$IOrganizationalAssignmentElement.wdSetObject(IPublicEmployeeDemo.java:1552)
        ... 32 more
    This exception is thrown before my non-validating action is executed, so I am not able to prevent it or handle it.
    Is there any way how to catch this exception or prevent it?
    Does anyone know where these model restrictions are stored? I searched the XML files generated for the model, but I haven't found anything. Does the Web Dynpro runtime access WSDL everytime it needs to validate request parameters?
    Thanks,
    Tomas

    No ,This is the preferred and safer way to separate the Model Node and and Input Node and relationship between them by using mapping.
    You create your context structure for input and then on action set user input to model data.
    Safer it means  : Sometimes it happen that model data not populated properly due to network or wrong user input etc ,this time our presentation will be safe and display the proper error message rather the screen went away with null pointer exception.
    Regarding your - it require a lot of work. It too much convince for us that rather than writing 50 lines of code
    for only input length validation WebDynpro provides us a better model driven solution.
    Best Regards
    Satish Kumar

  • Problems in Instantiating the Model Node

    Hi All,
    I Have a problem with creating the instance of a Model Node  which needs an urgent solution, This is the Scenario:
    I Have created a WebDynpro Project using NetWeaver CE Environment and Java EE 5.0 where i am using an Adaptive WebService Model. I have successfully created the model using the WSDL files and have also added to the Controller,
    But when I try to create an Instance of the Request Node in my controller ie after writing this line:
    Request_MI_Nwce007_AS_SOAPReq objReq = null;
    objReq = new Request_MI_Nwce007_AS_SOAPReq();
    This is the Request Structure from the WSDL - Request_MI_Nwce007_AS_SOAPReq
    it gives me an Error saying The constructor Request_MI_Nwce007_AS_SOAPReq() is undefined.
    Please let me know the exact problem and also the way to overcome this problem.
    Its Quite URGENT!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Points Rewarded for helpful answers.
    Regards,
    Poojith MV

    Hi Poojitha,
    If your imported Webservice has any structure like  this Request_MI_Nwce007_AS_SOAPReq_Input then instantiate the input structure.
    else
    Try instantiating along with the package name, for example if your package name is: com.sdn then try this:
    "com.sdn.*Request_MI_Nwce007_AS_SOAPReq objReq = null;
    objReq = new com.sdn.Request_MI_Nwce007_AS_SOAPReq();
    Hope this solves your problem.
    Thanks n Regards,
    Jhansi Miryala

  • Passing Parameters to Webservice model context--Exception in execution

    Hi
    I have a problem while passing the values to the webservice model context.I have 9 input fields in my view 5 of them binded to directly to the model context after mapping. 4 input fields i have binded to seperate node of cardinality 1:1.
    My structure is like this
          Req_Identity_In(model root node)
            Req_Ide_SYNC (Input node of model)
                  Identity( node )
                 UserAccount(node)
                  PersonalAddress(node)
                     PersonName(Node)
                             |
                          givenname,middlename,familyname etc (Attributes)
    This structure is similar to bapi user create ECC Function module after exposing as a webservice.
    I am using the following code for bindings
    ==================
           String givenName = wdContext.currentPersonNamesDataElement().getGivenName();
           String middleName = wdContext.currentPersonNamesDataElement().getMiddleName();
           String familyName = wdContext.currentPersonNamesDataElement().getFamilyName();
           String additionalFamName = wdContext.currentPersonNamesDataElement().getAdditionalFamilyName();
           //getting the data from user for personNames
           //passing the data
           UserAccountCreateModel userAccountCreateModel = new UserAccountCreateModel();
          Request_IdentityUserAccountCreateRequestConfirmation_In request_IdentityUserAccountCreateRequestConfirmation_In = new Request_IdentityUserAccountCreateRequestConfirmation_In(userAccountCreateModel);
           IdentityUserAccountCreateRequestMessage_Sync identityUserAccountCreateRequest_Sync = new IdentityUserAccountCreateRequestMessage_Sync(userAccountCreateModel);
          request_IdentityUserAccountCreateRequestConfirmation_In.setIdentityUserAccountCreateRequest_Sync(identityUserAccountCreateRequest_Sync);
          IdtUsrAcctCrteReq_SyncIdt identity = new IdtUsrAcctCrteReq_SyncIdt(userAccountCreateModel);
          identityUserAccountCreateRequest_Sync.setIdentity(identity);
              IdtUsrAcctCrteReq_SyncUsrAcct userAccount = new IdtUsrAcctCrteReq_SyncUsrAcct(userAccountCreateModel);
              identity.setUserAccount(userAccount);
              IdtUsrAcctCrteReq_SyncDfltSettings defaultSettings = new IdtUsrAcctCrteReq_SyncDfltSettings(userAccountCreateModel);
              userAccount.setDefaultSettings(defaultSettings);
              java.util.List<NOSC_PersonalAddress> personalAddress = new ArrayList<NOSC_PersonalAddress>();
              userAccount.setPersonalAddress(personalAddress);
              NOSC_PersonName personName = new NOSC_PersonName(userAccountCreateModel);
              //kalyan
              //create the personalAddress model
              NOSC_PersonalAddress personalAddrModel = new NOSC_PersonalAddress(userAccountCreateModel);
              //create a element for PersonalAddress Node and node element.
              IPersonalAddressNode paNodeRef = wdContext.nodePersonalAddress();
              IPersonalAddressElement paNodeEle = wdContext.createPersonalAddressElement(personalAddrModel);
              //creating an element in Personname subnode and pass the data
              IPersonNameNode personNameNodeRef = paNodeRef.nodePersonName();
              IPersonNameElement personNameEle = personNameNodeRef.createPersonNameElement(personName);
              personNameEle.setGivenName(givenName);
              personNameEle.setMiddleName(middleName);
              personNameEle.setMiddleName(familyName);
              personNameEle.setAdditionalFamilyName(additionalFamName);
              //personNameNodeRef.addElement(personNameEle);
              //add the PA element to the PA node
              paNodeRef.addElement(paNodeEle);
              //add to the list
              personalAddrModel.setPersonName(personName);
              personalAddress.add(0, personalAddrModel);
              //kalyan
              NOSC_BasicBusinessDocumentMessageHeader messageHeader = new NOSC_BasicBusinessDocumentMessageHeader(userAccountCreateModel);
              identityUserAccountCreateRequest_Sync.setMessageHeader(messageHeader);
              Response_IdentityUserAccountCreateRequestConfirmation_In response = new Response_IdentityUserAccountCreateRequestConfirmation_In(userAccountCreateModel);
              request_IdentityUserAccountCreateRequestConfirmation_In.setResponse(response);
              IdentityUserAccountCreateConfirmationMessage_Sync identityUserAccountCreateConfirmation_Sync = new IdentityUserAccountCreateConfirmationMessage_Sync(userAccountCreateModel);
              response.setIdentityUserAccountCreateConfirmation_Sync(identityUserAccountCreateConfirmation_Sync);
              NOSC_Log log = new NOSC_Log(userAccountCreateModel);
                  identityUserAccountCreateConfirmation_Sync.setLog(log);
                  java.util.List<NOSC_LogItem> item = new ArrayList<NOSC_LogItem>();
                  log.setItem(item);
                  wdContext.nodeRequest_IdentityUserAccountCreateRequestConfirmation_In().bind(request_IdentityUserAccountCreateRequestConfirmation_In);
           //passing the data
           wdThis.wdGetUserCreateCompController().executeIdentityUserAccountCreateRequestConfirmation_In();
           //success
           //wdComponentAPI.getMessageManager().reportSuccess("The user created successfully");
    ================================================
    After executing i am getting the error like this
    Exception on execution of web service with WSDL URL 'http://<host>:<port>/sap/bc/srt/wsdl/bndg_DDB660678B8DB6F1934200142220669B/wsdl11/allinone/ws_policy/document?sap-client=XXX&sap-user=XXXXX&sap-password=XXXX' with operation 'IdentityUserAccountCreateRequestConfirmation_In' in interface 'IdentityUserAccountCreateRequestConfirmation_In'
    Is there any wrong in the code while passing the values to the model.
    What are the possible causes for this exception.
    Regards
    Kalyan

    I am no more working on this.

  • How to use Adaptive WebService Model with CAF WebService and Complex Type

    Hi All,
    I am trying to use the Adaptive Web Service Model and call a WebService generated by the CAF. The return type of the WebService is a Complex Type.. I receive an exception when trying to instantiate the Model Node.
    Does anybody know how to use the Adpative Web Service Model with CAF WebServices and Complex Types as return type?
    Help is appreciated..
    Thanks, Johannes

    Thanks Mukesh.
    It is not possible to apply the Service Controller Template on Enterprise Java Bean Models as described in the Document. When I try to aply the template on the EJB Model, NWDS says: Only Webservice Models and RFC Models are supported...???
    I did not find any information about how to return complex types in AWS.. in this document???
    Is there such information available? Has anybody ever done that? There must be a way to do that.. Is is the standard approach, isn't it...? Please help me out there.. I need to get this running..
    Thanks, Johannes

  • Webdynpro : How to SKIP the values of the Model Node.

    Hi
    i imported a WSDL into my WDJ application.
    where on context mapping, i mapped the MODEL with my CONTROLLER.
    I would like to SKIP couple of Attributes and Model node
    In WEBSERVICE navigator, i have the check box as SKIP, so using that i can skip in Navigator ,
    But how to do the same in WEBDYNPRO Coding.
    Say for Example
    Context
    ----------ModelNode1
    ----------ModelNode2
    ----------ModelNode3
    ----------======ModelAttribute1      NULL
    ----------======ModelAttribute2      SKIP
    ----------======ModelAttribute3      SKIP
    i know how to set the value if it need to set it to null
    wdcontext.nodelModelNode3.currentModelNode3element.setModelAttribute1("null")
    similaraly  can anyone tell me how to set the SKIP for other 2 attributes......
    Thanks

    Hi Chintan
    Thanks for your response....
    fine ... i understood your solution....
    but , my problem goes and makes me dizzzy
    i have 10 mandatory filed in my Webservice..
    i passed all the 10 mandatoy fileds and get perfect Response In WEBSERVICE Navigator....
    i tried passing the same value via WDJ application as show below
    since i have a node element with cardinalith 0..n
    I set the value those i passed in Webservice Navigator.....
    wdContext.nodeRequest_getSubmitRequest().
                     nodeRequestDetails().nodeRoles().invalidate();
           IPrivateOne_AppView.IRolesElement RoleE = wdContext.createRolesElement(new ComplexType_RoleData());
         RoleE.setRoleId("BASIC");
         RoleE.setSysId("R3");
         wdContext.nodeRequest_getSubmitRequest().
                   nodeRequestDetails().nodeRoles().addElement(RoleE);
    But Here ,I get a Error Message Saying  :Error in Submiting Request :  No role seleced for the request.
    so , i even checked whether the node is populated with rite value by printing them after executing the WSDL.
         wdContext.currentRequest_getSubmitRequestElement().modelObject().execute();
              MsgManger.reportSuccess( "After Push_execute_WSDL");
    MsgManger.reportSuccess( " COntroller getRoleId -- "+wdContext.nodeRequest_getSubmitRequest()
                        .nodeRequestDetails().nodeRoles().currentRolesElement().getRoleId().toString());
              MsgManger.reportSuccess( " COntroller getSysId -- "+wdContext.nodeRequest_getSubmitRequest()
                        .nodeRequestDetails().nodeRoles().currentRolesElement().getSysId().toString());
    Output
    After Push_execute_WSDL
    COntroller getRoleId -- BASIC
    COntroller getSysId -- R3
    Kindly let me know wat could be wrong........
    The MOST wired thing is
    if i didnt set and Role , SysId in webservice navigator , then Error thrown at Webservice Navigator is
    Error in Submiting Request : RoleId is mandatory,SysId is mandatory null
    on following same thing , if i didnt set Role and SysID in WebDynpro then, i get error as
    Error in Submiting Request :  No role seleced for the request.
    How is this possible....
    any help on this would be appreciated...
    Thanks

  • Binding values to webservice model

    Hello,
    I have following webservice model structure.
    Please help me to bind the value to the model attributes.
    Request_StartWprkflow_startWorkflow
    |
    -->Parameter
    -->Payload     
    -->  data
    -->key
    -->value
    -->assignee
    -->dueDate
    -->priority
    -->reporter
    -->routing
              |-->coorId
              |-->issuetype
              |-->projectkey
              |-->sender
    Thanks in advance
    Pradeep

    Hi,
    just provide attribute values for each node.
    Regards,
    Przemysław

  • Any examples on Adaptive Webservice Models?

    RequestDetailsData is the node to which I need to set values and execute it.
    Example :
    wdContext.currentRequestDetailsDataElement().setRequestReason(wdContext.currentContextElement().getReqReason());
    I have debugged and found that wdContext.currentRequestDetailsDataElement() is null
    Before setting values to this node do i need to write any code like create new node or new element
    Can any provide sample examples on Adaptive Webservice Models
    Thanks

    hi
    check this SAP document on Webservice
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e&overridelayout=true
    also check this link  on abap to webservice links
    Adaptive web service model : tutorial ?
    /people/bertram.ganz/blog/2005/10/10/how-to-reimport-web-service-models-in-web-dynpro-for-java
    /people/anilkumar.vippagunta2/blog/2006/12/13/secured-webservices-ii
    /people/kumar.prashant4/blog/2006/07/14/using-rfc-as-webservice-in-webdynpro
    http://www.sdn.sap.com/irj/scn/advancedsearch?query=adaptivewebservicemodel+

  • Error while creating a webservice model

    Hi All,
        I am doing the EMail WebService exercise. While creating the webservice model I select the UDDI or URL Radio button and in the wsdl field I paste the following url : http://www.abysal.com/soap/AbysalEmail.wsdl .
    When I click next in the proxy definition screen, I get the message Invalid WSDL or WSDL not found and the Finish button is not highlighted.
    I checked the webservice mentioned above it is fine and working. I cannot understand why this is not accepted in NWDS
    Pls Reply ASAP

    Hi,
    I am using the Proxy to connect to the internet so i used the proxy connection to send the mail.
    For me the web service is just working fine.
    I do not know where the problem is occuring for you.
    There is already ready-made tutorial for this application...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/business_packages/a1-8-4/6tutwd_emailwebservice.zip">Ready Made Application</a>
    you download it and give the proxy parameters and try to execute the application. Now this should work fine for you.
    Hope it helps.
    Regards,
    Maheswaran.B

  • Creation of new element in Model Node

    Dear All,
    I am facing one problem, I have two  model node. I want to copy one model node to other model node.while copying its giving error saying the you can bind the element, coz target node doesn't have valid parent.
    Pl don't suggest me work on Value node.
    Can i create a element in model node at run time.
    Thanks & Regards
    Manoj Sahoo

    Hi Manoj,
                   Model node properties :
    1.A context model node makes a model object look like any other context node.  I.E. it gives the model object an API that is very similar to a value node.
    2.  A model node is not considered valid until it is bound to a corresponding model object.  Therefore, a model node always inherits its metadata from the model object to which it is bound.
    3. The element collection in a model node does not hold the actual runtime data!   Instead, it holds a list of references to the relevant model object instances.
    If u check the 2nd property, u will find the cause of ur exception. As u have already told, don't suggest to use value nodes, i don't have any other comment.
    regards
    Sumit

  • How to populate a Value Attribute of a Value Node inside Model Node

    Hello
    I have my context like this.
      Context
    ..          - ModelNode
    ....                      - Model Attr1
    ....                      - Model Attr2
    ....                      - Model Attr3
    ....                      - Model Attr4
    ....                      - Value Node
    ......                                  |
    ......                                   - Value Attr1
    Model Node is of Cardinality 0..N
    Value Node is of Cardinality 1..1
    I want to create multiple records in my Model Node and one record for every Model Node in Value Node.
    How to do this?
    All good suggestions are welcome.
    Regards,
    Shubham

    Hi Shubham,
    With your context structure the code will be
    for(int i = wdContext.nodeModelNode().size()-1 ; i>=0 ; i--)
        IPublic<comp name>.IModelNodeElement ele =   wdContext.nodeModelNode().getModelNodeElementAt(i);
        IPublic<comp name>.IValNodeElement valEle = wdContext.nodeModelNode().nodeValNode().createValNodeElement();
        valele.setValAttr("");
        ele.nodeValNode().addElement( valEle);
    Your val node should be non singleton (singleton property = false)
    Regards,
    Jaydeep

  • How to change URL of Webservice Model without reconfiguring or creating new

    Hi,
    I have create a WebService Model with DEV url (some Dev URL ) using
    Import WebService Model DEPRECATED option
    Now my application is moving to TEST and PROD.
    Is it possible to change DEV URL in webdynpro application application without reconfiguring MODEL or recreating new
    with TEST and PROD urls.
    Please help me

    Hi,
    You need to use adaptive webservice model to change the webservice URL based on the environment i.e. Dev,Test or production which is availiable in NWDS 2004s environment.
    You can refer to links mentioned in below forum.
    Re: Differnce between adptive web service model and webservice model(depricated
    if you you are using webservice model then you need to write the code to generate URL for end point dynamically based on the application environment.
    and then you need to set EndPoint of webservice model with that URL befroe execution of the model.
    e.g.
    String l_endpointurl ="http://"+ l_Server+ ":"+ l_port+ "/webservice name/Config1?style=document";
    l_modeloobject.modelObject()._setEndPoint(l_endpointurl);
    //if service is secured....
    l_modeloobject.modelObject()._setUser(l_userID);
    l_modeloobject.modelObject()._setPassword(l_pwd);
    l_modeloobject.modelObject().execute();
    Regards,
    Shruti.

Maybe you are looking for