This discussion is archived
7 Replies Latest reply: Jul 29, 2013 6:15 AM by Anindya Gayen RSS

Error using odiinvokewebservice tool

user705850 Newbie
Currently Being Moderated
I get this error when I try to access the wsdl at location
http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL

com.sunopsis.wsinvocation.SnpsWSInvocationException: com.sunopsis.wsinvocation.SnpsWSInvocationException: Cannot connect
     at com.sunopsis.wsinvocation.client.WebServiceFactory.getParserIstance(WebServiceFactory.java:95)
     at com.sunopsis.wsinvocation.client.WebServiceFactory.getParserIstance(WebServiceFactory.java:126)
     at com.sunopsis.graphical.wsclient.RequestWsPane$17.doInBackground(RequestWsPane.java:1691)
     at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:278)
     at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
     at java.lang.Thread.run(Thread.java:662)
Caused by: com.sunopsis.wsinvocation.SnpsWSInvocationException: Cannot connect
     at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsParserImpl.setWsdlUrl(OdiJaxwsParserImpl.java:144)
     at com.sunopsis.wsinvocation.client.WebServiceFactory.getParserIstance(WebServiceFactory.java:89)
     ... 8 more
Caused by: java.net.ConnectException: Connection timed out: connect
     at java.net.PlainSocketImpl.socketConnect(Native Method)
     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
     at java.net.Socket.connect(Socket.java:529)
     at java.net.Socket.connect(Socket.java:478)
     at java.net.Socket.<init>(Socket.java:375)
     at java.net.Socket.<init>(Socket.java:249)
     at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
     at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
     at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
     at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
     at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
     at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
     at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
     at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsParserImpl.setWsdlUrl(OdiJaxwsParserImpl.java:107)
     ... 9 more

Any pointers to fix it?
  • 1. Re: Error using odiinvokewebservice tool
    39297 Newbie
    Currently Being Moderated
    Hi,

    First try if you can connect to the same URL in your webbrowser succesfully. If so, do collect your proxy settings of your webbrowser and set those in the Proxy-settings in the preference dialog.

    BTW: Did you get error code ODI-20362?
  • 2. Re: Error using odiinvokewebservice tool
    user705850 Newbie
    Currently Being Moderated
    Thanks for the reply. The URL works successfully in the browser.
    Browser does not have any proxy settings as we use http://wpad/wpad.dat
    Could you please help?

    Edited by: user705850 on Dec 4, 2012 10:06 AM
  • 3. Re: Error using odiinvokewebservice tool
    39297 Newbie
    Currently Being Moderated
    Hi,

    it seems like you try to access a local webservice. Is this correct? If so Is your Weblogic server up and running?
  • 4. Re: Error using odiinvokewebservice tool
    user705850 Newbie
    Currently Being Moderated
    Yes I have my weblogic server running (stand alone). I have deployed odi console. I have also setup oraclediagent. I am able to invoke the odiInvoke wsdl from my ODI studio. My weblogic server/odi agent/odi invoke are all deployed on to my linux host. My studio is in windows.

    Only when I try to access this public wsdl http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL
    or any such public wsdls that are not deployed on my server I get the error

    Edited by: user705850 on Nov 26, 2012 1:41 PM
  • 5. Re: Error using odiinvokewebservice tool
    39297 Newbie
    Currently Being Moderated
    When access to your local web servies work fine and access to public don't then your proxy-setting is invalid. Try set your proxy to a valid local proxy "www-public.oracle.com" should not be valid when you are outside of the oracle domain.

    If this still does not help do create a SR.
  • 6. Re: Error using odiinvokewebservice tool
    tina.wang Journeyer
    Currently Being Moderated
    I tried the web service, it can connect.
    when you use Studio, you need specify proxy information in its preference dialog.
    pay attention, i mean studio preference dialog not browser preference.

    Edited by: tina.wang on Dec 4, 2012 6:58 AM
  • 7. Re: Error using odiinvokewebservice tool
    Anindya Gayen Newbie
    Currently Being Moderated

    Hi ,

     

    Can anyone pls help me..

    I am also getting the same error when tryingto invoke a JAX_WS wsdl with inline schema.

     

    ODI-20362: Couldn't connect to webservice.

     

    In the detailed part I am getting as follows:

    com.sunopsis.wsinvocation.SnpsWSInvocationException: com.sunopsis.wsinvocation.SnpsWSInvocationException: This URL does not point to a valid WSDL

        at com.sunopsis.wsinvocation.client.WebServiceFactory.getParserIstance(WebServiceFactory.java:95)

        at com.sunopsis.wsinvocation.client.WebServiceFactory.getParserIstance(WebServiceFactory.java:126)

        at com.sunopsis.graphical.wsclient.RequestWsPane$17.doInBackground(RequestWsPane.java:1691)

        at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)

        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

        at java.util.concurrent.FutureTask.run(FutureTask.java:139)

        at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:279)

        at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:656)

        at java.lang.Thread.run(Thread.java:662)

    Caused by: com.sunopsis.wsinvocation.SnpsWSInvocationException: This URL does not point to a valid WSDL

        at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsParserImpl.setWsdlUrl(OdiJaxwsParserImpl.java:132)

        at com.sunopsis.wsinvocation.client.WebServiceFactory.getParserIstance(WebServiceFactory.java:89)

        ... 8 more

    Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Error importing schemas: java.io.IOException: Unable to parse schema at 'http://172.18.41.47:7001/GenericErrorHandlerWSApp-GenericErrorHandlerWS-context-root/ErrorHandlerWSPort?xsd=1': Expected 'EOF'.

        at oracle.j2ee.ws.wsdl.extensions.schema.SchemaSerializer.unmarshall(SchemaSerializer.java:76)

        at oracle.j2ee.ws.wsdl.extensions.ParseUtils.createExtensibilityElement(ParseUtils.java:112)

        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:1505)

        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseDefinition(WSDLReaderImpl.java:790)

        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:707)

        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:656)

        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:648)

        at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsParserImpl.setWsdlUrl(OdiJaxwsParserImpl.java:128)

        ... 9 more

    Caused by: java.io.IOException: Unable to parse schema at 'http://172.18.41.47:7001/GenericErrorHandlerWSApp-GenericErrorHandlerWS-context-root/ErrorHandlerWSPort?xsd=1': Expected 'EOF'.

        at oracle.j2ee.ws.wsdl.extensions.schema.SchemaSerializer.readSchemaFile(SchemaSerializer.java:186)

        at oracle.j2ee.ws.wsdl.extensions.schema.SchemaSerializer.loadReference(SchemaSerializer.java:138)

        at oracle.j2ee.ws.wsdl.extensions.schema.SchemaSerializer.processImportIncludeRedefine(SchemaSerializer.java:108)

        at oracle.j2ee.ws.wsdl.extensions.schema.SchemaSerializer.unmarshall(SchemaSerializer.java:73)

        at oracle.j2ee.ws.wsdl.extensions.ParseUtils.createExtensibilityElement(ParseUtils.java:115)

        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:1505)

        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseDefinition(WSDLReaderImpl.java:790)

        at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:708)

        ... 12 more

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points