Webservice in NWDS having JCO code

Hi All,
I have a requirement which is to create a JAVA web service in NWDS which can service a .NET internet Application take some data from .NET and
put it into the SAP by calling a RFC Module...
I have written a class which has two methods
it simply connects to SAP & processes the RFC Module...
This class works fine if i run it as a
standalone java application with a main
method.. <b>but it fails</b> when i deploy it as a web service and try to run it through a Standalone
Client ... it is able to create the
WSDL and the methods are also visible but it
fails from the code where JCO logic starts...
I am getting the error message as
<b>Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.
wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
Error Message is :com/sap/guid/GUIDGeneratorFactory
javax.xml.rpc.soap.SOAPFaultException: com/sap/mw/jco/JCO$Exception
     at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.buildFaultException(MimeHttpBinding.java:651)
     at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.processDocumentFault(MimeHttpBinding.java:742)
     at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1240)
     at proxy.ConfigBindingStub.setCustomerMasterRFC(ConfigBindingStub.java:81)
     at proxy.ConfigBindingStub.setCustomerMasterRFC(ConfigBindingStub.java:112)
     at proxy.DealerClient.main(DealerClient.java:25)</b>
I am using sapjco.jar in the project properties dialog box but it is not there when the EAR is generated & deployed..
Can this be a problem ??? If yes where should i put
this sapjco.jar
Please help me out as i am really facing a hard time finding out the reason for this

Hi Maksim,
Thankyou so much maksim for the jar file path
you had given , the first error is gone
when i put the jar file in project
properties.
But i am still getting some errors
because of the JCO library methods that
i am using ... all other simple web services
work fine in my system but i am getting
following errors
<b>javax.xml.rpc.soap.SOAPFaultException: com/sap/mw/jco/JCO
     at com.sap.engine.services.webservices.jaxrpc.
wsdl2java.soapbinding.MimeHttpBinding.
buildFaultException(MimeHttpBinding.java:651)
     at com.sap.engine.services.webservices.jaxrpc.
wsdl2java.soapbinding.MimeHttpBinding.
processDocumentFault(MimeHttpBinding.java:742)
     at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1240)
     at proxy.ConfigBindingStub.setEclipseData(ConfigBindingStub.java:80)
     at proxy.ConfigBindingStub.setEclipseData(ConfigBindingStub.java:96)
     at com.carrier.isa.Client.main(Client.java:29)</b>
when i put a simple code like
                <b>JCO.Client aConnection=null;
          IRepository aRepository=null;
          try {
               System.out.println("Creating a client");
               aConnection=JCO.createClient(
                                             SAP_CLIENT,
                                             USER_ID,
                                             PASSWORD,
                                             LANGUAGE,
                                             HOST_NAME,
                                             SYSTEM_NUMBER);</b>                                             System.out.println(aConnection.toString());
          ArrayList array=new ArrayList();
          array.add("Tarun");
          array.add("Abhay");
          array.add("Sujit");
          array.add("Sandy");
          array.add("Sachin");
          returnStr=array.get(2).toString()"--"test;
          catch(Exception e)
               e.printStackTrace();
          return returnStr;
the code above is just a snippet of the whole .
I have sapjco.jar in project properties in NWDS or eclipse but this jar is missing when
i build an EAR in the Web services perspective..
Can the missing of this jar in the
project EAR be the cause of problem ...
if yes let me know where should i add it ...
Also, I created a simple java project so i
am not having any WEB-INF folder ...
do i need to create a web project instead ..
Please help me as you did earlier ..
I would be highly obliged ....

Similar Messages

  • Error in Running JCO code in Netweaver Devloper Studio

    Hi,
    I have written a simple java program to get data from SAP using JCO code. It get compiled successfuly but when I run it, It gives the following error :
    java.lang.NoClassDefFoundError
         at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:798)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:2829)
         at com.sap.test.SAPPoDetailMain.getPODetail(SAPPoDetailMain.java:39)
         at com.sap.test.SAPPoDetailMain.main(SAPPoDetailMain.java:77)
    Exception in thread "main"
    Is there any way in which I can run this code in Netweaver Devloper Studio.
    Thanks
    Naresh

    Hi Stefan,
    I have tried that but still it is giving the same. I am using Generated proxied to call function module. Once again copying the detailed error :
    java.lang.UnsatisfiedLinkError: no CpicNative in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
         at java.lang.Runtime.loadLibrary0(Runtime.java:788)
         at java.lang.System.loadLibrary(System.java:834)
         at com.sap.mw.rfc.api.RfcApi.initializeDLL(RfcApi.java:1285)
         at com.sap.mw.rfc.api.RfcApi.<clinit>(RfcApi.java:1299)
         at com.sap.mw.jco.MiddlewareJRfc.<clinit>(MiddlewareJRfc.java:228)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:141)
         at com.sap.mw.jco.JCO.<clinit>(JCO.java:630)
         at com.sap.test.SAPPoDetailMain.getPODetail(SAPPoDetailMain.java:26)
         at com.sap.test.SAPPoDetailMain.main(SAPPoDetailMain.java:79)
    java.lang.NoClassDefFoundError
         at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:798)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:2829)
         at com.sap.test.SAPPoDetailMain.getPODetail(SAPPoDetailMain.java:41)
         at com.sap.test.SAPPoDetailMain.main(SAPPoDetailMain.java:79)
    Exception in thread "main"
    Thanks
    Naresh

  • Need to call webservice WSDL directly from Java code

    Hi All,
    I hope u all are doing great.
    I am new to web services and i have a requirement where i need to call the webservice directly from the java code, we dont need any middle layer(via proxy n all).
    Can you all please help me on this, we are using Jdeveloper 11g and we do have WSDLs
    we shld be able to use the wsdl in code and pass the request and get the request
    Any help will be appreciated
    Thanks

    @Puthanampatti     
    Thanks, but i already went through this link and seems this link also says we need to access webserivice through stub,dii etc.
    I want straught java code to access webservice without any tier in between
    Thanks

  • Consume an RFC webservice in NWDS 7.0.9

    Is it possible to consume an RFC webservice in NWDS 7.0.9. Please provide me with the steps for the same.

    Runtime server local path should be:
    /usr/sap/EDH/JC04/j2ee/ -- if your WSDL is saved in a local path with only one folder say /wsdl/ then the WSDL should be located there as well as what the tutorial is said. So, in this case it should be:
    /usr/sap/EDH/JC04/j2ee/wsdl/myABAPWebService.wsdl
    Regards,
    Jan

  • Cannot create client error with sample SAP JCO code

    Hi,
    I am encountering the following error when trying to connect to a R/3 system using the WAS 6.40 on my laptop. I have cut and pasted the Example1 code from the SAPJCO into my NetWeaver developer studio IDE.
    java.lang.UnsatisfiedLinkError: no CpicNative in java.library.path
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at com.sap.mw.rfc.api.RfcApi.initializeDLL(RfcApi.java:1285)
         at com.sap.mw.rfc.api.RfcApi.<clinit>(RfcApi.java:1299)
         at com.sap.mw.jco.MiddlewareJRfc.<clinit>(MiddlewareJRfc.java:228)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at com.sap.mw.jco.JCO.<clinit>(JCO.java:630)
         at com.sap.mw.jco.support.JRfcTest.correctProperties(JRfcTest.java:1043)
         at com.sap.mw.jco.support.JRfcTest.initCall(JRfcTest.java:1072)
         at com.sap.mw.jco.support.JRfcTest.runConnectionTest(JRfcTest.java:735)
         at com.sap.mw.jco.support.JRfcTest.main(JRfcTest.java:202)
    Cannot create client, error message:
    java.lang.NoClassDefFoundError occured:
       Message:null
    I have a system user defined in R/3 but still this isn't working. I am new to Java so any light you could shed would be greatly appreciated.
    Cheers and TIA,
    Rich

    The unsatisfied link error should be because sapjco.jar cannot link to the sapjco.dll.
    I tried to simulate the problem by
    1) Opening a java perspective.
    2) Create a new 'java' project.
    3) Add libraries sapjco.jar from the path <Drive>:\Program Files\SAP\JDT\eclipse\plugins\com.sap.mw.jco\lib
    You will see sapjcorfc.dll in this path
    4)Add a new class file ,Wrote a sample jco code and executed and it worked..
    The key is to have the sapjcorfc.dll in the same directory as sapjco.jar
    I hope this helps

  • Potal webservice - SP14 NWDS issue

    Hi Experts,
    Is it possible to create Portal webservice from SP14 - NWDS?
    Issue: I have created a Portal service, trying to create a webservice from Portal service but I am not getting the Portal Webservice option (Select the Portal Service -> New -> Other -> Portal Application -> Create a new Portal Application Object -> Clicked on Next button -> Selected the Portal Service -> Next button ->Here I could able to see only three options ( (1)RF Component Wizard7.1.5 (2)Portal Component (3)Portal Service ). I am not getting the Portal webservice option. In my previous thread got the info that, in SP12 we could able to have the Portal webservice option. May I know the proper link to download the NWDS which supports Portal webservice from service market place?
    Some XI ppl have knowledge on EP also, so that I have put this question here.
    Regards
    Sara

    Hi Sara,
    It is possible to  create a portal service..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/df/e6b74253ffda11e10000000a155106/frameset.htm
    then expose the portal service as webservice using NWDS webservice perspective..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/df/e6b74253ffda11e10000000a155106/frameset.htm
    see the below urls.....
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0cac0dea-0d01-0010-edb4-8c7b068f4677
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ceea45f3-0c01-0010-049c-c2b001f590fb
    yes we can undeploy using sdm
    better for undeployment see belo links
    Modifying Web Service Application After Deployment - 20k -
    http://www.eclipse-plugins.info/eclipse/plugins.jsp?category=Web+Service&firstItem=11&pager.offset=10
    http://www.webservicessummit.com/sites_WS.htm
    http://www.crm2day.com/events/info/EpVVAupFVErLyPPbNz.php
    http://help.sap.com/saphelp_nw70/helpdata/en/82/6a0e7bbe744276bf393654b9b576ed/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b07992b3-b5af-2a10-9886-affcbeccc4c9
    Regards,
    Vinod.

  • #2170 error calling a webservice from Xcelsius having crossdomain.xml

    Hello together,
    we are facing a #2170 error indicating we don't have a proper policy file in place when executing a published Xcelsius flash in SAP BI application portal.
    We created a WebService that is running an SAP BI System 7.01. The WebService is function module based and was generated following the wizzard. Afterwards we created a Xcelsius app that consumes data from this WebService (via data connection). The resulting flash from Xcelsius was pulished to SAP BI System (portal).
    Since there are many entries in the SDN and the internet in general we finally also created an crossdomain.xml file on the BI system which can be accessed and is visible by using "https://<server>/crossdomain.xml".
    Now the confusion begins: We exported the flash from Xcelsius to local desktop and executed the corresponding HTML-file. It's working and I can receive/see WebService data (after adjusting flash-security-settings). If we upload both exported files (html and swf) to the BI system (as MIME objects) and execute the html again we are also receiving WebServervice data. So far so good. But if we execute the link from the SAP BI Portal (Xcelsius menu > SAP > Start) we still get the error #2170 indicating we don't have a proper domain policy file in place. But for my understanding we do have. So currently I would assume the error message is somehow misleading.
    During all the activities I found out that this error is also raised if the user has insufficient authorization. My user has SAP_ALL authorization for testing purpose.
    In general I would say we are not that wrong with our Xcelsius/WebService if we are not coming from BI portal. So my questions are:
    1.) Are there any authorization on portal side that might not fit and lead to this error? If insufficient authorizations produces such an error ...
    2.) Did we miss any other stuff during our try/fail-operations?
    Many thanks in advance for your hints.
    Steffen

    Hi Rajat,
    This is how the default trace looks
    FATAL: Application Servlet failed to notify devices.
    Caught java.rmi.RemoteException: Service call exception; nested exception is:
         com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (503) Service Unavailable. The requested URL was:"http://<<server>>:50000/ManagementService/ManagementService?style=document"
         at com.om.mws.standaloneproxy.ManagementServiceBindingStub.notifyDevice(ManagementServiceBindingStub.java:1289)
         at com.om.mws.standaloneproxy.ManagementServiceBindingStub.notifyDevice(ManagementServiceBindingStub.java:1298)
         at com.om.ApplicationServlet$NotifyDevices.run(ApplicationServlet.java:86)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (503) Service Unavailable. The requested URL was:"http://<<server>>:50000/ManagementService/ManagementService?style=document"
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:980)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1430)
         at com.om.mws.standaloneproxy.ManagementServiceBindingStub.notifyDevice(ManagementServiceBindingStub.java:1282)
         ... 2 more
    java.lang.NoSuchMethodError
    at java.lang.Thread.destroy(Thread.java:779)
         at com.omApplicationServlet$NotifyDevices.run(ApplicationServlet.java:92)
    Rgds
    Shashank

  • Error in Webservice Call HTTP error (return code 404, message conn failed)

    Hi
    We wish to call  a standard EP7 webservice through ABAP.
    When we try to create consumer proxy , we get the following error.
    HTTP error (return code 404, message "conn failed")
    Message no. SPRX090
    ==> Display Error Document
    If you want to generate a proxy for an external WSDL document by specifying a URL, check that the proxy settings of the system are correct (transaction SICF - Client - Proxy Settings). If you want to generate a proxy for an XI Repository object, check the connection to the Enterprise Services Builder as follows:
    Check List for Setting Up a Connection to the Service Repository
    1. The address of the Enterprise Services Repository must be known in the SAP system
    Check with report SPROX_CHECK_IFR_ADDRESS
    The address is taken from the following parameters in the exchange profile ('Connections' section):
    com.sap.aii.connect.repository.name: Server (for example,pwdf0436)
    com.sap.aii.connect.repository.httpport: Port (for example, 1080)
    com.sap.aii.connect.repository.contextroot: Root (for example,rep)
    The logon data is also read from the exchange profile ('ApplicationSystem' section):
    com.sap.aii.applicationsystem.serviceuser.name: User
    com.sap.aii.applicationsystem.serviceuser.pwd: Password
    As an alternative to using the exchange profile, you can maintain the RFC destination SAP_PROXY_ESR. If this RFC destination is maintained it will be used by the proxy generation in place of data from the exchange profile to access the Service Repository. In this case, the Exchange Profile will even not be read.
    The RFC destination has to be set up using transaction SM59 and should look like this:
    RFC Destination: SAP_PROXY_ESR
    Connection Type: G (HTTP Connection to External Serv)
    Description1: ESR for Proxy Generation
    Target Host: esr_host
    Service No: 1080
    Path Prefix: rep
    Logon and Security:
    Basic Authentication: active
    User: esr_user
    Password: esr_password
    2. The HTTP Framework of the Web Application Server must function
    Check with report SPROX_CHECK_HTTP_COMMUNICATION
    If necessary, contact your system administrator. Please be aware of the fact, that the HTTP framework is depending on the application server. Thus the result of the report may differ for different application servers.
    3. Proxy generation must interpret the data of the Enterprise Services Repository correctly
    Check with report SPROX_CHECK_IFR_RESPONSE
    you can also login in dev and go to Xn se91
    enter msg id SPRX and msg no 090
    select the message and click on long text..
    you get the same message in a formatted manner..
    How to get rid of this ?
    Regards
    Rajendra

    Hi
    we have given the correct path as we have tested the webserive from
    other technology (.net) by providing the same path.
    regards
    Rajendra

  • JCo code.

    I am using JCo 3, but I have problem to use it. Even I tested RFC using the JRfcTest tool successfully, but when I use JCo to getDestination, and then destination.getRepository(), I always get exception as below:
        message: Communication with RFC server programs is not supported with JCo standalone 3.0.1 (2008-10-21)
        Return code: RFC_INVALID_PARAMETER(19)
        error group: 101
        key: RFC_ERROR_PROGRAM
    I don't know what that means. I am following the examples provided by JCo library, but it's not working.
    Can any expert give me some idea what I am missing?
    Thanks a lot!
    Ken

    Have you tried upgrading to 3.0.2
    Read SAP Note 1310832 - SAP Java Connector Release 3.0.2
    Regards
    Juan

  • Java.rmi.RemoteException - on deploying a webservice through NWDS.

    Hi All,
    We have created and successfully build a webservice application in NWDS.
    Now when the activity is activated in Activation view, the build goes fine but deployment gets aborted with the following error:
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application syngenta.com/crmws~usprvwebservice..
    Reason: Webservices common deployment exception! The reason is: Error occurred, trying to update web services for application
    The Runtime system is on SAP J2EE ENGINE CORE 7.00 - SPS 19.
    For the same issue i checked in SDN and found out a SAP NOTE - 956443, according to which 2 sda files 'webservices' and 'webservices_lib'  were to be deployed on the server.
    We have done the same and restarted the engine also. But still on deployment we got the same error again.
    Just wanted to know the workaround for this issue and whether some updated version of this SAP Note does exist?
    Regards,
    Shailesh

    Hi All,
    Now the above issue has been resolved and the webservice is getting deployed successfully, and is visible under Web service Navaigator of the desired server.
    But when i am clicking on the webservice name i am getting an error:
    Cannot download WSDL from http://<name>:<port>/webservicename/Config1?wsdl: java.lang.NullPointerException.
    Could you please help out with this issue.
    Regards,
    Shailesh

  • I18n Struts Jco Code in Windows English and Polish System

    I am working on Struts ,SAP-JCO .
    This is i18n application running on Tomcat.
    I have designed my application in UTF8 charset.
    When Saving the polish characters from application they are saved into SAP Database properly.
    Before Saving i am doing following String modifications.
    The same code doesn't work on Tomcat Server on Windows English System.Here the Polish characters( ąęćłóńśźż ) are saved as #########.
    What would be cause for this.
    What changes i need to do in my code to work on both English And Polish Windows (Tomcat Server)
    strConvertedMessage = new String(strText.getBytes("UTF8"), "UTF8");
    inputTable.setValue(strConvertedMessage,"TABLENAME");

    Yes while retring the polish content from SAP following chnage is done between English and Polish Windows Systems.
    English Windows OS
    strFormatedMessage =new String(strMessage.getBytes("ISO-8859-1"), "ISO-8859-2");
    Polish Windows OS
                        strFormatedMessage=null;
                        strFormatedMessage = new String(strMessage.getBytes("UTF-8"), "UTF-8");

  • Webservices Performance impact Vs. JCo

    Hi,
    We are about to begin development and we are evaluating about developing with Webservices in the Back End following this instructions
    /people/sridhar.k2/blog/2006/09/12/creating-and-exposing-bapi-as-web-service-and-using-it-in-web-dynpro
    or using JCo, one of the issues we are worried about is performance, has some one messured the Performance degradation from using Webservices instead of JCo?
    Kind Regards!
    Gerardo J

    Hello,
    I was just looking for the same information. I was in kind of the same trouble as you.
    Exactly, according to what I managed to find, which is not much, about performance, rfc is better, but it involves more time in development.
    The article which the other contributor refers to is :
    u201CWeb services or RFCs u2014 choosing the right technology for your SAP integration challengesu201D by Prof. Dr. Willi Nüßer, May 15, 2006, available in SAP Professional Journal.
    Unfortunately, I have no access to this source. If you would have further information about this topic, I would appreciate a lot if you could refer it to me.

  • I am having error code 11 anyone to help pls

    Having problem in one recovered app when opening it gives connection to server failed error code 11

    Hi Thomas,
    Please try the solution described here:
    http://helpx.adobe.com/acrobat/kb/acrobat-x-closes-launch-creative.html
    -Dave

  • Portal webservice - SP14 NWDS issue

    Hi Experts,
    Is it possible to create Portal webservice from SP14 - NWDS?
    Issue: I have created a Portal service, trying to create a webservice from Portal service but I am not getting the Portal Webservice option (Select the Portal Service -> New -> Other -> Portal Application -> Create a new Portal Application Object -> Clicked on Next button -> Selected the Portal Service -> Next button ->Here I could able to see only three options ( (1)RF Component Wizard7.1.5 (2)Portal Component (3)Portal Service ). I am not getting the Portal webservice option. In my previous thread got the info that, in SP12 we could able to have the Portal webservice option. May I know the proper link to download the NWDS which supports Portal webservice from service market place?
    Regards
    Sara

    Hi,
        From service market place http://service.sap.com/sp-stacks , choose NW04 or 04S. Choose source and destination patch, check WAS and others. From next page, you can check the box for studio alone for download.
    Regards,
    Harini S

  • Error while consuming a webservice in nwds

    Dear Users,
      I m facing an error while consuming a wsdl webservice in webdynpro java error................
    Error Mon Apr 20 16:53:29 IST 2009 Apr 20, 2009 4:53:29 PM          com.sap.ide.webdynpro.ui.service.ServicesUI          [Thread[ModalContext,5,main]] Error: Internal error
       Plugin name: Web Dynpro Model Editor Services
       Plugin ID  : com.sap.ide.webdynpro.service.modeleditor
       Class      : com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$9
       Method     : doImportWebServiceModel
       Message    : Web Service model import failed
       Exception  : com.sap.ide.ws.proxygenerator.ProxyGeneratorException: Problems while generating the Proxy Definition!
    com.sap.ide.ws.proxygenerator.ProxyGeneratorException: Problems while generating the Proxy Definition!
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateProxy(ProxyGeneratorWrapper.java:416)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:283)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:279)
         at com.sap.ide.metamodel.importers.webservice.GenerateWS.doGenerate(GenerateWS.java:92)
         at com.sap.ide.metamodel.importers.webservice.WebServiceModelImporter.doImport(WebServiceModelImporter.java:117)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$9.run(ModelWizard.java:1155)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    -- caused by --
    com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Problem with WSDL file parsing. See nested message.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:182)
         at com.sap.ide.ws.proxygenerator.InternalHelperFunctions.generateInterfaces(InternalHelperFunctions.java:370)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateProxy(ProxyGeneratorWrapper.java:372)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:283)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:279)
         at com.sap.ide.metamodel.importers.webservice.GenerateWS.doGenerate(GenerateWS.java:92)
         at com.sap.ide.metamodel.importers.webservice.WebServiceModelImporter.doImport(WebServiceModelImporter.java:117)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$9.run(ModelWizard.java:1155)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Server redirected too many  times (20) -> java.net.ProtocolException: Server redirected too many  times (20)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1039)
         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)
         ... 8 more
    Caused by: java.net.ProtocolException: Server redirected too many  times (20)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:823)
         at java.net.URL.openStream(URL.java:913)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:201)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:263)
         at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280)
         at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342)
         at com.sap.engine.lib.xml.parser.DOMParser.parse(DOMParser.java:101)
         at com.sap.engine.lib.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:127)
         at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1025)
         ... 10 more
    Please help me in solving his issue.
    regards,
    Sathya

    I have the same issue attempting to connect my application to this WSDL:
    http://erp.esworkplace.sap.com/sap/bc/srt/xip/sap/ecc_projwbselmntcancrc?sap-client=800&wsdl=1.1&mode=sap_wsdl
    I can load the WSDL fine as an XML file. I can also load the WSDL fine if I connect via Firefox or a browser. I can open it fine in SoapUI. I just can't access it from my Java application.
    2009-10-26 18:11:45,943 ERROR [com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext] Loading of definition failed for [http://uid:password-erp.esworkplace.sap.com/sap/bc/srt/xip/sap/ecc_projwbselmntcancrc?sap-client=800&wsdl=1.1&mode=sap_wsdl]; java.net.ProtocolException: Server redirected too many  times (20)
    2009-10-26 18:11:45,943 ERROR [com.eviware.soapui.SoapUI] An error occured [Server redirected too many  times (20)], see error log for details
    2009-10-26 18:11:45,943 ERROR [soapui.errorlog] java.net.ProtocolException: Server redirected too many  times (20)
    java.net.ProtocolException: Server redirected too many  times (20)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.URL.openStream(Unknown Source)
         at com.adobe.idp.dsc.webservice.MyWsdlLoader.load(WebServiceSoapUIInvoker.java:675)
         at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:106)
         at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:469)
         at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:460)
         at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.cacheWsdl(WsdlLoader.java:176)
         at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:207)
         at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)
         at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)
         at java.lang.Thread.run(Unknown Source)
    2009-10-26 18:11:45,943 ERROR [STDERR] java.net.ProtocolException: Server redirected too many  times (20)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at java.net.URL.openStream(Unknown Source)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.adobe.idp.dsc.webservice.MyWsdlLoader.load(WebServiceSoapUIInvoker.java:675)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:106)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:469)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:460)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.cacheWsdl(WsdlLoader.java:176)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:207)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at java.lang.Thread.run(Unknown Source)
    Any ideas?
    Edited by: tburke on Oct 27, 2009 2:26 AM

Maybe you are looking for

  • How can i transfer contacts from my old phone(android) to my new iphone

    how can i transfer contacts from my old phone(android) to my new iphone

  • Subscription not active

    hello all. my subscription to india 800 hundred minutes. minutes are over. i bought new subscription of 800 minutes it will not active. and another time i bought new 120 minutes subcription it is also not active . it is showing in subcription bar. ca

  • Acrobat bookmark settings not saved

    FM 9.0p255, Acrobat 9 Pro Extended 9.4.1 – every time I go to save a book as .pdf, I now have to respecify the bookmark options. Don't remember noticing this before, and it would certainly have irritated me enough to prompt a posting! What's going on

  • Oracle already started by can't be connected from client

    Hi All, I just a newbie in oracle, can somebody please help me ?? :( . I already successfully install oracle in my fedora box, and I am already start the oracle service also . But when I try to connect to my oracle database via others computer. It fa

  • Material master and Division

    Hello Gurus, For common master data, the material master data cannot be defined as common for a group of divisions. Is it because a Material code can only be allowed to be assigned to 1 Division ? I just like to confirm the above. Thanks. M Russo