HELP: Error while consuming Web Service: ClassCastException

Hi,
I am trying to consume a web service that I deployed on Tomcat/Axis. Any guideline will be helpful. I generated stubs using WSDL2Java utility from Axis. The method I am trying to call is getFibo(), which returns an object FiboHolder. Unfortunately everytime it is throwing ClassCastException. I have couple of other methods in the service that returns int and int[] and both works fine. Could anyone please help why I am not able to consume the service when it is returning the object FiboHolder but works fine when I consume other methods of the service that returns int or int[]?
Following is my client code:
    FibonacciService service =  new FibonacciServiceLocator();
    FibonacciSoapBindingStub stub = (FibonacciSoapBindingStub) service.getfibonacci(new URL("http://localhost:8080/axis/services/fibonacci"));
    // Now use the service to get a stub to the service
    FiboHolder fibHold = stub.getFibo();  //code errors out at runtime here
    System.out.println(fibHold.getFibo1());Following is the error message I get:
org.apache.axis.AxisFault: java.lang.ClassCastException
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.ClassCastException
faultActor:
faultNode:
faultDetail:
     {http://xml.apache.org/axis/}hostname:
Thanks,

Hi all,
Please throw some light into this issue i am getting the following exception.
com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: Proxy Authentication Required.
I have given the proxy settings in the com.sap.portal.ivs.httpservice  in the portal and also
defined a proxy server in the Visual Administrator under Services -> Webservice Container -> HTTP Proxy Server
I am calling service in the following manner.
IPortalRuntimeResources runtime = PortalRuntime.getRuntimeResources();
   IService service = runtime.getService(IWS_P_Service.KEY);
   IWS_P_Service ws_service = (IWS_P_Service)service;
    Volumes from = new Volumes(Volumes.VOLUMES_KILOLITER_VALUE);
    Volumes to = new Volumes(Volumes.VOLUMES_LITER_VALUE);
    ChangeVolumeUnit cvu = new ChangeVolumeUnit(1200,from,to);
    // working upto here
     response.write("working");
     ChangeVolumeUnitResponse cvu_res = ws_service.ChangeVolumeUnit(cvu);
     double result = cvu_res.getChangeVolumeUnitResult();
     response.write(result+"");
It is working upto "working".
If any body has any solutions please post.
Thanks

Similar Messages

  • Authentication error while consuming web service published in SR of CE 7.1

    Hi,
    I am having this error while trying to consume a web service published in local services registry. Authentication level is set as Basic in the web service and in end point. I am receiving this error in security log files.
    Message:Authentication for web service ServicesRegistrySiService, configuration ServicesRegistrySiPort using security policy sap.com/tcesiuddisrws~earServicesRegistrySiServiceServicesRegistrySiPort*ws failed: Login failed.. (See SAP Note 880896 for further info).
    Category: /System/Security/WS/Authentication
    Location: com.sap.engine.services.wssec.authentication.authenticate
    Application: sap.com/tcesiuddisrws~ear
    Thread: HTTP Worker [1]
    Data Source: j2ee\cluster\server0\log\system\security_00.log
    Correlator ID: 33747500000034965
    Argument Objects: 
    Arguments: 
    DSR Component: 
    DSR Transaction: 72b226c009ed11dd9a3e000c29c818ce
    DSR User: 
    Message Code: 
    Session: 4196
    Transaction: 
    User: Guest
    Host: ########
    System: ###
    Instance: J00
    Node: server0
    following is the code in a C# .Net 2.0 from where the service is called.
                CnarService srv = new CnarService();
                NetworkCredential ic = new NetworkCredential("user", "password");
                CredentialCache cache = new CredentialCache();
                srv.UseDefaultCredentials = false;
                srv.PreAuthenticate = true;
                srv.Credentials = ic;
                try
                    srv.Timeout = 600;
                    cnarobject cnObj = srv.GetObject("1");
                    fnameTextBox.Text = cnObj.firstname;
                    lnameTextBox.Text = cnObj.lastname;
                    mnameTextBox.Text = cnObj.middlename;
                catch (WebException wex)
                    MessageBox.Show(wex.Message + wex.Response + wex.StackTrace);
    I tried to find the SAP Note 880896 but note doesn't exists. I am receiving similar error while trying to connect Enterprise Services explorer for .Net
    Please help.
    Regards
    Monty

    Hi,
    maybe you should see the settings for the ServicesRegistrySiService too. Under nwa->SOA.
    I am not sure, but the error seems like not able to use the ServicesRegistrySiPort, which is to be authenticated against.
    It is then used for retrieval of web services and publishing to the registry... i suppose.
    I am not sure though.
    Best regards,
    Vera

  • Error while consuming web service in portal component

    Hi All,
    I am working on a portal application which uses web services in portal component via web service.
    I have tested the web service and then creted a relevant portal service to it .When using this portal service in the portal component and running it Im getting the following run time error
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : Test_portal_service_app.Test_portal_service_app
    Component Name : Test_portal_service_app.Test_portal_service_app
    com.sap.portal.ivs.global.ume.UMECLient.
    Exception id: 11:17_03/07/08_0028_2739150
    See the details for the exception ID in the log file
    I did not use any ume attributes or ume api methods in the portal component .
    I have also added sharingreference= portalserviceapplication name  in deploymentdescriptor of the portal application which has the portal component.
    Please provide any suggestion for the possible cause of error .
    Urgent!!!!
    Thanks.

    Hi all,
    Please throw some light into this issue i am getting the following exception.
    com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: Proxy Authentication Required.
    I have given the proxy settings in the com.sap.portal.ivs.httpservice  in the portal and also
    defined a proxy server in the Visual Administrator under Services -> Webservice Container -> HTTP Proxy Server
    I am calling service in the following manner.
    IPortalRuntimeResources runtime = PortalRuntime.getRuntimeResources();
       IService service = runtime.getService(IWS_P_Service.KEY);
       IWS_P_Service ws_service = (IWS_P_Service)service;
        Volumes from = new Volumes(Volumes.VOLUMES_KILOLITER_VALUE);
        Volumes to = new Volumes(Volumes.VOLUMES_LITER_VALUE);
        ChangeVolumeUnit cvu = new ChangeVolumeUnit(1200,from,to);
        // working upto here
         response.write("working");
         ChangeVolumeUnitResponse cvu_res = ws_service.ChangeVolumeUnit(cvu);
         double result = cvu_res.getChangeVolumeUnitResult();
         response.write(result+"");
    It is working upto "working".
    If any body has any solutions please post.
    Thanks

  • Authorization error while consuming web service in SOAP UI

    Hi,
    I am an ABAPer and do not have much knowledge about SOAMANAGER configuration.
    I have created a Web service and configured it using SOAMANAGER. I am trying to consume same web service using SOAP UI.
    But, I am getting an error HTTP-401 unauthorized.
    For authentication, I have selected "Transport level -User ID/Password" checkbox.
    What else, I have to configure, please let me know.
    Error log:
    Login failed
    What happened?
    calling the URL  <URL>.
    The application was running in the system <System> . Here, no credentials were provided.
    What can you do?
    If you still have a user ID , contact your system administrator.
    HTTP 401 - Unauthorized
    Your SAP Internet Communication Framework Team
    Regards,
    Sneha

    Hi Sneha,
    In SOAP UI, after importing WSDL, dig it till Request1, select it and go to Request property.
    Set Below things
    1. Authentication Type = Preemptive
    2. give username
    3 give password
    and send message.
    Regards,
    Mastan
    Message was edited by: mastan vali

  • Error while consuming Web Service (returning XML ) in ABAP

    Hi,
    i am trying to consume a web service in ABAP. ( webservice which takes a request and return a XML string back).
    I created a proxy class in SE80. and i tested it successfully.
    When i tried to use the class in my program, it is giving dump.
    i am not sure what is the problem. I guess it is not able to handle null values in XML.if that is the case. how to handle it..

    The dump says:
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
    Except.                CX_SY_REF_IS_INITIAL      
    Error analysis                                                              
        An exception occurred that is explained in detail below.                
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
         caught and                                                             
        therefore caused a runtime error.                                       
        The reason for the exception is:                                        
        You attempted to use a 'NULL' object reference (points to 'nothing')    
        access a component (variable: "LO_CLIENTPROXY").                        
        An object reference must point to an object (an instance of a class)    
        before it can be used to access components.                             
        Either the reference was never set or it was set to 'NULL' using the    
        CLEAR statement.                                                        
    I think this dump is because of the default value ( space) in some elements. How to avoide that.
    wheni catch CX_SY_REF_IS_INITIAL it is not giving any dump. But this is not my requirement. Because it is not getting anything into  response string.

  • Error while consuming Web service!!

    Hi All,
    1)I have created RFC enabled function module in R/3 back end
    2)I want to use this Funtion module in webservice callacble object
    3)I have created a callable object,but i am getting this error while testing
    invocation failed: The host of endpoint URL "http://<host>:8001/sap/bc/soap/rfc" was not found. Check if the WS Client is configured correctly. Probably endpoint URL is not set or use of HTTP Proxy is required.; nested exception is:
    java.net.UnknownHostException: proxy
    Secondly i tried using external webservice and this is :
    http://www.webservicex.net/WeatherForecast.asmx?WSDL
    When i use this WSDL url, i am getting the error as : Could Not load WSDL URL:http://www.webservicex.net/WeatherForecast.asmx?WSDL :GenericServiceFactory initialization problem while calling WSDL model.
    Can anybody guide me solving these two issue?
    Any help will be highly apprecaited!!
    Regards,
    Ameya

    Hi,
    Does anybody have any idea about it ?Please suggest any solution.
    Help will be highly appreciated.
    Regards,
    Ameya

  • XML Parser Error while creating Web service Client using JAX RPC

    hello evryone,
    Im facing XML Parser Error while creating web service client using JAX RPC. Im using Net Beans IDE for development purpose. I have wrote configuration file for client. Now i want to create Client stub. However i dont know how to do this in Net Beans. So i tried to do it from Command promt using command :
    wscompile -gen:client -d build -classpath build config-wsdl.xml
    here im getting Error:
    error parsing configuration file: XML parsing error: com.sun.xml.rpc.sp.ParseException:10: XML declaration may only begin entities
    Please help me out.
    Many thanks in advance,
    Kacee

    Can i use the client generated using jdeveloper 11g to import into the oracle forms 10g, i.e., form builder 10g. Currently this is the version we have in our office.

  • Error while consuming Odata service from Gateway client i.e /iwfnd/gw_client

    Hello Experts.
       I am facing below an error while consuming the Odata service from GW client... The error is "No service found for the namespace /IWFND/,name ZTEST_STOREROOM_SRV,version 001". Even i have tried to deep dive in /IWFND/Error_log but no use..
      Actually what I was doing :- My aim is to connect multiple back end systems in the same server with the help of Aliasing concept.. I have created multiple aliases and added in the /IWFND/MAINT_Service transaction.. but i am not getting how to consume the service..
       I have followed the solution upto some extent in the link => Multiple Origin Composition - SAP NetWeaver Gateway Foundation (SAP_GWFND) - SAP Library
      Can you please let me know how to resolve this.. Also please let me know, the syntax for the URI...
      Your help is highly appreciated..
      Please find the screenshot attached.
    Thanks,
    Srinivas.

    Hello @Nrisimhanadh_Yandamuri
      Thanks for your reply..
      I have got all the required authorization.. But still I am not able to hit the service.. Please let me know what could be the solution..
    Thanks,
    Srinivas.

  • Windows authentification while consuming web service from ABAP

    Hi All,
    We are consuming web service from ABAP, we have created client proxy in SE80 and configured logical port in LPCONFIG.
    This one was working fine. Now we have added  windows user authentification to access this service.
    Now when I'm trying to regenerate this proxy in R/3 it is asking for user and password. When I enter these details this one is not working.
    If I access this service direcly from internet explorer and I enter same user and password then I would able to access this service.
    Could you please let me know how to handle this.
    Regards
    Vikram

    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.

  • 500 Error code while consuming web service using HTTPURLConnection

    Hi,
    I am getting an HTTP response code 500 and an IOException when I run a web service client to invoke a BMC Remedy web service (document based). I am using XML over HTTP to hit the web service as follows:
    // For Remedy
    soapAddress = "http://www.test-sislhelpdesk.siemens.co.in/arsys/services/ARService?server=bomw041a&webService=WebService_Test";
    soapEnvelope = "<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:Header><AuthenticationInfo><userName>webservice</userName><password>*******</password></AuthenticationInfo></SOAP-ENV:Header><SOAP-ENV:Body><Q1:OpGetList xmlns:Q1=\"urn:WebService_Test\"><Q1:Qualification></Q1:Qualification></Q1:OpGetList></SOAP-ENV:Body></SOAP-ENV:Envelope>";
    soapAction = "urn:WebService_Test/OpGetList";
         URL url = new URL(soapAddress);
         HttpURLConnection connection = (HttpURLConnection) url.openConnection();
         System.out.println ("Connection got");
         connection.setDoOutput(true);
         connection.setRequestProperty("Content-Type","text/xml");
         connection.setRequestProperty ("soapAction", "\"" + soapAction + "\"");
         OutputStreamWriter outputStream = new OutputStreamWriter(connection.getOutputStream());
         System.out.println ("outputstream got");
         outputStream.write(soapEnvelope);
         outputStream.flush();
         BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
         String line = null;
         while ((line = reader.readLine()) != null)
              writer.write(line);
              writer.write("\n");
         System.out.println (writer);
         catch(Exception e){
              e.printStackTrace();
    I have created a .NET client proxy which seems to work well.
    I am not able to figure out as to why this code is not working. May be something wrong with the SOAP message request I am sending? But I have created this SOAP request message from the log generated for a successful hit. Any help in this regard will be highly appreciated.
    The web service is on the internet and hance is accessible to all :)
    Regards
    Vaibhav

    Tried "POST" request method, did not work.
    Actually when i hit other web services (created by me) , the code works.
    But when I hit a third party web service, it fails returning 500 error code.
    How can I extract the SOAP message returned, if any and see thinggs for myself.
    I guess there is something wrong with the request SOAP message which I am sending.

  • Error while deploying web service in Netweaver application

    Hi,
    In my group, two members working in the development of a WebDynpro based application.  We have created a track and are using the same for development. For our application
    the team member 1 created a Dc say DC1 for EJBS(both
    entity and session) and another DC say DC2 for the application archieve 'ear'
    and activated the two DCS. When another member of
    the team is trying to create a webservice in the checked out DC, the
    webservice was created successfully but while deploying the
    application archive DC it gives an error (details furnished below).
    Error:
    :Caught exception during application deployment from SAP J2EE Engine's
    deploy service:java.rmi.RemoteException: Cannot deploy
    application asianpaints.com/pe_mgt_ear.. Reason: Webservices common
    deployment exception! The reason is: Error occurred,
    trying to update web services for application
    asianpaints.com/pe_mgt_ear. . Additional info: none; nested exception
    is:
    java.lang.Exception:
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment
    exception! The reason is: Error occurred, trying to update web services
    for application asianpaints.com/pe_mgt_ear.
    WSDeploymentException: Webservices common deployment exception! The
    reason is: Error occurred, trying to parse documentation
    for web service NewPEProcessorService. .
    So we created one more DC3(referring the entity beans of DC1) and
    created the required session bean and webservice in that
    DC. It got deployed successfully. Again when we are trying to create
    new webservice it got created but the deployment got
    aborted with the same error as mentioned above:
    The detailed error description we got in both the cases is given below:
    Mar 30, 2006 1:07:39 PM /userOut/deploy
    (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy
    Thread,5,main]] INFO:
    [005]Additional log information about the deployment
    <!LOGHEADER[START]/>
    <!HELP[Manual modification of the header may cause parsing problem!]/>
    <!LOGGINGVERSION[1.5.3.7185 - 630]/>
    <!NAME[/usr/sap/J2E/JC00/SDM/program/log/sdmcl20060330074205.log]/>
    <!PATTERN[sdmcl20060330074205.log]/>
    <!FORMATTER[com.sap.tc.logging.TraceFormatter(%24d %s: %m)]/>
    <!ENCODING[ISO8859_1]/>
    <!LOGHEADER[END]/>
    Mar 30, 2006 1:12:07 PM Info: -
    Starting deployment -
    Mar 30, 2006 1:12:07 PM Info: Loading selected archives...
    Mar 30, 2006 1:12:07 PM Info: Loading
    archive '/usr/sap/J2E/JC00/SDM/program/temp/temp35515asianpaints.com~pe_mgt_ear.ear'
    Mar 30, 2006 1:12:17 PM Info: Selected archives successfully loaded.
    Mar 30, 2006 1:12:17 PM Info: Actions per selected component:
    Mar 30, 2006 1:12:17 PM Info: Update: Selected development component
    'pe_mgt_ear'/'asianpaints.com'/'J2E_HSSPNEW_D'/'20060330130420' updates
    currently deployed development component
    'pe_mgt_ear'/'asianpaints.com'/'J2E_HSSPNEW_D'/'8008'.
    Mar 30, 2006 1:12:17 PM Info: The deployment prerequisites finished
    without any errors. All items are correct.
    Mar 30, 2006 1:12:17 PM Info: Saved current Engine state.
    Mar 30, 2006 1:12:17 PM Info: Error handling strategy: OnErrorStop
    Mar 30, 2006 1:12:17 PM Info: Update strategy: UpdateAllVersions
    Mar 30, 2006 1:12:17 PM Info: Starting: Update: Selected development
    component
    'pe_mgt_ear'/'asianpaints.com'/'J2E_HSSPNEW_D'/'20060330130420' updates
    currently deployed development component
    'pe_mgt_ear'/'asianpaints.com'/'J2E_HSSPNEW_D'/'8008'.
    Mar 30, 2006 1:12:17 PM Info: SDA to be deployed:
    /usr/sap/J2E/JC00/SDM/root/origin/asianpaints.com/pe_mgt_ear/J2E_HSSPNEW_D/20060330130420/temp35515asianpaints.com~pe_mgt_ear
    .ear
    Mar 30, 2006 1:12:17 PM Info: Software type of SDA: J2EE
    Mar 30, 2006 1:12:17 PM Info: ***** Begin of SAP J2EE Engine
    Deployment (J2EE Application) *****
    Mar 30, 2006 1:15:07 PM Info: Begin of log messages of the target
    system:
    06/03/30 13:12:17 -
    06/03/30 13:12:20 - Start updating EAR file...
    06/03/30 13:12:20 - start-up mode is lazy
    06/03/30 13:12:23 - EAR file updated successfully for 3161ms.
    06/03/30 13:12:23 - Start updating...
    06/03/30 13:12:24 - EAR file uploaded to server for 525ms.
    06/03/30 13:15:07 - ERROR: Not updated. Deploy Service returned ERROR:
    java.rmi.RemoteException: Cannot deploy
    application asianpaints.com/pe_mgt_ear..
    Reason: Webservices common deployment exception!
    The reason is: Error occurred, trying to update web
    services for application asianpaints.com/pe_mgt_ear. . Additional info:
    none; nested exception is:
    java.lang.Exception:
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException:
    Webservices common deployment exception! The reason is: Error occurred,
    trying to update web services for application
    asianpaints.com/pe_mgt_ear. . Additional info: none
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:164)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:118)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:86)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateManager.makeUpdate(WSUpdateManager.java:52)
    at
    com.sap.engine.services.webservices.server.deploy.WSDeployer.makeUpdate
    (WSDeployer.java:274)
    at
    com.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:390)
    at
    com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:387)
    at
    com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:159)
    at
    com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java
    :290)
    at
    com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)
    at
    com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3027)
    at
    com.sap.engine.services.deploy.server.DeployServiceImpl.update
    (DeployServiceImpl.java:584)
    at
    com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch
    (DeployServiceImplp4_Skel.java:1278)
    at
    com.sap.engine.services.rmi_p4.DispatchImpl._runInternal
    (DispatchImpl.java:294)
    at
    com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
    at
    com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request
    (P4SessionProcessor.java:119)
    at
    com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageLis
    tener.java:33)
    at
    com.sap.engine.core.cluster.impl6.session.MessageRunner.run
    (MessageRunner.java:41)
    at
    com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged
    (Native Method)
    at
    com.sap.engine.core.thread.impl3.SingleThread.execute
    (SingleThread.java:95)
    at
    com.sap.engine.core.thread.impl3.SingleThread.run
    (SingleThread.java:160) Caused by:
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices
    deployment exception! The reason is: Error occurred, trying to generate
    web services deployment files for application
    asianpaints.com/pe_mgt_ear. . The error refers to application: none,
    jar: , web service: .
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:296)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.deployWebServices(WSUpdateProcessor.java:262)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:155)
    ... 21 more
    Caused by:
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common
    deployment exception! The reason is: Error occurred, parsing
    com.sap.engine.services.webservices.server.deploy.descriptors.sapwebservices.WSDescriptor descriptor, application
    asianpaints.com/pe_mgt_ear, web service NewPEProcessorService, location
    message: type: jar file, location:
    /usr/sap/J2E/JC00/j2ee/cluster/server0/./temp/deploy/work/deploying/reader1143704544275/asianpaints.com~HSSPNEW_UserDetails.j
    ar . . Additional info:
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:907)
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebService(WSDefinitionFactory.java:176)
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebServices(WSDefinitionFactory.java:158)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:284)
    ... 23 more
    Caused by:
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common
    deployment exception! The reason is: Error occurred, trying to parse
    documentation for web service NewPEProcessorService. .
    Additional info:
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseDocumentation(WSDefinitionFactory.java:1586)
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDAndDocumentation(WSDefinitionFactory.java:15
    60)
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:814)
    ... 26 more
    Caused by: java.lang.NullPointerException
    at
    com.sap.engine.services.deploy.server.DeployServiceImpl.update
    (DeployServiceImpl.java:596)
    at
    com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch
    (DeployServiceImplp4_Skel.java:1278)
    at
    com.sap.engine.services.rmi_p4.DispatchImpl._runInternal
    (DispatchImpl.java:294)
    at
    com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
    at
    com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request
    (P4SessionProcessor.java:119)
    at
    com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageLis
    tener.java:33)
    at
    com.sap.engine.core.cluster.impl6.session.MessageRunner.run
    (MessageRunner.java:41)
    at
    com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged
    (Native Method)
    at
    com.sap.engine.core.thread.impl3.SingleThread.execute
    (SingleThread.java:95)
    at
    com.sap.engine.core.thread.impl3.SingleThread.run
    (SingleThread.java:160) Caused by:
    java.lang.Exception:
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment exception! The
    reason is: Error occurred, trying to update web services for
    application asianpaints.com/pe_mgt_ear. . Additional info: none
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:164)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:118)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:86)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateManager.makeUpdate(WSUpdateManager.java:52)
    at
    com.sap.engine.services.webservices.server.deploy.WSDeployer.makeUpdate
    (WSDeployer.java:274)
    at
    com.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:390)
    at
    com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:387)
    at
    com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:159)
    at
    com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java
    :290)
    at
    com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)
    at
    com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3027)
    at
    com.sap.engine.services.deploy.server.DeployServiceImpl.update
    (DeployServiceImpl.java:584)
    at
    com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch
    (DeployServiceImplp4_Skel.java:1278)
    at
    com.sap.engine.services.rmi_p4.DispatchImpl._runInternal
    (DispatchImpl.java:294)
    at
    com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
    at
    com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request
    (P4SessionProcessor.java:119)
    at
    com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageLis
    tener.java:33)
    at
    com.sap.engine.core.cluster.impl6.session.MessageRunner.run
    (MessageRunner.java:41)
    at
    com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged
    (Native Method)
    at
    com.sap.engine.core.thread.impl3.SingleThread.execute
    (SingleThread.java:95)
    at
    com.sap.engine.core.thread.impl3.SingleThread.run
    (SingleThread.java:160) Caused by:
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices
    deployment exception! The reason is: Error occurred, trying to generate
    web services deployment files for application
    asianpaints.com/pe_mgt_ear. . The error refers to application: none,
    jar: , web service: .
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:296)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.deployWebServices(WSUpdateProcessor.java:262)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:155)
    ... 21 more
    Caused by:
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common
    deployment exception! The reason is: Error occurred, parsing
    com.sap.engine.services.webservices.server.deploy.descriptors.sapwebservices.WSDescriptor descriptor, application
    asianpaints.com/pe_mgt_ear, web service NewPEProcessorService, location
    message: type: jar file, location:
    /usr/sap/J2E/JC00/j2ee/cluster/server0/./temp/deploy/work/deploying/reader1143704544275/asianpaints.com~HSSPNEW_UserDetails.j
    ar . . Additional info:
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:907)
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebService(WSDefinitionFactory.java:176)
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebServices(WSDefinitionFactory.java:158)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:284)
    ... 23 more
    Caused by:
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common
    deployment exception! The reason is: Error occurred, trying to parse
    documentation for web service NewPEProcessorService. .
    Additional info:
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseDocumentation(WSDefinitionFactory.java:1586)
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDAndDocumentation(WSDefinitionFactory.java:15
    60)
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:814)
    ... 26 more
    Caused by: java.lang.NullPointerException
    at
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException.writeReplace(WSDeploymentException.java:64)
    at sun.reflect.NativeMethodAccessorImpl.invoke0
    (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
    (NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke
    (Method.java:324)
    at java.io.ObjectStreamClass.invokeWriteReplace
    (ObjectStreamClass.java:896)
    at java.io.ObjectOutputStream.writeObject0
    (ObjectOutputStream.java:1011)
    at java.io.ObjectOutputStream.defaultWriteFields
    (ObjectOutputStream.java:1332)
    at java.io.ObjectOutputStream.writeSerialData
    (ObjectOutputStream.java:1304)
    at
    java.io.ObjectOutputStream.writeOrdinaryObject
    (ObjectOutputStream.java:1247)
    at java.io.ObjectOutputStream.writeObject0
    (ObjectOutputStream.java:1052)
    at java.io.ObjectOutputStream.writeObject
    (ObjectOutputStream.java:278)
    at
    com.sap.engine.services.rmi_p4.DispatchImpl.throwException
    (DispatchImpl.java:135)
    at
    com.sap.engine.services.rmi_p4.DispatchImpl._runInternal
    (DispatchImpl.java:296)
    ... 8 more
    For detailed information see the log file of the
    Deploy Service.
    06/03/30 13:15:07 -
    Mar 30, 2006 1:15:07 PM Info: End of log messages of the target
    system.Mar 30, 2006 1:15:07 PM Info: ***** End of SAP J2EE Engine
    Deployment
    (J2EE Application) *****
    Mar 30, 2006 1:15:07 PM Error: Aborted: development component
    'pe_mgt_ear'/'asianpaints.com'/'J2E_HSSPNEW_D'/'20060330130420':
    Caught exception during application deployment from SAP J2EE Engine's
    deploy service:
    java.rmi.RemoteException: Cannot deploy application
    asianpaints.com/pe_mgt_ear..
    Reason: Webservices common deployment exception! The reason is: Error
    occurred, trying to update web services for application
    asianpaints.com/pe_mgt_ear. . Additional info: none; nested exception
    is:
    java.lang.Exception:
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common
    deployment exception! The reason is: Error occurred, trying to update
    web services for application
    asianpaints.com/pe_mgt_ear. . Additional info: none
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:164)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:118)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:86)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateManager.makeUpdate(WSUpdateManager.java:52)
    at
    com.sap.engine.services.webservices.server.deploy.WSDeployer.makeUpdate
    (WSDeployer.java:274)
    at
    com.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:390)
    at
    com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:387)
    at
    com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:159)
    at
    com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java
    :290)
    at
    com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)
    at
    com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3027)
    at
    com.sap.engine.services.deploy.server.DeployServiceImpl.update
    (DeployServiceImpl.java:584)
    at
    com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch
    (DeployServiceImplp4_Skel.java:1278)
    at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal
    (DispatchImpl.java:294)
    at com.sap.engine.services.rmi_p4.DispatchImpl._run
    (DispatchImpl.java:183)
    at
    com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request
    (P4SessionProcessor.java:119)
    at
    com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageLis
    tener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run
    (MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run
    (ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute
    (SingleThread.java:95)
    at com.sap.engine.core.thread.impl3.SingleThread.run
    (SingleThread.java:160)
    Caused by:
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices deployment exception! The
    reason is: Error occurred, trying to generate web services deployment
    files for application asianpaints.com/pe_mgt_ear. . The
    error refers to application: none, jar: , web service: .
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:296)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.deployWebServices(WSUpdateProcessor.java:262)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:155)
    ... 21 more
    Caused by:
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment
    exception! The reason is: Error occurred, parsing
    com.sap.engine.services.webservices.server.deploy.descriptors.sapwebservices.WSDescriptor descriptor, application
    asianpaints.com/pe_mgt_ear, web service NewPEProcessorService, location
    message: type: jar file, location:
    /usr/sap/J2E/JC00/j2ee/cluster/server0/./temp/deploy/work/deploying/reader1143704544275/asianpaints.com~HSSPNEW_UserDetails.j
    ar . . Additional info:
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:907)
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebService(WSDefinitionFactory.java:176)
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebServices(WSDefinitionFactory.java:158)
    at
    com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:284)
    ... 23 more
    Caused by:
    com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment
    exception! The reason is: Error occurred, trying to parse documentation
    for web service NewPEProcessorService. . Additional
    info:
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseDocumentation(WSDefinitionFactory.java:1586)
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDAndDocumentation(WSDefinitionFactory.java:15
    60)
    at
    com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:814)
    ... 26 more
    Caused by: java.lang.NullPointerException
    (message ID:
    com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Mar 30, 2006 1:15:17 PM Info: J2EE Engine is in same state
    (online/offline) as it has been before this deployment process.
    Mar 30, 2006 1:15:17 PM Error: -
    At least one of the Deployments
    failed -
    Deployment failure happens only when the DC contains a web service; else, it goes through properly. 
    Can anyone of you indicate where we are going wrong and what should be done to resolve this issue?
    Thanks a lot in advance.
    Regards,
    Ravi

    Hi,
    You can go to the Visual Administrator -> <SID> -> Server -> Services -> Deploy -> Runtime tab -> option Container at the bottom and see if everything is correct and running in the webservices_container.
    If something necessary to the deployment is not started you can select it and click in start.
    I hope it helps.
    Thanks,
    Anderson

  • Error while accessing web service

    I have a web service (EJB).
    After generating clients from wsdl file, while i am trying to access the corresponding function from the client, i am getting the following error.
    javax.xml.ws.soap.SOAPFaultException: Endpoint {http://data.module.bill.company.net/}DataService does not contain operation meta data for: {http://www.w3.org/2001/04/xmlenc#}EncryptedData
    I dont know why it happens.
    Can anyone please help me.
    Thanks in Advance...

    Hi Aseem,
    how are you doing ?
    Authorizations in portal are user specific.
    The current problem is due to the user not having sufficient permissions on the back end to execute the call.
    for this check :-
    1> the current user in portal
    2> mapping to user in the back end
    3> back end user permissions for the RFC / BAPI & it's dependant objects
    with respect,
    amit

  • No transport error while consuming WCF service in a REST way

    Hi,
    Here is a small article on when we usually face No Transport error and how to get rid of it.
    I recently worked on a sample application using “app for Office” (New in Visual Studio 11.0)
    What is “app for Office”?
    An app for Office is basically a webpage that is hosted inside an Office client application. You can use apps to extend the functionality of a document, email message, meeting request, or appointment. Apps
    can run in multiple environments and clients, including rich Office desktop clients, Office Web Apps, mobile browsers, and also on-premises and in the cloud.
    What can an app for Office do?
    An app for Office can do pretty much anything a webpage can do inside the browser, such as the following:
    Provide an interactive UI and custom logic through      JavaScript. (Develop UI using HTML and JavaScript)
    Use JavaScript frameworks such as jQuery.
    Connect to REST endpoints and web services via      HTTP and AJAX.
    Run server-side code or logic, if the page is      implemented using a server-side scripting language such as ASP or PHP.
    As “app for Office” doesn’t have an option to write server side scripting (unlike code behind or in-line coding feature in ASP.NET/MVC) we will have to go for web service or WCF service and consume the service
    using any JavaScript framework like Jquery.
    I wrote a simple WCF service to hook up with server side code and consumed the service using Jquery as follows
    $(document).ready(function () {
    $.ajax({
    type: "GET",
    url: "http://localhost/MyService.svc/rh/data?id=" + $('#sampleType').val(),
    processData: false,
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    crossDomain: true,
    success: function (data) {
    alert(data)
    error: function (xhr, status, error) {
    alert(error);
    I encountered an error saying “No Transport” when I executed the client application.
     I did some investigation on this and found out the root cause that cross-domain request was disabled. But I was really not sure whether it was at my WCF service end or “app for Office” client end. I added
    Client Access policy and Cross-domain-policy xml files to WCF service in order to enable cross-domain request 
    so that service will accept any type requests sent form different domains.
    Client Access policy
    <?xml version="1.0" encoding="utf-8" ?>
    <access-policy>
    <cross-domain-access>
    <policy>
    <allow-from http-request-headers="*">
    <domain uri="*"/>
    </allow-from>
    <grant-to>
    <resource include-subpaths="true" path="/"/>
    </grant-to>
    </policy>
    </cross-domain-access>
    </access-policy>
    Cross-domain-policy
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-http-request-headers-from domain="*" headers="*"/>
    </cross-domain-policy>
    Both the policies should be in different XML files
    But this didn’t solve my problem. After a little bit more investigation I found exactly where and how to enable-cross domain requests.
    Solution
    We need to enable cross-domain requests in environments that do not support cross-domain requests.
    “Cors is equal to true if a browser can create an XMLHttpRequest object and if thatXMLHttpRequest
    object has a withCredentials property. To enable cross-domain requests in environments that do not support cors yet but do allow cross-domain XHRrequests (windows gadget, etc), set $.support.cors = true;”
    You just have to add jQuery.support.cors = true; in your client scripting and it works perfectly fine.
    [Cors- Cross-Origin Resource Sharing]
    A simple example:
    $.support.cors = true;
    $(document).ready(function () {
    $.ajax({
    type: "GET",
    url: "http://localhost/MyService.svc/rh/data?id=" + $('#sampleType').val(),
    processData: false,
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    crossDomain: true,
    success: function (data) {
    alert(data)
    error: function (xhr, status, error) {
    alert(error);
    Hope this will be helpful.
    Thanks

    This is very good technich to resolve the problem. but this is not working in Google chrome or Firfox . can any one help me.

  • Error while pinging Web service in SUP.

    Hi all,
    I am trying to consume a Web Service through SUP.
    I have taken a sample Web service [http://www.webservicex.net/ConvertTemperature.asmx?WSDL] .
    But when I trying to establish a connection from sybase Wrokspace and ping the web service It is giving me an error.
    I have checked if the web service URL and it is working fine.
    The error  I recived while pinging is as follows
    com.sybase.sup.tooling.xml.XmlException: java.net.ConnectException: Connection timed out: connect
         at com.sybase.sup.tooling.wsdl.WsdlParser.parseURL(WsdlParser.java:573)
         at com.sybase.sup.tooling.wsdl.WsdlParser.parse(WsdlParser.java:68)
         at com.sybase.uep.tooling.eis.WsEISOperationBuilder.<init>(WsEISOperationBuilder.java:91)
         at com.sybase.uep.tooling.eis.WsEISOperationBuilder.<init>(WsEISOperationBuilder.java:66)
         at com.sybase.uep.datasources.ws.views.WSConnection.initialize(WSConnection.java:154)
         at com.sybase.uep.datasources.ws.views.WSConnection.<init>(WSConnection.java:38)
         at com.sybase.uep.datasources.ws.views.WSConnectionFactory.createConnection(WSConnectionFactory.java:28)
         at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(Unknown Source)
         at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(Unknown Source)
         at org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(Unknown Source)
         at org.eclipse.datatools.connectivity.ui.PingJob.run(Unknown Source)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:525)
         at java.net.Socket.connect(Socket.java:475)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
         at sun.net.www.http.HttpClient.New(HttpClient.java:306)
         at sun.net.www.http.HttpClient.New(HttpClient.java:323)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
         at com.sybase.sup.tooling.wsdl.WsdlParser.parseURL(WsdlParser.java:562)
         ... 11 more
    Please let me know what the problem might be.
    Thanks,
    Krutheeka.

    Hi,
    while you setup the webservice you can test the service and get the preview of the resultset. Did that work fine? If that works fine - check if you can simply copy and paste the webservice URL into a browser on the running PC. If you do not get a result in the browser, it is the landscape - if you get a result in your browser but not in the app it is the app.
    Well, could you try that step first?
    Regards,
    oliver

  • Connection reset error while calling web service deployed on tomcat

    Hello Friends,
    I am trying to invoke a web service from web dynpro application. The web service is deployed on tomcat 5.5 server.
    I am creating an adaptive web service model using wsdl file. The model gets created without any error.
    But when application is deployed and run it is giving following exception:
    java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:254)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
        ... 102 more
    I tried to call the service from a simple java application. There the service works fine.
    Also, in the web services navigator, if I specify the wsdl url for testing it gives the same error of "Connection reset".
    I don't think this is a proxy server issue as the tomcat is within the local network.
    Can someone please help me with this?
    Thanks and regards,
    Mayuresh
    Edited by: Mayuresh Kanvinde on Mar 27, 2008 7:03 PM

    Hi Sumit,
    Thanks for the reply.
    Here is the stack trace:
    com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WSDL URL 'http://<host>:<port>/WebServicesTest/DummyWebService?wsdl' and service factory configuration 'null'
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:422)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:372)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:342)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:326)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo$Cache.getModelInfo(WSModelInfo.java:199)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:1035)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:248)
         at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(WSTypedModel.java:41)
         at com.tcs.vis.Vishy.<init>(Vishy.java:73)
         at com.tcs.app.AppView.wdDoInit(AppView.java:101)
         at com.tcs.app.wdp.InternalAppView.wdDoInit(InternalAppView.java:143)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:748)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:283)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model. See nested exception for details.
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:150)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:50)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:91)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:420)
         ... 45 more
    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.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:147)
         ... 49 more
    Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Connection reset -> java.net.SocketException: Connection reset
         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)
         ... 50 more
    Caused by: java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:168)
         at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
         at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
         at com.sap.engine.services.webservices.jaxm.soap.LimitedInputStream.read(LimitedInputStream.java:61)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.readData(EncodedDataReader.java:269)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.fetchData(EncodedDataReader.java:332)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.read(EncodedDataReader.java:165)
         at com.sap.engine.lib.xml.parser.helpers.AdvancedXMLStreamReader.read(AdvancedXMLStreamReader.java:143)
         at com.sap.engine.lib.xml.parser.helpers.AdvancedXMLStreamReader.addInputFromInputStream(AdvancedXMLStreamReader.java:292)
         at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:220)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261)
         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 com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1023)
         ... 52 more
    Thanks and regards,
    Mayuresh
    Edited by: Mayuresh Kanvinde on Mar 28, 2008 1:10 PM

Maybe you are looking for