2 Replies Latest reply on Jan 27, 2011 5:00 PM by 817556

    weblogic web service invoke error

    rawat75
      I am new in WL and trying to invoking a web-service using client code written in java.

      When I see in my service in web logic console it is looking fine same as other ready sample service which I am able to invoke using client code. I am using that sample client to invoke my web service after doing changes for my service. Client class is also compiled.

      I am using weblogic 8.1 and I am getting below error.

      ------------------------------------------------------------------------------------------
      cu dmwls(558)$ java Client http://localhost:61069/kuldeep/MyFirstService?WSDL
      *<Feb 19, 2010 11:12:37 AM GMT> <Info> <WebService> <BEA-220094> <An IOException was thrown trying to access the WSDL at the given URL.>*
      <Feb 19, 2010 11:12:37 AM GMT> <Info> <WebService> <BEA-220034> <A stack trace associated with message 220094 follows:

      java.io.FileNotFoundException: http://localhost:61069/kuldeep/MyFirstService?WSDL
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:798)
      at weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefinition(DefinitionFactory.java:113)
      at weblogic.webservice.tools.wsdlp.WSDLParser.<init>(WSDLParser.java:76)
      at weblogic.webservice.WebServiceFactory.createFromWSDL(WebServiceFactory.java:108)
      at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:91)
      at clientpkg.MyFirstService_Impl.<init>(MyFirstService_Impl.java:22)
      at Client.main(Client.java:28)
      >
      Exception in thread "main" weblogic.webservice.tools.wsdlp.WSDLParseException: Failed to retrieve WSDL from http://localhost:61069/kuldeep/MyFirstService?WSDL. Please check the URL and make sure that it is a valid XML file [java.io.FileNotFoundException: http://localhost:61069/kuldeep/MyFirstService?WSDL]
      at weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefinition(DefinitionFactory.java:153)
      at weblogic.webservice.tools.wsdlp.WSDLParser.<init>(WSDLParser.java:76)
      at weblogic.webservice.WebServiceFactory.createFromWSDL(WebServiceFactory.java:108)
      at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:91)
      at clientpkg.MyFirstService_Impl.<init>(MyFirstService_Impl.java:22)
      at Client.main(Client.java:28)
      ------------------------------------------------------------------------------------------

      While trying to access web-service, I am getting

      Error 404--Not Found*

      From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:*

      +10.4.5 404 Not Found+

      The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

      If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

      Edited by: kuldeep.singhrawat75@gmail.com on Feb 19, 2010 4:56 PM
        • 1. Re: weblogic web service invoke error
          Jay SenSharma MiddlewareMagic
          Hi Kuldeep,

          In your servicegen task you have defined
          serviceURI="/${service.name}"

          Please remove the preceeding forward slash from there like serviceURI="${service.name}"

          Now deploy your service and then try to hit the WSDL like by opening a Browser:

          http://ffstestmisws02.nat.bt.com:61069/${contextURI}/${service.name}?WSDL

          Note : Just replace the values of ${service.name} and ${contextURI} with the actual values .... which you have specified in your ANT Task...

          Still if you are not able to hit the WSDL then Just try to Access The Test Client Page from admin Console and access the WebService ...Let us know if u are able to invoke webservice method from TestClient Page of AdminConsole.

          If not it means the Service is not deployed Successfully...Please check the Log after deploying the WebService and In case of any Error/Warning just paste the Trace here.

          Thanks
          Jay SenSharma
          http://jaysensharma.wordpress.com/webservices/ (WebLoigc Wonders Are here)
          1 person found this helpful
          • 2. Re: weblogic web service invoke error
            817556
            Hi Jay,

            During my on going testing on our DR site, across all the issues which kind of fixed and working now – I have come across 1 which I am a little amazed with


            While trying to run the ping and buffer on REN SERVER


            ERROR 404 Page not found. Everything is set up perfectly to what I understand.


            Env. – HR to portal .


            Request goes to RPS passes the firewall goes to LB and to REN and so on along with that.


            Initially the Setup was incorrect which is corrected now. Then LB was listening to desired port – which was not activated while RPS was brought up – we have fixed that. so for now LB listens to port.


            We have bounced app/prcs and cleared cache. But when tried to ping test – 404 (page not found error )


            I have checked config.xml / struts-config.xml and web.xml – jus to verify the document root and context is alrite. Looks Good.


            Checked logs - No specific error.


            HR – Websphere … RPS apache...


            Portal – Weblogic
            Tools - 8.49.18
            App - 9.0 (HR)
            RENQ is up and running.

            REN Server Cluster ID: RENCLSTR_0002

            *StateFlag Active

            *REN Server Cluster URL: https://psportal:8065

            *REN Server Browser URL: https://psportal.dowjones.net:8065

            Authentication Domain: dowjones.net

            request your help pls