Consuming wsdl in web dynpro

I am consuming a wsdl file in web dynpro.
I get a build error as shown below:
<b>This compilation unit indirectly references the missing type com.sap.engine.lib.xml.parser.tokenizer.XMLTokenReader (typically some required class file is referencing a type outside the classpath)</b>
I couldnt even Google it.... Do you know what could be wrong?

Hi,
   Add used DC reference to SAP-JEE/webservices and SAP-JEE/webservices_lib. Both has public part "default".
Regards,
Satyajit.
Message was edited by:
        Satyajit Chakraborty

Similar Messages

  • How to consume the Abap web service in Java web-dynpro

    Hi Everyone,
    I want to consume ABAP web service in java web dynpro.
    so when i tried to create model in java web-dynpro, it gave me an error message saying "Invalid WSDL or WSDL not found".
    i think this error message is because, to access the WSDL of abap web-service, we need username and password, but the dialog box in java web-dynpro is not programmed to take username and password from us and send it to the server to get the WSDL.
    i came to this conclusion because i was able to successfully test my abap web-service in java portal. the java portal asked me the username and password to open the WSDL.
    So, please help me to consume the abap web service in java web-dynpro.
    Thanks in advance
    Regards
    Vikas

    Hi Vikas ,
       while creating a model in web-dynpro try to use the "import web service model" option and if you are using local server choose the local server option so that you can get the available web services which are in server, select one among them and continue you process.I think this is the some what easy way .
    If you want use the URL for wsdl better to once test the available service in server and copy that WSDL URL and paste over  WSDL textbox.
    I think this is pretty help ful to you
    Best Regards
    Srikatnh

  • Consuming External Web Services in Web Dynpro Java

    Hi All,
    I an trying to consume external web service in Web dynpro java using Adaptive Web Service Model.
    But getting below mentioned error while executing the web service
    Exception on execution of web service with WSDL URL 'D:\Web Service Project\CurrencyConvertor.asmx.xml' with operation 'ConversionRate' in interface 'CurrencyConvertorSoap'
    Steps i followed are as below:
    1. Created  Adaptive Web Service Model for this i select WSDL source as "Local File System or URL"
    In next step i select No logical destination radio button and click on next
    In next step, browse the WSDL file and successfully import the WSDL file.
    2. After successfully importing the WSDL file i wrote below code in Init method:
    WebModel modelweb = new WebModel();               
    Request_ConversionRate reqConversion = new Request_ConversionRate(modelweb);
    ConversionRate conversion= new ConversionRate(modelweb);
    reqConversion.setConversionRate(conversion);
    wdContext.nodeRequest_ConversionRate().bind(reqConversion);
    3.After that execute the model - code is given below :
        IWDMessageManager manager = wdComponentAPI.getMessageManager();
        try
          wdContext.currentRequest_ConversionRateElement().modelObject().execute();
          wdContext.nodeResponse().invalidate();
          wdContext.nodeConversionRateResponse().invalidate();
        catch(Exception e)
          manager.reportException(e.getMessage(), false);
    Please let me know how to resolve this.
    Thanks
    Sandy

    Hi,
    You need to use destinations for metadata and modeldata.
    Configure those destination in Visula admin.
    you can refer to following link.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7
    Regards,
    Shruti.

  • Error consuming web service in web dynpro

    Im looking up https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0d9336b-b4cf-2910-bdbf-b00d89bd2929 to consume a webservice in web dynpro.
    I deployed the ear file containing the web service.
    Now when I create an adaptive web service model in web dynpro project i get an error:
    Error in loading wsdl file. Check the error log for more details.

    It seems to work well with just "Import web service model" - but its deprecated...
    What can we do about the adaptive option?

  • Consume Web Service in Web Dynpro

    Hi Experts,
    I´m currently trying to learn web dynpro development.
    Scenario: I have one component which embed two views. One view is for enter customer number and in the other view I will see the name of the customer. The name of this customer is provided in a sap erp2005. I have develop a function modul and wich gave me the appropriate data(customer name). Then I create a web service base on this function module.
    When I test this web serviec in WSNavigator, I get the customer name, so the web service is working well.
    My Problem is: I can´t invoke this Web Service in Web Dynpro. My steps to invoke web service were: create a model with the web service wsdl and then I add this model in the component (in "Used Models").
    I have create a application and assign it to the component. When I "Deploy new archive and Run" the application I be come the error: "Configuration not found for application: demo.sap.com/test_wd3,serviceRefId:7fecf23b-0895-48f3-9902-0e7015a705c3. Please check the configuration details from the NWA. You may have not assigned the Service Group to a Provider System, or the generation of the configuration has failed."
    What do I have to consider or to set up?
    It is right to assign the input field to the context parameter?
    PS: I have followed the steps in this tutorial, but I don´t use XI or PI
    http://www.riyaz.net/blog/xipi-consuming-xi-web-services-using-web-dynpro-part-ii/technology/sap/7/
    best regards
    Anna von Landsberg
    Edited by: Anna_von_Landsberg on Dec 8, 2010 4:48 PM

    Hi,
    I have the following message error:
    Exception on execution of web service with WSDL URL
    'http://j2eeserver:port/xxxx/Config1?wsdl'
    with operation 'RequestNode' in interface
    'urn:xxxxx'
    When i debugged it, I found the following error:
    Cannot find the required parameter [unTipoProducto] in request message content.
    What is wrong?, I pasted the code of my method, that call to web service in the component controller.
      public void Alta_Entrega( )
        //@@begin Alta_Entrega()
         String tipoProducto = wdContext.currentAlta_EntregaElement().getUnTipoProducto();
         Request_Alta_Entrega entregaMO = wdContext.currentRequest_Alta_EntregaElement().modelObject();
         if (!wdContext.currentAlta_EntregaElement().getUnTipoProducto().equalsIgnoreCase("")){
              IWDMessageManager manager = wdComponentAPI.getMessageManager();
              if (logger.beDebug()) {
                entregaMO.wdSetInvocationLogEnabled(true); //switch on logging for this model object
              try{
                   entregaMO.setInvokerProperty(Stub.USERNAME_PROPERTY,"xxx");
                   entregaMO.setInvokerProperty(Stub.PASSWORD_PROPERTY,"xxx");
                   entregaMO.execute();
                   wdContext.nodeResponse().invalidate();
                   wdContext.nodeAlta_Entrega().invalidate();
              }catch (Exception e){
                   manager.reportException(e.getMessage(),false);
              logger.debugT(entregaMO.wdGetRequestLog()); //request log (HTTP header + SOAP request)
              logger.debugT(entregaMO.wdGetResponseLog()); //response log (HTTP header + SOAP response)
              logger.debugT(entregaMO.associatedModelClassInfo().getModelInfo().toString()); //model metadata in XML format
              logger.debugT(entregaMO.toString()); //model object tree in XML format (= model context node content)
    I hope you can understand me, because my english is very bad!!.
    Thank you.

  • Consume WebService in ABAP Web Dynpro

    Hi, Is there any How To or step by step document which shows to consume web service in ABAP Web Dynpro.
    I've searched a lot but could not find any.
    Please provide me some pointer/examples.
    Thanks,
    CD

    Hi Thomas,
    I am facing a problem in consuming web service in webdynpro.
    I created a web service for standard FM BAPI_BUS1240_CREATE (it is available in SAP ECC server).
    I want to consume this web service in another system (SAP Portal system, where users will be providing input; this FM is not available here).
    I created a Proxy class in SAP Portal system through the WSDL document of the Web service.
    I configured logical port for the same in TCode: SOAMANAGER and successfully tested the Client proxy (through TCode: SE80). As a result, the record is created in SAP ECC server.
    Now, I am unable to do the same through Webdynpro. Please find the attached Proxy class screen-shot. It has 6 methods of which BUS1240_CREATE contains the relevant parameters of the actual BAPI FM.
    I filled up the same parameters that I used in Testing the Client proxy but unable to create record in SAP ECC system. My code (On_submit of a button) looks like below,
    TRY.
          CREATE OBJECT wd_assist
            EXPORTING
              logical_port_name = 'ZXXXXXXX'.          "Logical port configured through SOAMANGER
            CATCH cx_ai_system_fault.
      ENDTRY.
          CALL METHOD wd_assist->bus1240create                  "Method filled with input parameters given by user
            EXPORTING
              input  = ls_inp
            IMPORTING
              output = ls_outp.
    After execution of method BUS1240_CREATE, system throws the error as below,
    The following error text was processed in the system DEP : Error (id=SoapFaultCode:5 ): Web service processing error; more details in the web service error log on provider side (UTC timestamp 20141011062545; Transaction ID 5B0F51E4AD4EF13EA6B9E41F137BE3CC)
    Please tell me where I went wrong. Do I need to call methods of the Proxy class? Also suggest if any configuration change involved in this.
    Have a nice day, thanks.

  • Consuming WSDL web services

    Hi Experts,
    we have a below scenario in XI
    Intranet application(uses XML and Javascript)-----SOAP-->SAP XI---->RFC (R/3)
    we exposed the outbound interface as web service. and created a WSDL of the web service in XI.
    but how to send the request from the intranet application to XI using the WSDL created.
    Please explain how to consume the WSDL web services in the intranet application.
    Thanks,
    MK

    Hi,
    Check the following Blog to get some idea:
    /people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
    /people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
    Siddharth
    Edited by: Siddharth Jain on Nov 19, 2008 5:18 AM

  • Web Dynpro Domino Web Service Consumer Problem

    Dear All,
    We are trying to consume a Web Service on Domino.
    The web service is working Fine on webdynpro web service checker (EP perspective, Web Service Checker), but when tested with check and deploy, the Webservice return an error:
    "Service call exception; nested exception is: com.sap.engine.lib.xml.parser.ParserException: The empty string is not acceptable for a value of an xmlns:* attribute.(:main:, row:1, col:0)"
    It is a simple web service getting a string in input and returning a simple string (xsd string in both cases),
    here are the soap messages used:
    Input
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://bespordom.lhoist.net/webserviceagent.nsf/directorywsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
      <SOAP-ENV:Body>
        <tnsMethod:getperson xmlns:tnsMethod="uri:Domino">
          <FullName xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">Davis</FullName>
        </tnsMethod:getperson>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    response
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <SOAP-ENV:Body>
        <m:getpersonResponse xmlns:m="Domino" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
          <Answer xsi:type="xsd:string">Jim [email protected] Falls1313 Mocking Bird laneNY127842241~</Answer>
        </m:getpersonResponse>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    this information came from the Webdynpro web service checker (or EP web service checker in Netweaver developer studio).
    Any Idea will be welcome.
    Message was edited by: Rui Felipe Rebelo Prego
    Message was edited by: Rui Felipe Rebelo Prego

    Hello victor I checked,
    Unfortunately It is only one input parameter and one output parameter.
    Example:
    Dividing a number By 2
    Example I send the number 10 and the result (xml/string) would be 5.
    Input Number as string
    Output Result as string
    message function divide
    WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions
         xmlns="http://schemas.xmlsoap.org/wsdl/"
         name="divide"
         targetNamespace="http://bespordom.lhoist.net/divide.nsf/wsdl"
         xmlns:tns="http://bespordom.lhoist.net/divide.nsf/wsdl"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <message name="divide">
    <part name="Number" type="xsd:string" />
    </message>
    <message name="divideResponse">
    <part name="Result" type="xsd:string" />
    </message>
    <portType name="DirectoryPortType">
         <operation name="divide">
              <input message="tns:divide" />
              <output message="tns:divideResponse" />
         </operation>
    </portType>
    <binding name="DirectoryBinding" type="tns:DirectoryPortType">
         <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
         <operation name="divide">
              <soap:operation soapAction="" />
              <input>
                   <soap:body use="literal" namespace="uri:Domino" />
              </input>
              <output>
                   <soap:body use="literal" namespace="uri:Domino" />
              </output>
         </operation>
    </binding>
    <service name="Directory">
         <documentation>Directory</documentation>
         <port name="DirectoryPort" binding="tns:DirectoryBinding">
              <soap:address location="http://bespordom.lhoist.net/divide.nsf/WebService?OpenAgent" />
         </port>
    </service>
    </definitions>
    When I run it in the Web service Checker with the URL http://bespordom.lhoist.net/divide.nsf/wsdl, it Gives me the correct result and Functionality. Here is the Soap generated on the Web Service checker:
    Soap request
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://bespordom.lhoist.net/divide.nsf/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
      <SOAP-ENV:Body>
        <tnsMethod:divide xmlns:tnsMethod="uri:Domino">
          <Number>10</Number>
        </tnsMethod:divide>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Soap Response
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <SOAP-ENV:Body>
        <m:divideResponse xmlns:m="Domino" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
          <Answer xsi:type="xsd:string">5</Answer>
        </m:divideResponse>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I initialize correctly the Web service and the field number (with new String()) in the component controller.
    When I click on the Button divide on the web dynpro interface, I call the executerequest defined in the component controller where I execute the call.
    But the response is always the same:
    Service call exception; nested exception is: com.sap.engine.lib.xml.parser.ParserException: The empty string is not acceptable for a value of an xmlns:* attribute.(:main:, row:1, col:0)
    What can i do or check, or can I debug the soap generated or received by the portal?
    Do you see something wrong?
    Thank you very much for your help.

  • Consuming an outbound iDoc from a Java Web Dynpro application on EP front

    Hi,
    I am trying to consume an outbound iDoc from a SAP system into a Java Web Dynpro application. The result would be displayed on the Enterprise Portal. Could anyone help me with the process to be followed for the same.
    Regards,
    Chandrima.

    Hi,
    I am trying to consume an outbound iDoc from a SAP system into a Java Web Dynpro application. The result would be displayed on the Enterprise Portal. Could anyone help me with the process to be followed for the same.
    Regards,
    Chandrima.

  • Consuming a Web service thru XI with Web Dynpro for ABAP

    Hi all,
    Does anyone know how to call a web service thru XI from Web Dynpro ABAP. The web service will call an RFC and bring back some data.
    Some guidelines on how to achieve this will be very much appreciated.
    Thanks
    KG.

    Hi Kunal,
    Do you want to use XI at the runtime of the service ? Usually for a synchronous call, XI is used only at the design time to design the message interface. Using this message interface the proxy class  in ur ABAP system can be generated. In the interface method of your proxy class you can call your RFC. Finally generate a webservice out of this proxy class via SPROXY tsn.
    Get the WSDL url of this webservice in tsn WSADMIN . Using this url you can call the service (peer-to-peer, no XI involved at runtime) with Webdynpro.
    I hope this answers your question.
    Regards,Girish

  • Consuming Web Services with Web Dynpro Java

    Hi All,
    I've been searching around for a weblog that would describe building a web dynpro java app that consumes a web service. Ideally, I'm looking for something that has at least two views.
    Does anyone know of good weblogs that address this?
    Thanks!
    Roman D.

    Have a look at the https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/5b77db42-0a01-0010-d7ba-8aa375593dd3">tutorial [original link is broken] [original link is broken].
    Armin

  • Consuming BI data in Web Dynpro

    Hi all,
    Is there any way in which I can consume BI queries as models in Web Dynpro?
    If no, then is there any alternative for this purpose?
    I want to use the BI queries to display tables and charts in web dynpro..
    Thanks,
    Ankit

    Ridouan,
    Not directly related to this question, but I ask: Are you developing VC applications to be exposed off to users or for pure proof of concept cases? Because from where I see, the lack of versioning in VC makes me leery to expose it to a large user community.
    Also, do you know if VC can be hosted on a different app server and front ended with Portal? (Like WebDynPro?). If it is possible, then it's great for performance.
    Thanks in advance,
    Kiran

  • Consume XI web service in web dynpro application

    HI All,
    I have scenario access web service in web dynpro java, which is created by XI ..Now I have WSDL file. Using that WSDL file I have imported web service model(Adaptive web service method)  in my web dynpro java.
    By following  the PDF document  = https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7 
    I have created a Model as mentioned in the PDF.
    Once model is created I have done the mapping from model to component controller, after that  I need to execute the Web service model .For the execution I need to write a code in component controller :- 
    model class name = XIModel
    XIModel obj = new XIModel();
    Once I am done with the above coding , and when I try to run the application I get the following error :-
    com.sap.engine.services.webservices.espbase.discovery.BaseIOException: Invalid Response Code 200 while accessing URL:http://atind037:50000/WSDL/GetPOPDF.wsdl. Response Message: OK. Content Type: content/unknown
    Could you please help me with this at the earliest , as it is a urgent issue.
    Regards,
    Boopathi M.

    Hi boopathi,
    It seems your wsdl url is not correct. Put the http://atind037:50000/WSDL/GetPOPDF.wsdl
    in your browser and check whether you are getting the WSDLDefinitions in xml format or not ?
    In wsdl url put ? instead of .
    URL : http://atind037:50000/WSDL/GetPOPDF?wsdl
    call adaptive web services mit Parameter
    Regards,
    Mithu

  • Consuming Web Service from ABAP Web Dynpro

    I have written program to consume KM Web Service through ABAP as well as ABAP Dynpro in SAP R/3 by calling Consumer Proxy.
    When I run the program from SE38, it prompts me for user-id & password. If I pass KM Server user-id and password I am able to execute the web service successfully.
    However, while I execute the same code through Web Dyn-pro , it does not ask for user-id and password & terminates with CX_AI_SYSTEM_FAULT : SOAP:1,007 SRT: Unsupported xstream found: ("HTTP Code 401  : Unauthorized")
    I have created a Logical Port in R/3 & I am using this Logical Port while creating an Object of Consumer Proxy.
    Kindly let me know how to resolve this issue.

    The dialog that is produced by HTTP Destination object of the logical port is designed only for use within Classic Dynpro applications.  There is no prompt produced when running in Web Dynpro.  If possible assign a generic user within the logical port definition and this will be used automatically by all users.

  • Portal DC consuming Web Dynpro DC? possible?

    Hello
    I am trying to consume a web dynpro DC in a portal DC (PAR) and have been unsuccessful so far.
    Can anyone help me with this? Any useful links or articles?
    The scenario is that I am using Web Dynpro - Adaptive RFC model to connect to the backend and get some data. I want a portal DC (PAR) to consume this web dynpro DC and use the data from the backend.
    Regards,
    Aditya

    Hi Aditya
    >I want a portal DC (PAR) to consume this web dynpro DC and use the data from the backend.
    It depends on what you have in PAR...
    If this is a Portal service you can invoke the service from the WebDynpro application and pass any backend data as you want.
    If this is a Portal application then you should use Portal client events (EPCF).
    BR, Siarhei

Maybe you are looking for