Exception while accessing web service through code

I have a web service developed using AXIS deployed on Weblogic 8.1
Another web application cotaining GUI deployed on Weblogic 10 tries to access this web service through code.
This piece of code to invoke the web service is written in Action Class present inside web application. (Struts is used in GUI based web app)
When the code tries to invoke web service I am getting following error.
(401)Unauthorized xxx
     at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
     at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
     at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
     at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
     at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
     at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
     at org.apache.axis.client.Call.invoke(Call.java:2553)
     at org.apache.axis.client.Call.invoke(Call.java:1753)
     at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.invokeAx(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:243)
     at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.callUCS77_1ProcessOfficialChangeWebService(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:173)
     at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.processAction(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:133)
     at com.ebv.framework.web.action.EBVAction.execute(EBVAction.java:106)
     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
The web service URL is as follows:
http://10.140.96.5:7808/services/ucs77_1/ProcessOfficialChangeSave77_1-v0001.soap
However
When I try to hit the webservice URL directly on browser login window appears where same username/password I provide which are passed in code to invoke the web service. I get the success page indicating that web service is invoked on hitting enter.
The method used in UCS77_1ProcessOfficialChangeSaveDetailsAction.java to invoke web service is as follows:
public String invokeAx
               String xmlMessage,
               String webServiceURL,
               String webServiceOperation,
               String username,
               String password)
          String xmlResponse = null;
          Call webServiceCall = null;
          InputStream input = new ByteArrayInputStream(xmlMessage.getBytes());
          Service service = new Service();
          try
               webServiceCall = (Call) service.createCall();
               SOAPEnvelope env = new SOAPEnvelope(input);
               SOAPEnvelope resEnv = null;
               webServiceCall.setTargetEndpointAddress(new URL(webServiceURL));
               webServiceCall.setOperationName(new QName(webServiceOperation));
               webServiceCall.setUsername(username);
               webServiceCall.setPassword(password);               
               try
                    resEnv = webServiceCall.invoke(env);
               catch (AxisFault e)
                    e.printStackTrace();
                    Message responseMessage = webServiceCall.getResponseMessage();
                    SOAPEnvelope soapXml = (SOAPEnvelope) responseMessage.getSOAPEnvelope();
                    xmlResponse = new String(soapXml.toString().getBytes(AppConstants.UTF8),AppConstants.UTF8);     
               if (xmlResponse == null)
                    xmlResponse = resEnv.toString();
          catch (Exception e1)
               e1.printStackTrace();
          return xmlResponse;
Both the weblogic server reside on two different AIX machines.
Can anybody tell what's the problem while invoking web service through code?

time to look into the gateway logs as stated by the fault ..
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults">c</faultcode><faultstring>Step execution failed with an exception</faultstring><detail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
looks like the cipher step might have failed

Similar Messages

  • Exception while accessing web service secure through web services Manager

    Hi All,
    I deployed sime Hello World web service on JWSDP1.6 and secure it through web service manager(gateway) using Certificate based security.But when I try to access this web service using JWSDP client,I got the following Error while monitoring the soap messages through TCP-Monitor:
    /////////////////////////////////Request///////////////////////////////////////////////////////////////
    POST /gateway/services/SID0003009 HTTP/1.1
    Content-Type: text/xml; charset=utf-8
    Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Content-Length: 5631
    SOAPAction: ""
    User-Agent: Java/1.5.0_05
    Host: ivy.cs.ucl.ac.uk:8082
    Connection: keep-alive
    <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://hello.org/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><env:Header>
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" env:mustUnderstand="1"><xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <wsse:SecurityTokenReference>
    <wsse:KeyIdentifier EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">eN9famBBWzHNUIwWRhMPktcM+VQ=</wsse:KeyIdentifier>
    </wsse:SecurityTokenReference>
    </ds:KeyInfo><xenc:CipherData><xenc:CipherValue>MHjtgA4wOtvI1B+SuRVEmD07yE+jl6axd4XbJ0nvQ3EzSuVVoST9vHzURh+B47yj41187s8T+yjt
    Bmpk9OB278Jghonkacv6r+q+LVlxRrQDudNGir7plzFeM6bUadMxf+FLgn5O0a44vU/tvy6V9+zi
    yqFdhTvS21No/aW62No=</xenc:CipherValue></xenc:CipherData><xenc:ReferenceList><xenc:DataReference URI="#XWSSGID-1155126003241-1198323932"/></xenc:ReferenceList></xenc:EncryptedKey><wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="XWSSGID-11551260018331598979688">MIIC3TCCAkagAwIBAgIBATANBgkqhkiG9w0BAQQFADBJMQswCQYDVQQGEwJVUzEMMAoGA1UECBMD
    U0NBMQwwCgYDVQQKEwNTVU4xHjAcBgNVBAMTFWNlcnRpZmljYXRlLWF1dGhvcml0eTAeFw0wNjAz
    MTkxMzQ5MDJaFw0xNjAzMTYxMzQ5MDJaMEcxCzAJBgNVBAYTAlVTMQwwCgYDVQQIEwNTQ0ExDDAK
    BgNVBAoTA1NVTjEcMBoGA1UEAxMTeHdzLXNlY3VyaXR5LWNsaWVudDCBnzANBgkqhkiG9w0BAQEF
    AAOBjQAwgYkCgYEAzNDPKUz1MhUH1LsrLqXKxciOKSWeTrdoe/SVwe/4uy5eobAWSsSTposaOYFy
    uxf3cGCCIs7u0jMAXLQ9jzobDbt9XQ4tXPoBzKKzS+yU6hDk2TcOCkioeT9A9db5LF8yevhwXKB4
    AJ1Eh//Dp/djoonXCCxsxupQZp3ueRJrR98CAwEAAaOB1jCB0zAJBgNVHRMEAjAAMCwGCWCGSAGG
    +EIBDQQfFh1PcGVuU1NMIEdlbmVyYXRlZCBDZXJ0aWZpY2F0ZTAdBgNVHQ4EFgQUECH05VC3/WGW
    H4AGD6tnH0h+kFUweQYDVR0jBHIwcIAUdry1wGRZ2fyJSKisVSxpMEmIiaahTaRLMEkxCzAJBgNV
    BAYTAlVTMQwwCgYDVQQIEwNTQ0ExDDAKBgNVBAoTA1NVTjEeMBwGA1UEAxMVY2VydGlmaWNhdGUt
    YXV0aG9yaXR5ggkA4HaEvd6hq8YwDQYJKoZIhvcNAQEEBQADgYEA0RhOk67pCrO6MgZZGqrmAMW6
    76fZowBxTKlFq88nrf8v1MUxV8H9wgbTDrwR0HtxY3TGpDFw2tNAww2pyDX/pQ2Wt46ichluGxjf
    aEV53loKTOM7syAmlicWqViGzBfgzriIl918TzFaX9BD/Y55bKZQk057maBCSkUuFfF453s=</wsse:BinarySecurityToken><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="wsse enc env ns0 xsd xsi"/></ds:CanonicalizationMethod><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference URI="#XWSSGID-1155126002593447652186"><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>UJ1kuwI+WuF/RkrQpZrj1GvraLI=</ds:DigestValue></ds:Reference><ds:Reference URI="#XWSSGID-1155126002602761294100"><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>sKG/z5OIGgqJ2nw7JtpXyJzr8pY=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>SBc65VTG1xpEkRUTz70H0fVGIgoBJ0QnNad0k07RMSfw4vG1WHJdt19R05pO2AvU5aoYuBSaguJe
    ZGEjmWzw8mnSWKBi+zeDMeJiwgqwW6HHHX9P7JDslxuTIqoJIVUbSjUTSVz6ww8siIK65quXdkMT
    ZzLfp7Cd0gBuA3EEZpg=</ds:SignatureValue><ds:KeyInfo><wsse:SecurityTokenReference xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="XWSSGID-11551260025411896275738">
    <wsse:Reference URI="#XWSSGID-11551260018331598979688" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
    </wsse:SecurityTokenReference></ds:KeyInfo></ds:Signature><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="XWSSGID-1155126002602761294100"><wsu:Created>2006-08-09T12:20:02Z</wsu:Created><wsu:Expires>2006-08-09T12:20:07Z</wsu:Expires></wsu:Timestamp></wsse:Security></env:Header><env:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="XWSSGID-1155126002593447652186"><xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="XWSSGID-1155126003241-1198323932" Type="http://www.w3.org/2001/04/xmlenc#Content"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/><xenc:CipherData><xenc:CipherValue>XNqEzHNp47ILtOagAUNCXYkxOCWv4CjHqmZ7j6VKN/NO96ce4BsNSL6lKzqa9dPxHB1sTVGZQ8KA
    COQ6DGwyWCP8ip+CU2hor3uUAml7nzHTx1LUw3Db+0p31VAT3EqKJA3aFy38GQrBTr9ojMOUA6tm
    Cj71yucN3UCKRUl3RpE8qU68y7AwNxPsyAZeSa2AVm2cmWvSDZlxgMsx+JCEZaf3+D0o1zMp0Fxb
    MSISPt/JrEolt1H5UM1AoFGU4QkckWrQNLPyEF9oxEgZ8oCE5U8v/YJwZIAHFrx67XfaLwQLjzXw
    VPigsH9gLkfbP2BU8Vp31GsPwBZtUeNz9S35+CZPD7EiqoAB1QuAxZkJV7n00VChYH+scT64tNja
    c81bcD8tf4sAr7toCMNDAU6+74+Qy0EyPqgwLtotDxErn4kF8e72cONMMQBQ91tQs+iI+D6C1I6+
    f9UiSfgtm/MTuKQK1CRqarEtI9N6lpqVH8k7ulUwH/jFstihxmhMJ3aZY+qQgSwSs3pwSSim+e18
    eR7dOEq4vG8ivKuGvTDO4sSV2RP/nL/3eXr0y7eM0kMFKwTUA4JqL4Y/l8Bo/rie/ZXkkbF6hwEu
    dX1QmB0gf5k=</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData></env:Body></env:Envelope>
    ////////////////////////////////Response///////////////////////////////////////////////////////////////
    HTTP/1.1 100 Continue
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)
    Date: Wed, 09 Aug 2006 12:28:47 GMT
    HTTP/1.1 500 Internal Server Error
    Date: Wed, 09 Aug 2006 12:28:47 GMT
    Server: Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)
    Connection: Keep-Alive
    Keep-Alive: timeout=15, max=100
    Content-Type: text/xml
    Transfer-Encoding: chunked
    157
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults">c</faultcode><faultstring>Step execution failed with an exception</faultstring><detail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    0
    So basically, what I am doing here as follows:
    HelloClient(using JWSPD1.6)->gateway(web service manager for securing the web service using message level security through certificate )->helloservice(deployed using JWSDP1.6)
    I would appreciate if someone could tell me the cause of this errror.Thanks.
    Kashif

    time to look into the gateway logs as stated by the fault ..
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults">c</faultcode><faultstring>Step execution failed with an exception</faultstring><detail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    looks like the cipher step might have failed

  • Exception while invoking web service

    Hi all,
           I am trying to consume a web service which is actually a BAPI which is being exposed as a WS. The BAPI is BAPI_COMPANYCODE_GETLIST. The following is the code that I use to execute the Web service:
    /***************************Code Begins*************************/
              MO_CompanyWS model_inst = new MO_CompanyWS();
              Request_BAPI_COMPANYCODE_GETLIST request_para = new Request_BAPI_COMPANYCODE_GETLIST(model_inst);
              BAPI_COMPANYCODE_GETLIST input_values = new BAPI_COMPANYCODE_GETLIST(model_inst);
              request_para.setBAPI_COMPANYCODE_GETLIST(input_values);
              wdContext.nodeRequest_BAPI_COMPANYCODE_GETLIST().bind(request_para);
              try
                   wdContext.currentRequest_BAPI_COMPANYCODE_GETLISTElement().modelObject().execute();
              catch(Exception exp)
                   wdComponentAPI.getMessageManager().reportException(
                                       "Exception - " + exp,
                                       true);
    /*************************Code Ends**************************/
    I am getting the exception as follows -    java.io.FileNotFoundException: C:\Documents and Settings\Desktop\ZGetCompanyList.xml (The system cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
        at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
    Can someone help me out in getting the problem solved?
    Here is the detailed exception -
    com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WSDL URL ' C:\Documents and Settings\Desktop\ZGetCompanyList.xml' 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.cts.wsmodel.MO_CompanyWS.<init>(MO_CompanyWS.java:51)
         at com.cts.bapiws.BAPIWSView.wdDoInit(BAPIWSView.java:111)
         at com.cts.bapiws.wdp.InternalBAPIWSView.wdDoInit(InternalBAPIWSView.java:233)
         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:707)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:269)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         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:160)
         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: C:\Documents and Settings\Desktop\ZGetCompanyList.xml (The system cannot find the path specified) -> java.io.FileNotFoundException:  C:\Documents and Settings\Desktop\ZGetCompanyList.xml (The system cannot find the path specified)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1038)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1125)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:178)
         ... 50 more
    Caused by: java.io.FileNotFoundException: C:\Documents and Settings\Desktop\ZGetCompanyList.xml (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
         at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
         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 com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1022)
         ... 52 more
    Thanks in advance.
    ~Subathra M

    Hi,
    Are u deploying your application in another server or local server?
    This FileNottFoundException will be caused if no such file found in specified path..
    Make sure the file is present in the Specified path.. in the server in which you are
    deploying..
    Regards
    LakshmiNarayana

  • Error while accessing Web services

    Hi,
    I have installed & configured Siebel 8.2 on windows 2008 R2 with IIS as Web server.
    When i try to connect through IE using URL "http://localhost/eai_enu/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute" I get an error such as - Server Error in Application "DEFAULT WEB SITE/EAI_ENU".
    Can you please help me understand this problem?
    Below if additional information from IE error page.
    Detailed Error Information -
    Module - IsapiModule
    Notification - ExecuteRequestHandler
    Handler - AboMapperCustom-25584
    Error Code - 0x800700c1
    Requested URL - http://localhost:80/eai_enu/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute
    Physical Path - c:\siebel\8.2.2.0.0\sweapp\public\enu\start.swe
    Logon Method - Anonymous
    Logon User - Anonymous
    Failed Request Tracing Log Directory - C:\inetpub\logs\FailedReqLogFiles
    Over here I could find that physical path " c:\siebel\8.2.2.0.0\sweapp\public\enu\start.swe" doesn't really have any file named start.swe.
    I have applied SWSE logical profile on webserver.
    Thanks,
    Harshal

    Hi,
    this url is used to external system access Siebel Web Services. If you can generate a WSDL, you need access Siebel applications using url, http://localhost/callcenter_enu/start.swe for example, navigate to Application - Web Services, in Inbound Web Services, selected the WSDL and generate a WSDL file.
    If you can import a external WSDL, you need get a WSDL file from third system and import to Siebel using Siebel Tools.
    Regard.

  • Exception while accessing web application

    Hi All,
    I have deployed my web application on OC4J 10.1.3. But while accessing application i am geeting NullPointer Exception below is the complete stack trace for the same.
    java.lang.NullPointerException
    at org.mortbay.servlet.jetty.IncludableGzipFilter$IncludableGzipStream.setContentEncodingGzip(IncludableGzipFilter.java:54)
    at org.mortbay.servlet.GzipFilter$GzipStream.doGzip(GzipFilter.java:482)
    at org.mortbay.servlet.GzipFilter$GzipStream.checkOut(GzipFilter.java:531)
    at org.mortbay.servlet.GzipFilter$GzipStream.write(GzipFilter.java:465)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindJSPWriter.writeOut(EvermindJSPWriter.java:539)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindJSPWriter.jspflush(EvermindJSPWriter.java:436)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindJSPWriter.assureSpace(EvermindJSPWriter.java:922)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindJSPWriter.javaCharsToAL32UTF8(EvermindJSPWriter.java:1058)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindJSPWriter.print(EvermindJSPWriter.java:849)
    at org.apache.taglibs.standard.tag.common.fmt.MessageSupport.doEndTag(Unknown Source)
    at public.login._jspService(_login.java:1817)
    at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.zimbra.webClient.servlet.JspServlet.service(JspServlet.java:38)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at com.zimbra.webClient.filters.SetHeaderFilter.doFilter(SetHeaderFilter.java:264)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
    at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:132)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:396)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:415)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)

    I am having the same issue has anyone found a solution to this I have deployed a WAR file to the server an I am getting this error when I try to run the application. I would appreciate some input as this is a PRODUCITON issue
    the following statement is where this problems
    ps = conn1.prepareStatement("<string variable>");
    09/12/14 13:42:07 sfrracl: Servlet error
    java.lang.NullPointerException
    at sfrracl.SfrraclUpd.doPost(SfrraclUpd.java:269)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:816)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:231)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:136)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  • Error while invoking web service through weblogic 10

    While invoking a particular web service from other system it gives following error in instance finder
    exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Read timed out
    After that when it is invoked and run without error, we are getting double identical entiries in our database one for failed one and other for successful.
    suppose if it is failed 3 times and after that it succeeds then we are getting 4 identical entries in DB (3 failed and 1 success).
    Entries updated in DB as per API so we cant change logic.
    Can anyone suggest how it can be avoided.?
    what is the root cause of this error and how it can be handled?
    Edited by: 911694 on Mar 13, 2012 12:11 PM
    Edited by: 911694 on Mar 13, 2012 2:19 PM

    Which version/platform are you using?
    The thing you need to consider here is that the JDev proxy settings do not affect the BPEL server.
    So if the BPEL server cannot connect to your webservice, it will not be because of any Jdev setting.
    Check the proxy settings on your BPEL server (on 10.1.2 developer install it will be in obsetenv.bat, on 10.1.3 it will be a commandline property of the JVM - see AS Control administration page for the JVM)

  • 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

  • Error 403 while executing Web Service through Web Service Navigator

    Hello All,
    I am trying to execute "Create Sales Order" Web Service from WS Navigator. After filling all the input parameters and clicking on execute button, I get a error message
    Failed Invalid Response code (403)
    I know the execution is not reaching the back end proxy class. Any inputs on what could be causing this issue?
    Regards,
    Abhishek

    Hi Abhishek,
    Error code 403 means that the [access is forbidden.|http://en.wikipedia.org/wiki/HTTP_403]
    This means that the user access that is being used to access the Web Service / Backend Proxy does not have enough authorizations to perform the action.
    Check this user id, and its roles.
    Regards,
    Alka.

  • Unable to access web service through SOAP

    My script is as follows:
    var bank = "Yolo FCU";
    var cURL = "https://vdevcluster01.drmain.local/AcrobatIntegration/1.0/VOService.svc?wsdl";
    var service = SOAP.connect(cURL);
    var response = service.GetVODStringByFinancialInstution(bank);
    I can connect to many other public web services but am having trouble connecting to my company's.
    The full error message is as follows:
    Batch undefined:Exec
    1
    RaiseError:
    SOAP.request:1:Batch undefined:Exec
    ===>
    12
    255
    65535
    Error()@:0
    ("Yolo FCU")@1:1
    @Batch:Exec:5
    I'm not extremely knowledgeable about web services but as a general question, is there an issue with my code or the web service, or is it impossible for anyone to tell me since it's on a private server?
    Any suggestions for me to ask my IT dept. or any help at all would be appreciated. Thanks

    I have imported the cert. But the problem still persists.
    In the Adobe LiveCycle Designer, when i make a new Data Connection for WSDL.
    If I key in http://server_IP:port/webservices/webmethod?WSDL, it works.
    But If I key in https://server_IP:ssl_port/webservices/webmethod?WSDL,
    it prompted back
    Cannot load "https://server_IP:ssl_port/webservices/webmethod?WSDL". Check  that the path is correct and that the file
    is a valid WSDL file. Also ensure you have access rights to the file.

  • Error while calling web service through Internet Transaction Service.

    Hi,
    I am trying to execute transaction through web service. This service is attached to Internet Transaction Server (ITS). In Transaction SICF, in ITS when I test service, getting Error Message : New session rejected due to Memory bottleneck.
    Thanks,
    Anup

    Hi,
    you need to provide a better description of what you did (implementation) and what you want (use case). All I can see from your question is that you have a class cast issue.
    Frank

  • NullPointerException in WebLogic while accessing web service from client

    Hi all,
    I have an SPML Web Service developed. The java class from WSDL was generated using wsdlc
    <wsdlc srcWsdl="schema/oracle_ws_spmlv2.wsdl" destJwsDir="${classes.dir}" type="JAXWS" explode="true"/>
    and then
    <jwsc classpath="..." classpathref="wls.jars" srcdir="src/main" destdir="${classes.dir}" keepGenerated="yes">
    <jws file="com/oracle/xmlns/idm/identity/webservice/spmlservice/SPMLService_SPMLServiceProviderSoapImpl.java" compiledWsdl="target/oracle_ws_spmlv2_wsdl.jar" type="JAXWS">
    <WLHttpTransport contextPath="OIMSPMLWebService" serviceUri="${ear.deployed.name}" portName="SPMLServiceProviderSoap"/>
    </jws>
    </jwsc>
    I have deployed the ear in WLS and generated the client classes.
    <clientgen wsdl="http://${weblogic.host}:${weblogic.port}/OIMSPMLWebService/OIMspmlxsd?WSDL" destDir="${classes.dir}" type="JAXWS"/>
    I run the client using java command from the terminal. First time, it runs fine. I get a valid response. But often, when I run it a second time, I get the following exception ... I need to undeploy and deploy the ear again. Any help will be appreciated!
    Following error appears.
    Error 500--Internal Server Error
    java.lang.NullPointerException
    at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:49)
    at javax.servlet.GenericServlet.init(GenericServlet.java:241)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
    at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521)
    at weblogic.servlet.internal.ServletStubImpl.checkForReload(ServletStubImpl.java:452)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:232)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    As a workaround I can start the application in debug mode, log into the Weblogic console and stop then restart the deployment and this issue goes away, sort of a pain but it does work.

  • MDM Session Exception While Creating Web Services

    Hi all i am creating webservices over a java class. My Java class connects with MDM and fethes the data. When I am running my java class it is able to fetch the values from MDM but when i am exposing this method to web services I am getting request same as my method but the I am not getting any response, What i am getting is                                                                                "An error has occurred. Maybe the request is not accepted by the server:
    com/sap/mdm/session/MdmSessionContext" .  Also the response is
    HTTP/1.1 500 Internal Server Error
    Connection: close
    Server: SAP J2EE Engine/7.00
    Content-Type: text/xml; charset=UTF-8
    Date: Thu, 24 Sep 2009 17:04:02 GMT
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>com/sap/mdm/session/MdmSessionContext</faultstring><detail><ns1:java.lang.NoClassDefFoundError xmlns:ns1='http://sap-j2ee-engine/error'>com/sap/mdm/session/MdmSessionContext</ns1:java.lang.NoClassDefFoundError></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

    Hi,
    It looks like when you are running webservice it is not able to find some reference classes you might have missed to include one or more jar files while deploying the web service on server thats might be the  reason as when you are running Java class it is working fine.
    please follow below process and check if anything is missing.
    Right click on project -> Properties -> Java Build Path
    at this place you can see the reference projects and jar files in different tabs
    go to tab Order & Export and see if the desired jar file is selected or not if not select it and deploy the application again.
    Ninad

  • XML document as a parameter while accessing web service

    I have web service which has to retuen an XML document (org.w3c.dom.Document) as
    a paramter. Since this is not a supported data type for in-out paramaters, I will
    have to serialize and write my own converter. What is the best solution? Is there
    any class/library that can convert the document into String which I can return
    as a parameter and again get create a XML document in the client side.
    Thanks -Surya

    Is the Document well defined via schema? You might be able to use the autotype
    ant task to generate a serializer.
    Otherwise, serialize the document to a string, then wrap it in <[CDATA[...]]>
    on the return. The calling app will need to understand that the string is xml,
    and then desrailize it manually.
    Mike
    "Surya" <[email protected]> wrote:
    >
    I have web service which has to retuen an XML document (org.w3c.dom.Document)
    as
    a paramter. Since this is not a supported data type for in-out paramaters,
    I will
    have to serialize and write my own converter. What is the best solution?
    Is there
    any class/library that can convert the document into String which I can
    return
    as a parameter and again get create a XML document in the client side.
    Thanks -Surya

  • Error 404--Not Found while accessing web app through Weblogic 6.1

    Hi everybody,
              I am new to Weblogic and recently installed Weblogic6.1
              on my machine and I am trying to access my application using weblogic
              and it gives
              Error 404--Not Found
              From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
              10.4.5 404 Not Found
              I have uploaded the WAR file of my application using the Admin
              console. The WAR file is place under
              \bea\wlserver6.1\config\mydomain\applications\screen.war.
              What am I doing wrong ?
              Thanks is advance.
              PS: I am also including my web.xml file
              <?xml version="1.0" encoding="ISO-8859-1"?>
              <!DOCTYPE web-app
              PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <session-config>
              <session-timeout>-1</session-timeout>
              </session-config>
              <!-- Action Servlet Configuration -->
              <servlet>
              <servlet-name>action</servlet-name>
              <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              <init-param>
              <param-name>application</param-name>
              <param-value>resources.nmr.ApplicationResources</param-value>
              </init-param>
              <init-param>
              <param-name>config</param-name>
              <param-value>/WEB-INF/struts-config.xml</param-value>
              </init-param>
              <init-param>
              <param-name>debug</param-name>
              <param-value>2</param-value>
              </init-param>
              <init-param>
              <param-name>detail</param-name>
              <param-value>2</param-value>
              </init-param>
              <init-param>
              <param-name>validate</param-name>
              <param-value>true</param-value>
              </init-param>
              <load-on-startup>2</load-on-startup>
              </servlet>
              <!-- Action Servlet Mapping -->
              <servlet-mapping>
              <servlet-name>action</servlet-name>
              <url-pattern>*.do</url-pattern>
              </servlet-mapping>
              <!-- PDF servlet configuration -->
              <servlet>
              <servlet-name>pdf</servlet-name>
              <servlet-class>com.abbott.gprd.servlets.PdfServlet</servlet-class>
              </servlet>
              <!-- PDF servlet Mapping -->
              <servlet-mapping>
              <servlet-name>pdf</servlet-name>
              <url-pattern>/pdf</url-pattern>
              </servlet-mapping>
              <!-- MIME Mapping -->
              <mime-mapping>
              <extension>mol</extension>
              <mime-type>chemical/x-mdl-molfile</mime-type>
              </mime-mapping>
              <!-- The Welcome File List -->
              <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
              </welcome-file-list>
              <!-- Application Tag Library Descriptor -->
              <taglib>
              <taglib-uri>/WEB-INF/app.tld</taglib-uri>
              <taglib-location>/WEB-INF/app.tld</taglib-location>
              </taglib>
              <!-- Struts Tag Library Descriptors -->
              <taglib>
              <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
              <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
              <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
              <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
              </taglib>
              <taglib>
              <taglib-uri>/WEB-INF/nmr.tld</taglib-uri>
              <taglib-location>/WEB-INF/nmr.tld</taglib-location>
              </taglib>
              </web-app>
              

    hmm
              it all looks ok to me
              what happens if you try to access an image or something in your war (ie
              something not java related)
              also - i have seen on some machines that localhost doesnt work but 127.0.0.1
              does work
              your app should be trying to access index.jsp which should be in the root
              directory of your war
              does index.jsp exist and is it in the root directory of your war?
              lastly - i noticed you have a startup servlet. Put a system.out in the init
              method of the servlet. If the servlet is being deployed OK then you should
              see some output in the console
              "Ravi" <[email protected]> wrote in message
              news:[email protected]...
              > I am specifying the same http://localhost:7001/screen and it still
              > gives the same error.
              >
              > Following is part of my cofig.xml where myapp is specified.
              >
              > <CustomRealm
              >
              ConfigurationData="user.filter=(&(cn=%u)(objectclass=person));user.dn=ou
              =people,
              > o=example.com;server.principal=cn=admin,
              >
              o=example.com;membership.filter=(&(member=%M)(objectclass=groupofuniquen
              ames));group.filter=(&(cn=%g)(objectclass=groupofuniquenames));server.ho
              st=ldapserver.example.com;server.ssl=true;group.dn=ou=groups,
              > o=example.com"
              > Name="defaultLDAPRealmForNovellDirectoryServices"
              > Notes="This is provided as an example. Before enabling this
              > Realm, you must edit the configuration parameters as appropriate for
              > your environment."
              > Password="{3DES}/4XkW5rmVvBHzFtI9SRK/g=="
              > RealmClassName="weblogic.security.ldaprealmv2.LDAPRealm"/>
              > <Server ListenPort="7001" Name="myserver" NativeIOEnabled="true"
              > TransactionLogFilePrefix="config/mydomain/logs/">
              > <Log FileName="config/mydomain/logs/weblogic.log"
              > Name="myserver"/>
              > <SSL Enabled="true" ListenPort="7002" Name="myserver"
              > ServerCertificateChainFileName="config/mydomain/ca.pem"
              > ServerCertificateFileName="config/mydomain/democert.pem"
              > ServerKeyFileName="config/mydomain/demokey.pem"/>
              > <WebServer DefaultWebApp="DefaultWebApp"
              > LogFileName="./config/mydomain/logs/access.log"
              > LoggingEnabled="true" Name="myserver"/>
              > <ServerDebug Name="myserver"/>
              > <ExecuteQueue Name="default"/>
              > <KernelDebug Name="myserver"/>
              > <ServerStart Name="myserver"/>
              > </Server>
              > <Application Deployed="true" Name="screen"
              > Path=".\config\mydomain\applications">
              > <WebAppComponent Name="screen" Targets="myserver"
              > URI="screen.war"/>
              > </Application>
              > <SNMPAgent Name="mydomain"/>
              > <Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
              > <ApplicationManager Name="mydomain"/>
              > <JTA Name="mydomain"/>
              >
              > Thanks in advance.
              > Ravi.
              >
              >
              > "Matt Krevs" <[email protected]> wrote in message
              news:<[email protected]>...
              > > what url are you specifying?
              > >
              > > i would guess that http://localhost/screen-web would work. Hard to say
              > > without also seeing your config.xml
              > >
              > > The critical item in config.xml is the value of URI in the
              webappcomponent
              > > element for your application
              > >
              > > eg if it was
              > >
              > > <WebAppComponent Name="myapp-web" Targets="myerver" URI="myapp-web"/>
              > >
              > > then the url you would call is http://localhost/myapp-web
              > >
              > > "Ravi" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > Hi everybody,
              > > > I am new to Weblogic and recently installed Weblogic6.1
              > > > on my machine and I am trying to access my application using weblogic
              > > > and it gives
              > > >
              > > > Error 404--Not Found
              > > > From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
              > > > 10.4.5 404 Not Found
              > > >
              > > > I have uploaded the WAR file of my application using the Admin
              > > > console. The WAR file is place under
              > > > \bea\wlserver6.1\config\mydomain\applications\screen.war.
              > > >
              > > > What am I doing wrong ?
              > > >
              > > > Thanks is advance.
              > > >
              > > > PS: I am also including my web.xml file
              > > >
              > > > <?xml version="1.0" encoding="ISO-8859-1"?>
              > > >
              > > > <!DOCTYPE web-app
              > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
              > > > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              > > >
              > > > <web-app>
              > > >
              > > > <session-config>
              > > > <session-timeout>-1</session-timeout>
              > > > </session-config>
              > > >
              > > > <!-- Action Servlet Configuration -->
              > > > <servlet>
              > > > <servlet-name>action</servlet-name>
              > > >
              <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              > > > <init-param>
              > > > <param-name>application</param-name>
              > > > <param-value>resources.nmr.ApplicationResources</param-value>
              > > > </init-param>
              > > > <init-param>
              > > > <param-name>config</param-name>
              > > > <param-value>/WEB-INF/struts-config.xml</param-value>
              > > > </init-param>
              > > > <init-param>
              > > > <param-name>debug</param-name>
              > > > <param-value>2</param-value>
              > > > </init-param>
              > > > <init-param>
              > > > <param-name>detail</param-name>
              > > > <param-value>2</param-value>
              > > > </init-param>
              > > > <init-param>
              > > > <param-name>validate</param-name>
              > > > <param-value>true</param-value>
              > > > </init-param>
              > > > <load-on-startup>2</load-on-startup>
              > > >
              > > > </servlet>
              > > >
              > > > <!-- Action Servlet Mapping -->
              > > > <servlet-mapping>
              > > > <servlet-name>action</servlet-name>
              > > > <url-pattern>*.do</url-pattern>
              > > > </servlet-mapping>
              > > >
              > > > <!-- PDF servlet configuration -->
              > > > <servlet>
              > > > <servlet-name>pdf</servlet-name>
              > > >
              <servlet-class>com.abbott.gprd.servlets.PdfServlet</servlet-class>
              > > > </servlet>
              > > >
              > > >
              > > > <!-- PDF servlet Mapping -->
              > > > <servlet-mapping>
              > > > <servlet-name>pdf</servlet-name>
              > > > <url-pattern>/pdf</url-pattern>
              > > > </servlet-mapping>
              > > >
              > > > <!-- MIME Mapping -->
              > > > <mime-mapping>
              > > > <extension>mol</extension>
              > > > <mime-type>chemical/x-mdl-molfile</mime-type>
              > > > </mime-mapping>
              > > >
              > > >
              > > > <!-- The Welcome File List -->
              > > > <welcome-file-list>
              > > > <welcome-file>index.jsp</welcome-file>
              > > > </welcome-file-list>
              > > >
              > > > <!-- Application Tag Library Descriptor -->
              > > > <taglib>
              > > > <taglib-uri>/WEB-INF/app.tld</taglib-uri>
              > > > <taglib-location>/WEB-INF/app.tld</taglib-location>
              > > > </taglib>
              > > >
              > > > <!-- Struts Tag Library Descriptors -->
              > > > <taglib>
              > > > <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
              > > > <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
              > > > </taglib>
              > > >
              > > > <taglib>
              > > > <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
              > > > <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
              > > > </taglib>
              > > >
              > > > <taglib>
              > > > <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
              > > > <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
              > > > </taglib>
              > > >
              > > > <taglib>
              > > > <taglib-uri>/WEB-INF/nmr.tld</taglib-uri>
              > > > <taglib-location>/WEB-INF/nmr.tld</taglib-location>
              > > > </taglib>
              > > >
              > > > </web-app>
              

  • How to use Axis to access a web service through Authentication  proxy

    Using axis access internat web service is success,but access a web service through Authentication proxy is failure.But other java classes connect through a proxy to the internet which works very well:
    please help me ,thank you!!!
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    //this is my access webservice faliure   codes
    public class TestClient
       public static void main(String [] args) {
           try {
                System.getProperties().setProperty("http.proxySet", "true");
                System.getProperties().setProperty("http.proxyHost","proxy.com");
                System.getProperties().setProperty("http.proxyPort", "8080");
                System.getProperties().setProperty("http.proxyUser", "username");
                System.getProperties().setProperty("http.proxyPassword","password");
               String endpoint =
                        "http://nagoya.apache.org:5049/axis/services/echo";
               Service  service = new Service();
               Call     call    = (Call) service.createCall();
               call.setTargetEndpointAddress( new java.net.URL(endpoint) );
               call.setOperationName(new QName("http://soapinterop.org/", "echoString") );
               String ret = (String) call.invoke( new Object[] { "Hello!" } );
               System.out.println("Sent 'Hello!', got '" + ret + "'");
           } catch (Exception e) {
               System.err.println(e.toString());
       }I get an "(407)Proxy authorization required" error?

    I am also looking for a solution. Does any one know how to do through code instead of jvm settings?
    Thanks in advance!

Maybe you are looking for