Regarding webservice model

hi all
    i want to have some example scenarios involving
  Webdynpro-Xi-BW and
  Webdynpro-Xi-r/3.
  i want the procees in volved using webservices

Hi
Lakshmi Narayana Chowdary Namala
If your question is answered please allot points also.
Regards
SURYA

Similar Messages

  • 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

  • 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.

  • Error while Importing Webservice Model in NWDS 7.0.13

    Hi Experts,
    I am trying to Create Webservice Model (deprecated) in my Webdynpro Application using NWDS 7.0.13, using a WSDL which is hosted on PI 7.1.
    However while resolving this WSDL, I am getting error "Unacceptable Choise Element Found. Choise can contain only model group with min/maxOccurs = 1".
    Then I downloaded the WSDL, and changed the MaxOccurs = "1". After Importing this WSDL in my Webdynpro project, another exception got raised "Trying to Resolve qualified base " , here AcordMsgSvc is targetnamespace in  XSD which is ported in PI for this Service Interface
    Please help me resolving these 2 errors -
    1) min/maxOccurs > 1 not allowed in NWDS 7.0.13 webservice model?? Do I need to install any plugins?
    2)
    The Details Error Log --
    Error  Oct 28, 2010 15:39:03.283 com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Invalid proxy generator configuration. See nested exception.
    com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Invalid proxy generator configuration. See nested exception.
    at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.getDefaultSchemaMapping(ProxyGenerator.java:142)
    at com.sap.ide.ws.proxygenerator.ProxyHelperFunctions.createNamespacePackageMappingFile(ProxyHelperFunctions.java:103)
    at com.sap.ide.ws.proxygenerator.ProxyHelperFunctions.createNamespacePackageMappingFile(ProxyHelperFunctions.java:86)
    at com.sap.ide.ws.proxygenerator.ProxyHelperFunctions.createNamespacePackageMappingFile(ProxyHelperFunctions.java:82)
    at com.sap.ide.wsproxy.wizards.prx.pages.NamespacePackageMappingPage$1.run(NamespacePackageMappingPage.java:114)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:302)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252)
    at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:357)
    at com.sap.ide.wsproxy.wizards.prx.pages.NamespacePackageMappingPage.initTable(NamespacePackageMappingPage.java:170)
    at com.sap.ide.wsproxy.wizards.prx.pages.NamespacePackageMappingPage.setVisible(NamespacePackageMappingPage.java:295)
    at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:959)
    at org.eclipse.jface.wizard.WizardDialog.access$1(WizardDialog.java:940)
    at org.eclipse.jface.wizard.WizardDialog$3.run(WizardDialog.java:929)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:927)
    at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:684)
    at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog.nextPressed(ModelDialog.java:218)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:316)
    at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
    at org.eclipse.jface.window.Window.open(Window.java:563)
    at com.sap.ide.webdynpro.modeleditor.ModelEditorCallback.createModel(ModelEditorCallback.java:52)
    at com.sap.ide.webdynpro.service.modeleditor.ModelService.createModelWithUI(ModelService.java:70)
    at com.sap.ide.webdynpro.service.modeleditor.ServiceWithUI.createModel(ServiceWithUI.java:49)
    at com.sap.ide.webdynpro.tsmodel.application.provider.ModelNodeProvider.createUniqueName(ModelNodeProvider.java:55)
    at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntityUin(EntityImpl.java:936)
    at com.tssap.selena.impl.model.elements.EntityImpl.createChildEntity(EntityImpl.java:502)
    at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.runInternal(CreationAction.java:76)
    at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.access$000(CreationAction.java:24)
    at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction$1.run(CreationAction.java:51)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
    at com.sap.ide.webdynpro.tsmodel.application.actions.CreationAction.run(CreationAction.java:57)
    at com.sap.ide.webdynpro.projectbrowser.actions.PBCreateModelAction.run(PBCreateModelAction.java:95)
    at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)
    at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
    at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)
    at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
    at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
    at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
    at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
    at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
    at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
    at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
    at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
    at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
    at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    Caused by: com.sap.engine.lib.xml.util.NestedException -> javax.xml.transform.TransformerException: com.sap.engine.lib.xml.util.NestedException: ERROR : Trying to resolve qualified base : DocumentId, but the uri resolver is not able to resolve the relevant namespace.
    at com.sap.engine.services.webservices.jaxrpc.schema2java.SchemaToJavaGenerator.prepareAll(SchemaToJavaGenerator.java:462)
    at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.getDefaultSchemaMapping(ProxyGenerator.java:136)
    ... 63 more
    Caused by: javax.xml.transform.TransformerException: com.sap.engine.lib.xml.util.NestedException: ERROR : Trying to resolve qualified base : DocumentId, but the uri resolver is not able to resolve the relevant namespace.
    at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:232)
    at com.sap.engine.services.webservices.jaxrpc.schema2java.SchemaToJavaGenerator.prepareAll(SchemaToJavaGenerator.java:459)
    ... 64 more
    Caused by: com.sap.engine.lib.xml.util.NestedException: ERROR : Trying to resolve qualified base : DocumentId, but the uri resolver is not able to resolve the relevant namespace.
    at com.sap.engine.lib.schema.components.impl.LoaderImpl.resolveQualifiedBase(LoaderImpl.java:253)
    at com.sap.engine.lib.schema.util.Tools.getTopLevelBase(Tools.java:466)
    at com.sap.engine.lib.schema.components.impl.SchemaStructuresFactory.getRefferedBase(SchemaStructuresFactory.java:154)
    at com.sap.engine.lib.schema.components.impl.SchemaStructuresFactory.createBase(SchemaStructuresFactory.java:49)
    at com.sap.engine.lib.schema.components.impl.SchemaStructuresFactory.createElementDeclaration(SchemaStructuresFactory.java:115)
    at com.sap.engine.lib.schema.components.impl.structures.ParticleImpl.load(ParticleImpl.java:89)
    at com.sap.engine.lib.schema.components.impl.SchemaStructuresFactory.loadBase(SchemaStructuresFactory.java:162)
    at com.sap.engine.lib.schema.components.impl.structures.ModelGroupImpl.load(ModelGroupImpl.java:100)
    at com.sap.engine.lib.schema.components.impl.SchemaStructuresFactory.loadBase(SchemaStructuresFactory.java:162)
    at com.sap.engine.lib.schema.components.impl.structures.ParticleImpl.load(ParticleImpl.java:97)
    at com.sap.engine.lib.schema.components.impl.SchemaStructuresFactory.loadBase(SchemaStructuresFactory.java:162)
    at com.sap.engine.lib.schema.components.impl.structures.ModelGroupImpl.load(ModelGroupImpl.java:100)
    at com.sap.engine.lib.schema.components.impl.SchemaStructuresFactory.loadBase(SchemaStructuresFactory.java:162)
    at com.sap.engine.lib.schema.components.impl.structures.ParticleImpl.load(ParticleImpl.java:97)
    at com.sap.engine.lib.schema.components.impl.SchemaStructuresFactory.loadBase(SchemaStructuresFactory.java:162)
    at com.sap.engine.lib.schema.components.impl.structures.ComplexTypeDefinitionImpl.load(ComplexTypeDefinitionImpl.java:178)
    at com.sap.engine.lib.schema.components.impl.SchemaStructuresFactory.loadBase(SchemaStructuresFactory.java:162)
    at com.sap.engine.lib.schema.components.impl.structures.SchemaImpl.loadComponents(SchemaImpl.java:288)
    at com.sap.engine.lib.schema.components.impl.structures.SchemaImpl.load(SchemaImpl.java:267)
    at com.sap.engine.lib.schema.components.impl.LoaderImpl.load(LoaderImpl.java:149)
    at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:227)
    ... 65 more
    Thanks,
    Ninad

    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 loading WSDL file" --- Adaptive Webservice Model

    Hi All,
    I have been using Deprecated web service  model. But now my application is moving to Test. So in order not to change the URL of the webservice model in the Test, i tried with the Adaptive webservice model. But when i try to import the model its saying " Error in loading WSDL file. Check the error log for more details." Please help me out in this.
    Thanks in advance,
    Pranesh.

    Hi Pranesh,
    Please refer to this thread for similar issue and check the log file for NWDS for more details
    Error in loading the WSDL file. Check the error log for more details
    Hope it helps
    Regards
    Arun

  • 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

  • Adaptive Webservice Model: Error in loading the WSDL file in NWDS 7.1 CE

    Hi All,
    I am trying to import WSDL using Adaptive Webservice Model into my webdynpro application. But I am unable to do so and it throws up an error as " Error in loading WSDL file. Check the error log for more details". The Content of log files has the following details
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem.  Can not create SerializationFactoryImpl with 'null' params
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:247)
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:91)
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:84)
    at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:412)
    ... 60 more
    Caused by: java.lang.IllegalArgumentException: Can not create SerializationFactoryImpl with 'null' params !
    at com.sap.engine.services.webservices.jaxrpc.encoding.SerializationFactoryImpl.<init>(SerializationFactoryImpl.java:171)
    at com.sap.engine.services.webservices.jaxrpc.encoding.TypeMappingImpl.fromXml(TypeMappingImpl.java:495)
    at com.sap.engine.services.webservices.jaxrpc.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRegistryImpl.java:183)
    at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.initTypeMappingRegistry(DGenericServiceImpl.java:108)
    at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:66)
    at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:240)
    ... 63 more
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Problem with WSDL file parsing. See nested message.
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:247)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:91)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:84)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:412)
         ... 60 more
    Caused by: com.sap.engine.services.webservices.espbase.wsdl.exceptions.WSDLException: Invalid Response Code: (500) Internal Server Error. The requested URL was:"http://10.15.8.97:5555/soap/rpc"
         at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.loadDOMDocument(WSDLLoader.java:140)
         at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.load(WSDLLoader.java:91)
         at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.load(WSDLLoader.java:80)
         at com.sap.engine.services.webservices.espbase.client.ProxyGeneratorNew.loadWSDLapi(ProxyGeneratorNew.java:579)
         ... 67 more
    Any pointer on this would be of great help.
    Thanks and Regards,
    Vishweshwara P.K.M

    Solved. Issue was with the xml schema of the web service.

  • Consuming a webservice using Webservice model in Webdynpro

    Hi all,
    I am working on a scenario where in XI is used for calling Remote Function Module of R3 system using SOAP
    My XI Consultant has implemented SOAP to RFC scenario in XI succesfully and generated the WSDL file in XI.
    I got that WSDL file and saved locally on my desktop.
    I created a Webservice model based on the local WSDL file and then gave necessary inputs and also included the following code for the SOAP call to happen
    wdContext.currentRequest_Soap2Rfc_Ob_MiElement().modelObject().execute();
      wdContext.nodeResponse().invalidate();
      wdContext.nodeRes_Mt().invalidate();
    When I tried to give input data and click on submit it is calling the model object execute method and is throwing the following exception
    Exception on execution of web service with WSDL URL 'C:\Documents and Settings\aljsed01\Desktop\soap2rfc_ob_mi.wsdl' with operation 'soap2rfc_ob_mi' in interface 'soap2rfc_ob_mi'
    Does any have any idea about this?
    Should I require some more steps to do?
    Anyhelp in this regard is highly appreciated
    Regards,
    Santhosh

    Hi Anil and Rahul,
    Thanks a lot for your help and time.
    I have created destinations one for metadata and the other for Execution.
    But I am not sure of what URL to be given
    I have my WSDL file locally on the system.If I give that path,it says wrong protocol.
    And if I give XI URL,it does not pick up metada shows some other error.
    What URL should I need to give for locally saved WSDL??Please suggest
    And Rahul,here is the WSDL file which my XI consultant gave
    Let me know if it is ok.
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:p1="http://soap2rfcns" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="soap2rfc_ob_mi" targetNamespace="http://soap2rfcns">
    +     <wsdl:types>+
    +          <xsd:schema targetNamespace="http://soap2rfcns" xmlns="http://soap2rfcns" xmlns:xsd="http://www.w3.org/2001/XMLSchema">+
    +               <xsd:element name="res_mt" type="res_dt"/>+
    +               <xsd:element name="req_mt" type="req_dt"/>+
    +               <xsd:complexType name="req_dt">+
    +                    <xsd:annotation>+
    +                         <xsd:appinfo source="http://sap.com/xi/TextID">0f2ee199b2ce11dca877001a4bf038d4</xsd:appinfo>+
    +                    </xsd:annotation>+
    +                    <xsd:sequence>+
    +                         <xsd:element name="airlineid" type="xsd:string">+
    +                              <xsd:annotation>+
    +                                   <xsd:appinfo source="http://sap.com/xi/TextID">f17dde30b2cd11dcb5f6001b78b0798a</xsd:appinfo>+
    +                              </xsd:annotation>+
    +                         </xsd:element>+
    +                         <xsd:element name="connectid" type="xsd:string">+
    +                              <xsd:annotation>+
    +                                   <xsd:appinfo source="http://sap.com/xi/TextID">f17dde31b2cd11dcbcd8001b78b0798a</xsd:appinfo>+
    +                              </xsd:annotation>+
    +                         </xsd:element>+
    +                         <xsd:element name="fldate" type="xsd:date">+
    +                              <xsd:annotation>+
    +                                   <xsd:appinfo source="http://sap.com/xi/TextID">f17dde32b2cd11dc986c001b78b0798a</xsd:appinfo>+
    +                              </xsd:annotation>+
    +                         </xsd:element>+
    +                    </xsd:sequence>+
    +               </xsd:complexType>+
    +               <xsd:complexType name="res_dt">+
    +                    <xsd:sequence>+
    +                         <xsd:element name="econofree" type="xsd:integer">+
    +                              <xsd:annotation>+
    +                                   <xsd:appinfo source="http://sap.com/xi/TextID">6906c250b2ce11dca99e001b78b0798a</xsd:appinfo>+
    +                              </xsd:annotation>+
    +                         </xsd:element>+
    +                         <xsd:element name="bussfree" type="xsd:integer">+
    +                              <xsd:annotation>+
    +                                   <xsd:appinfo source="http://sap.com/xi/TextID">6906c251b2ce11dc9996001b78b0798a</xsd:appinfo>+
    +                              </xsd:annotation>+
    +                         </xsd:element>+
    +                         <xsd:element name="firstfree" type="xsd:integer">+
    +                              <xsd:annotation>+
    +                                   <xsd:appinfo source="http://sap.com/xi/TextID">6906c252b2ce11dc9c70001b78b0798a</xsd:appinfo>+
    +                              </xsd:annotation>+
    +                         </xsd:element>+
    +                    </xsd:sequence>+
    +               </xsd:complexType>+
    +          </xsd:schema>+
    +     </wsdl:types>+
    +     <wsdl:message name="req_mt">+
    +          <wsdl:part name="req_mt" element="p1:req_mt" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>+
    +     </wsdl:message>+
    +     <wsdl:message name="res_mt">+
    +          <wsdl:part name="res_mt" element="p1:res_mt" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>+
    +     </wsdl:message>+
    +     <wsdl:portType name="soap2rfc_ob_mi">+
    +          <wsdl:operation name="soap2rfc_ob_mi">+
    +               <wsdl:input message="p1:req_mt"/>+
    +               <wsdl:output message="p1:res_mt"/>+
    +          </wsdl:operation>+
    +     </wsdl:portType>+
    +     <wsdl:binding name="soap2rfc_ob_miBinding" type="p1:soap2rfc_ob_mi" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">+
    +          <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>+
    +          <wsdl:operation name="soap2rfc_ob_mi">+
    +               <soap:operation soapAction="http://sap.com/xi/WebService/soap1.1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>+
    +               <wsdl:input>+
    +                    <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>+
    +               </wsdl:input>+
    +               <wsdl:output>+
    +                    <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>+
    +               </wsdl:output>+
    +          </wsdl:operation>+
    +     </wsdl:binding>+
    +     <wsdl:service name="soap2rfc_ob_miService">+
    +          <wsdl:port name="soap2rfc_ob_miPort" binding="p1:soap2rfc_ob_miBinding" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">+
    +               <soap:address location="http://sapxidev:50000/XISOAPAdapter/MessageServlet?channel=:BS_SS:req_cc&version=3.0&Sender.Service=BS_SS&Interface=http%3A%2F%2Fsoap2rfcns%5Esoap2rfc_ob_mi" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>+
    +          </wsdl:port>+
    +     </wsdl:service>+
    </wsdl:definitions>
    Rgds,
    Santhosh

  • Error while creating Adaptive Webservice model

    Hi ,
    I am getting errors when trying to create an adaptive webservice model. I am working in NWDI environment. When i tried to create adaptive webservice model  in local development it was successful. But when i tried to create the same using the component which is in a track i am getting errors.
    Please help on this.
    Thanks,
    Portal

    When do you get the error and what is the error?
    Regards,
    Murtuza

  • JCo destination error while executing the webservice model

    Hi,
    I have explained what I have done so far and whats my issue right now.
    My requirement is calling a PI interface (exposed as webservice) from webdynpro for java and setting some parameter value to the PI interface based on which our functional flow will continue.
    Done so Far :
    1. Created a webdynpro for java application using NWDI.
    2. received the WSDL file of the PI interface and imported as "Adaptive webservice model" into webdynpro.
    3. used the model and set the parameters to PI interface and executed the model.
    4. I have created JCO destinations in the source system (where the application runs) to communicate to the PI system. A special user has been created and assigned in the connection for communicating.
    5. Also I have created the "Dynamic Webseviceproxies" in visual admin with the same name as the JCO destinations. It had a property "URL" for which I have tested with providing both the PI server URL (Http://<Hostname>:<Port no>) and also the complete webservice URL (Which calls the WSDL file directly)
    when I run the application, I get the following error.
    1. Exception on creation of service metadata for WS metadata destination 'WD_RFC_METADATA_DEST' and WS interface '{<Interface Name>'. One possible reason is that the metadata destination 'WD_RFC_METADATA_DEST' has not been properly configured; check configuration.
    after some exception the next error follows
    2. Invalid Response Code 403 while accessing URL: <The URL which I have provided in the webservice proxy in Visual admin tool> Response Message: Forbidden.
    after some lines of exception from PI server the next error follows.
    3. Error: You are not authorized to view the requested resource
    My Question :
    1. Do I miss anything in Configuration?
    2. Is my way of approach wrong?
    3. Any additional authorization needed?
    Kindly provide some ideas and inputs.
    Regards,
    Mahendran B.

    Dear Mahendran
    JCO destination will not used for the Web Service Model. While creating the webservice model, you need to use the logical destination which you have created in the Visual Admin.
    Please refer to the Secured WebServices II and verify currently used webservice logical destination How To Reimport Web Service Models in Web Dynpro for Java
    You can also refer to
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e?QuickLink=index&overridelayout=true
    Hope it will helps
    Best Regards
    Arun Jaiswal

  • 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???

  • 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

  • Problem With importing webservice model

    Hai,
       I used webservices to develope a webdynpro project. that web services are in some other server, now the problem is  the ipAddress of the system (contains webservice)is changed . My Application is not working after changing the ipaddress.
    What is the solution for consistency of webdynpro  when the changing of ipaddress of webservices.
    regards,

    Naga,
    Dynamic modification of the endpoint of your Webservice model is possible.
    You may write the following code exactly before the suitable lines of code which execute the WebService model.
    wdContext.current<ModelNode>Element().modelObject()._setEndPoint("<URL>");
    You may also refer the following links for further references. <a href="http://help.sap.com/saphelp_nw04/helpdata/en/f3/7d7b60d1e9744d9fe27b4438d9014d/frameset.htm">Configuring Logical Ports</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm">Creating a Logical Port</a>
    Bala

  • 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.

  • Adaptive Webservice model for asynchronous web services

    Hi ,
    While tring to use adaptive Webservice model, using WSDL provided by XI, i was geting the error, <i>Cannot load NameSpaces and ModelClasses</i> . Details of the error can be found in
    Error while creating Adaptive WS model(SP17) using local WSDL file
    Later when the WSDL was created having other req & resp params, the model got created successfully. Now my question is :
    <b>Can't an adaptive Webservice model be created for asynchronous webservices??. Should the Webservice always be synchronous in nature for creating adaptive webservice model??? </b>
    Regards,
    Raj

    Even  I faced the same problem , while running the project it was failing , the error was
    =================================================
    The initial exception that caused the request to fail, was:
       java.io.IOException: Cannot connect to http://www.dataaccess.nl/wk2006/footballpoolwebservice.wso?wsdl: www.dataaccess.nl
        at com.sap.engine.services.webservices.tools.WSDLDownloadResolver.resolveEntity(WSDLDownloadResolver.java:161)
        at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1019)
        at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1126)
        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:178)
        at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:147)
        ... 43 more
    ==============================================
    but after setting the proxy details in the visual administrator it started working , this threads details was helpful for me to solve my problem.
    thanks ,
    Madhusudhan

Maybe you are looking for

  • Photoshop CS2 run problem

    I have had Creative Suite 2 Premium running on Vista Ultimate for more than 2 years. Photoshop now loads but will not run. It gives the error message 'Your Adobe Photoshop user name, organization, or serial number is missing or invalid. The applicati

  • ERROR MESSAGES IN MODULE POOL

    hi experts, i ve a query. say i am getting an error messages in modulepool, u all knw that if an eeror  occurd flow halt in that particular screen nw hw can i get exit from transaction without using, chain-endchain, at exit command, leave prog etc pl

  • Still having problems with my hpC3180 - printing "gobbeldy"

    can anyone explain why my printer is printing all kinds of weird stuff when I print from the internet? when I preview before printing everything looks OK but when I print i get lots of things like $3!sf e     and dvul27

  • Issue after EHP7 upgrade

    Hello All, Recently, we had EHP7 upgrade from EPH5, since then we found that the extract structure of  3FI_GL_0L_TT got changed. Below are the images of the structure before and after upgrade. Before upgrade: After upgrade: Please let me why after up

  • Screen Sharing in iChat not working

    iChat under Leopard seems to work fine, I got everything running including video chats and theatre but screen sharing (which works via Finder locally without problem) does not work. I cannot get to see any screen of my iChat partner while he gets a i