Error creating Webservice Client in JAVA for ABAP Webservice(WSDL file)

Hi all,
I have created a webservice from a funtion module in the backend.
Using soamanger I downloaded the wsdl file using "Open WSDL document for selected binding" link.
I tested this web service in backend and it is working fine.
Now I am trying to generate JAVA cilent for this webservice using Eclipse and Axis,but getting the following error
IWAB0399E Error in generating Java from WSDL:  WSDLException (at /wsdl:definitions/wsdl:portType/wsp:Policy):
faultCode=INVALID_WSDL: Encountered unexpected element '{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy'.:
    WSDLException (at /wsdl:definitions/wsdl:portType/wsp:Policy): faultCode=INVALID_WSDL: Encountered unexpected element
'{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy'.:
    at com.ibm.wsdl.util.xml.DOMUtils.throwWSDLException(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.parsePortType(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
    at java.lang.Thread.run(Unknown Source)
Please let me know,wat needs to be done for this error to get resolved
Thanks
Santhosh

Hi,
I am also getting the same error while generating the client class from IBM Rational Application Developer IDE.
Here is the error I get.
WSDLException (at /wsdl:definitions/wsdl:portType/wsp:Policy): faultCode=INVALID_WSDL: Encountered unexpected element 'Policy'.:
     [java] at com.ibm.wsdl.util.xml.DOMUtils.throwWSDLException(Unknown Source)
     [java] at com.ibm.wsdl.xml.WSDLReaderImpl.parsePortType(Unknown Source)
     [java] at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
     [java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
     [java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
     [java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
     [java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516)
     [java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
     [java] at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
     [java] at java.lang.Thread.run(Thread.java:571)
Did you find out the cause of this issue?
Thanks & Regards,
Vijay

Similar Messages

  • Need to create a Calender in WebDynpro for ABAP

    Hi,
    Tcode SSC1 displays owner's calender. I need to create same calender in WebDynpro for ABAP. I couldn't find any standard component usage for the same. Is there any component usage for the same or is there any altenative to create the same?
    It's quite urgent.
    Thanks,
    Mahesh

    Hi
    You have to use DateNavigator Control to get the left hand side screen in SCC1 and
    for the right hand side one you have to work with table Control
    for Date Navigator UI control see WDR_TEST_EVENTS
    and to get the right hand side screen see  WDR_TEST_TABLE see the view SingleMarkableCell.
    Using both these standard components you can achieve this.
    Abhi

  • Is it possible to Create a viewset in WebDynPro for ABAP-WAS 7.0 ?

    Hi All,
    Is it possible to Create a viewset in WebDynPro for ABAP-WAS 7.0 ?.
    or else
    is there any alternatives for seeing multiple views in single window at once!.
    Thanks, Sudeep..

    Hi Sudeep,
        you can make use of ViewContainer UI element to achieve same.
    Regards,
    Anoop

  • I try to export my Imovie and I always get the error code"Unable to prepare project for publishing...File already open with write permission"  it even does it when I am just trying to export to my external hard drive to save the file

    I try to export my Imovie and I always get the error code"Unable to prepare project for publishing...File already open with write permission"  it even does it when I am just trying to export to my external hard drive to save the file

    Thanks!!! I had same error (with -49) and the mac had an external hard drive attached.. and it was doing a backup.  Stopped, disconnected and the project exported!

  • How the client stub is generated from the wsdl file ?

    I want to know how the client stub is generated from the wsdl file ?
    how the client accesses the methods in the wsdl fie ?
    thanks alot .

    there are several ways to generate the stubs from a wsdl.
    if you're using jax-ws, there is a netbeans tutorial creating web services. you found this on http://www.netbeans.org/kb/trails/web.html.
    if you're using axis as your framework, i think this would be a nice introduction of it. link : http://www.eli.sdsu.edu/courses/spring03/cs683/notes/AXIS/AXIS.html#Heading4

  • Problem Creating New Client in SAP NW2004s ABAP+JAVA LINUX

    Hi,
    I installed successfully NW2004s dual stack on linux vmware (SUSE10 enterprise server). This stack give me two client by default, 000 and 001. System gives me default user sap* and password: sapn4sadm
    I want to implement the process for BW enabling, and I want to create New Client for it. I have been used SCC4 to create a new client by logging on with the Client 000, but the problem start, when I log-on with the new client.
    Client: 002
    User: sap*
    Password: pass
    I have tried system default password of sap* , but that also dosen't help.
    It doesn't work, I also try RZ10 to change the value of login/no_automatic_user_sapstar = 0, but I don't find any profile , when I click on the profile field, i get the message "Profile not found". I am not figuring out where I am doing wrong.
    How can I success to create a new Client in which i could log on with sap* user. Please Help me
    All  yours help would be highly rewarded.
    Obaid.

    In order to edit profiles In RZ10, you must first import them.
    Menu: Utilities --> Import Profiles --> Of Active Servers
    After this you can add your parameter.
    One alternative is to edit the profile directly with vi, restart the system, do all client copy tasks, remove the parameter with vi, restart the system again and then import the active profiles.
    the profiles are located in directory
    /usr/sap/<SID>/SYS/profile
    and the filename is something like this
    <SID>_DVEBMGS<instancenr>_<hostname>

  • Webservice Client implementation -  java.lang.ClassCastException

    Hi,
    We are trying to implement a WebService Client for the secure Webservice. I have created a deployable proxy client and deployed it on the server, our basis has attached the X509 certificate to the proxy in VA. Test Destination is successful. I have exposed the client as public part in the ws client dc project.I have created a used dc relationship to the webservice client project in my EP Component project.  I'm trying to use this client in a AbstractPortal component with following code
         SECQANDA seq = (SECQANDA) ctx.lookup("<JNDI location");
    I get a ClassCastException on this line
    java.lang.ClassCastException: <package>.SECQANDAImpl incompatible with <package>.SECQANDA
    Have anyone faced this problem? How do I resolve this error?
    Appreciate any help.
    Thanks,
    Giri.

    Hi Martin,
    Appreciate your response. I'm not able to cast to SECQANDAImpl because this implementaion class is not in my DC. What I understand is it gets implemented on deployment of the deployable proxy. Does that ring any bell?
    Thanks,
    Giri.

  • Error - Creating a Web Dynpro Application Accessing ABAP Functions

    Dear All,
    we are trying to implement a web dynpro application with accessing ABAP functions.
    Previous tasks:
    -     insert the ABAP system into the SLD from the NWDI System (Transaction RZ70; the ABAP system is correctly insert into the SLD => technical systems)
    -     equipped the JCO connections with the web dynpro content manager (ping and test = OK)
    It’s the standard tutorial out of the SDN called “Creating a Web Dynpro Application Accessing ABAP Functions”.
    Some hints:
    -     There are no errors after the implementation and the “rebuild” of the project in the NWDS
    -     The auto deployment works fine to the development runtime system. The application is shown in the Web Dynpro content manager
    -     The In the build log I found these entries:
    System.err] [Invoked from  com.sap.s2x.tools.GUID.getnodeaddress(GUID.java:585)]
    [System.err] java.net.UnknownHostException: FRASAPP562: FRASAPP562
    [System.err]      at java.net.InetAddress.getLocalHost(InetAddress.java:1191)
    [System.err]      at com.sap.s2x.tools.GUID.getnodeaddress(GUID.java:575)
    [System.err]      at com.sap.s2x.tools.GUID.<clinit>(GUID.java:179)
    [System.err]      at com.sap.s2x.tools.S2XGUID.getGUID(S2XGUID.java:19)
    [System.err]      at com.sap.ide.metamodel.core.i18n.LanguageState.createS2XID(LanguageState.java:191)
    [System.err]      at com.sap.ide.metamodel.core.i18n.S2XLanguageUnmarshaller.unmarshal(S2XLanguageUnmarshaller.java:52)
    [System.err]      at com.sap.ide.metamodel.core.i18n.TextPoolProxy.loadLanguageState(TextPoolProxy.java:703)
    [System.err]      at com.sap.ide.metamodel.core.i18n.TextPoolProxy.prepareLanguageForRead(TextPoolProxy.java:646)
    [System.err]      at com.sap.ide.metamodel.core.i18n.TextPoolProxy.isEmpty(TextPoolProxy.java:222)
    [System.err]      at com.sap.ide.webdynpro.checklayer.MDOChecker.check(MDOChecker.java:23)
    [System.err]      at com.sap.ide.webdynpro.checklayer.view.ViewChecker.check(ViewChecker.java:52)
    [System.err]      at com.sap.ide.webdynpro.checklayer.controller.ViewControllerChecker.check(ViewControllerChecker.java:96)
    [System.err]      at com.sap.ide.webdynpro.checklayer.controller.ControllerChecker.check(ControllerChecker.java:119)
    [System.err]      at com.sap.ide.webdynpro.checklayer.controller.ControllerChecker.check(ControllerChecker.java:56)
    [System.err]      at com.sap.ide.webdynpro.checklayer.component.ComponentChecker.check(ComponentChecker.java:181)
    [System.err]      at com.sap.ide.webdynpro.checklayer.component.ComponentChecker.check(ComponentChecker.java:56)
    [System.err]      at com.sap.ide.webdynpro.generation.Generation.check(Generation.java:2039)
    [System.err]      at com.sap.ide.webdynpro.generation.Generation.generatePersistentComponent(Generation.java:1296)
    [System.err]      at com.sap.ide.webdynpro.generation.console.GenerationConsole.generate(GenerationConsole.java:175)
    [System.err]      at com.sap.webdynpro.generation.ant.GenerationAnt.main(GenerationAnt.java:50)
    [System.err]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [System.err]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [System.err]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [System.err]      at java.lang.reflect.Method.invoke(Method.java:324)
    [System.err]      at com.sap.webdynpro.generation.ant.WDGenAntTask.execute(WDGenAntTask.java:219)
    [System.err]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [System.err]      at org.apache.tools.ant.Task.perform(Task.java:364)
    [System.err]      at org.apache.tools.ant.Target.execute(Target.java:341)
    [System.err]      at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [System.err]      at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    [System.err]      at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:112)
    [System.err]      at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:61)
    [System.err]      at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:213)
    [System.err]      at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:190)
    [System.err]      at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
    [System.err]      at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
    [System.err]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [System.err]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [System.err]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [System.err]      at java.lang.reflect.Method.invoke(Method.java:324)
    [System.err]      at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350)
    [System.err]      at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:102)
    [System.err]      at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:76)
    [System.err]      at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58)
    [System.err]      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723)
    [System.err]      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1495)
    [System.err]      at com.sap.tc.buildcontroller.CBSBuildController.build(CBSBuildController.java:727)
    [System.err]      at com.sap.tc.buildcontroller.CBSBuildController.execCommand(CBSBuildController.java:503)
    [System.err]      at com.sap.tc.buildcontroller.CBSBuildController.evalCmdLine(CBSBuildController.java:442)
    [System.err]      at com.sap.tc.buildcontroller.CBSBuildController.run(CBSBuildController.java:314)
    [System.err]      at com.sap.tc.buildcontroller.CBSBuildController.exec(CBSBuildController.java:252)
    [System.err]      at com.sap.tc.buildcontroller.CBSBuildController.mainLoop(CBSBuildController.java:207)
    -     I’m able to start the application out of the Web Dynpro content manager with “run” => only the user interface is displayed without any functionality
    -     The “normal” start over the NWDS fails => error text
    “com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'local/J08_Flugdat_Daventdcflight~xxx.com' and application 'FlightListApp' are not deployed on the server. Please check the used URL for typos.”
    There two different URLs in use.
    Start via NWDS:
    http://frasapp562:50000/webdynpro/dispatcher/J08_Flugdat_Daventdcflight~xxx.com/FlightListApp
    Start via web dynpro content manager:
    http://frasapp562:50000/webdynpro/dispatcher/xxx.com/aventdc~flight/FlightListApp
    For test purposes, we started the BAPI (BAPI_Flight_Getlist) on the ABAP system directly. It works.
    Any ideas about the system behaviours (different URLs and missing functionality)?
    Thanks a lot in advanced!
    Best regards
    Christoph

    The Error has been solved – The implementation of a method was missing....
    Thx
    Christoph

  • OATS: Error Creating datasource client connection

    Hi All
    When i try to add montiors in the OATS controller machine i am getting the following error .
    Error while creating datasource client connection.
    i am trying to monitor a linux machine. I am able to ping that machine from controller.
    when i tried to do
    plink.exe username@hostname i am getting the following error ...
    FATAL error : Network error : Connection timed out..
    Can anyone please help me on this??
    Thanks

    I'm not sure if this is the same problem but the following thread may help (mentioning the ports that may need opening on your firewalls)...
    Re: What are the various ports used by OLT?
    oracle.port.rmi=4444
    oracle.port.http=8088
    oracle.port.empstart=9001
    oracle.port.uil2=7071
    oracle.port.dataCollector=7073
    oracle.port.webservice=8083
    oracle.port.jndi.rmi=1098
    oracle.port.jndi=1099
    oracle.port.https=8433
    * 9001 (Agent Comunication Port)
    * 1099 (Datacollector Comunication Port)
    * 8088 (for running OpenScript scripts)

  • How to create interactive forms using Webdynpro for ABAP

    Hi All,
             I have worked on Webdynpro for ABAP, and now I want to start creating adobe interactive forms using Webdynpro for ABAP. Please provide me with basic examples to start.
    Also Please provide me introduction as how interactive forms are related to ISR senarios.
    Thanks in Advance.
    Phani

    Hi Varun!,
    Can you please send me also the above said step by step tutorial on [email protected]
    and can you please also guide me any configurations to be done on Sneak Preview SP12 before developing the interactive forms.
    Thank you in advance.
    regards
    Ravi

  • SolMan 7.1 Java for ABAP Stack ?

    Hello
    Witch JVM for SAP Solution manager 7.1
    OS: Linux x86_64
    DB: MAxDB
    SAP JVM for Diagnostic agent
    PAM provide SAP JVM or IBM JAVA for Java stack, but for ABAP ?
    Regards
    Eric

    Hello
    I understand that SAP recommend "SAP JVM" for Diagnostic Agent and Java Stack.
    but PAM only mention SAP JVM for stack Java, my Solution Manager 7.1 is a central system (ABAP+JAVA).
    Solution Manager JAVA Stack      
    IBM JSE 1.4.2 64BIT       LINUX REDHAT EL5/X86_64 64BIT       Released       16.05.2011
    SAP JVM 4.1                  LINUX REDHAT EL5/X86_64 64BIT       Released       17.05.2011
    SAPINST prompt for installing a Java Development Kit, JDK Directory.
    I've find information regarding SAP Java Switch Tool, but nothing for SAP JVM installation during SAPINST?
    Regards
    Eric MOUREY

  • Create Operation with Integration Gateway for SOAP Webservices

    Dear All,
    Has anyone used the create operation for Soap Webservices for SMP 3.0 to invoke a POST into the system using OData and Integration Gateway.
    Can you please help with the steps.
    Thanks,
    Best Regards,
    Rakshit Doshi

    I tried the same sometime back but faced some issues. Then i came to know about one known issue.
    Reference
    Rgrds,
    JK

  • Getting an error message about UID:  Unowned UIDs for ImageFrame   CANNOT SAVE FILE

    Getting an error message about UID:  Unowned UIDs for ImageFrame   CANNOT SAVE FILE

    Hi,
    Could you please share your .muse file with us to investigate? Please email it to [email protected] If your file is greater than 20MB you can use something like Adobe SendNow or SendThisFile or Dropbox. Please do not forget to mention the link to this forum thread in your e-mail so that we can identify the file.
    Regards
    Vivek

  • Can't create client proxy classes from WebLogic-generated WSDL file

    We have a web service that we used to generated a WSDL file. We then used clientgen
    to try and create the client proxy classes from the WSDL. This failed. Doesn't
    it seem reasonable that if WebLogic creates a WSDL that WebLogic should also be
    able to consume that WSDL?

    Can you please post the wsdl?
    Regards,
    -manoj
    http://manojc.com
    "Robert" <[email protected]> wrote in message
    news:40db0bc0@mktnews1...
    >
    We have a web service that we used to generated a WSDL file. We then usedclientgen
    to try and create the client proxy classes from the WSDL. This failed.Doesn't
    it seem reasonable that if WebLogic creates a WSDL that WebLogic shouldalso be
    able to consume that WSDL?

  • Consuming web service in ABAP  using wsdl file  (need to use PI 7.1)

    Hi ,
      I am from Basis team , currently  one of our Developr(ABAP)  generating  ABAP Proxy using wsdl file (non-SAP)  within R/3 system and using it in his ABAP program to access  a Non-SAP system . In this process the only thing he is gettnig from Basis is creating Logical Port using SOAMANAGER.
      Now  we have  our PI 7.1 systems ,  we would like to leverage PI 7.1 systems for this process . But  ABAP developer doesn't have any idea about PI Development related activities , hence he is depending on Basis .
      Can  you please let me know  how we can leverage  PI 7.1 systems in this process ??
       I have already  configured ABAP Proxy on ECC system  mentioned PI 7.1 as Integration server( Ref :
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies)
    ECC version : 6.0 EHP1
    PI 7.1
                                                                                    ECC  <->  PI <--> Non-SAP system
    Thanks,
    Bhaskar

    Hi Sekhar,
    Please see below link. It will be helpful.
    Regards,
    Sudha

Maybe you are looking for

  • Can't sync 3gs, iOS 5, XP, Outlook 2007

    I upgraded my 3gs last night from my Mac at home.  Everything went fine, nothing lost. Today I tried to sync the calendar on my work PC, Windows XP, Outlook 2007 after upgrading to the latest version of iTumes.  I have been doing this for well over a

  • Iphone4 dropped in water 1611 error

    Well, This is what ive done so far. This is my wifes phone and I was out of town so I coulndt get to it right away,so I had a poly..whatever screwdriver overnighted to her. She took the back cover off and let it sit in a closed bowl of rice for four

  • Not able to finish the database creation 10gR2

    Friends, OS: RHEL As 4.8 DB: 10gR2 (10.2.0.1) After finishing installation the dbca started when i click the final finish.... DBCA throws the error.... you do not have enough free disk space to create the database. you need at least 14738432 KB on /t

  • Where can I get a Calendar Bean?

    Dear experts, I plan to place a Calendar control in my application. Could anybody suggest me where can i get a one? Thanks in advance Unique

  • Re: Satellite L30D - Low screen resolution after Windows 7 installation

    I have installed Windows 7 on my Satellite L30D. Since this installation, I cannot have a better resolkuton than 1024x768.*It was much better with Windows Vista. I have downloaded the latest ATI driver. No effect. I cannot find the Catalyst Control C