Announcement Announcement Module
Collapse
No announcement yet.
JaxRpcPortProxyFactoryBean works with file:// but not http:/ Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JaxRpcPortProxyFactoryBean works with file:// but not http:/

    I'm using JaxRpcPortProxyFactoryBean to access a web service, and with the wsdlDocumentUrl set to file:///path/to/file.wsdl it works as expected.

    But whenever I try to reference the file using a http://-URL, I get the following exception:

    org.springframework.beans.factory.BeanCreationExce ption:
    Error creating bean with name 'myBean' defined in ServletContext resource [/WEB-INF/applicationContext.xml]:
    Initialization of bean failed; nested exception is

    javax.xml.rpc.ServiceException: Error processing WSDL document:
    java.io.FileNotFoundException: http://localhost:8080/myWebApp/services/MyService?wsdl

    I'm positive the wsdl is available at the location I specified. The local file I'm using was downloaded with wget from that URL.

    Thank in advance,
    Dan

  • #2
    Dan,

    It is entirely possible that the WSDL document at the location is being corrupted or even is incorrect. Have you tried using a tracing tool like Axis TCPMON to see what data is being passed between your app and the server?

    Rob

    Comment


    • #3
      Thanks Rob,

      you put me on the right track. I was trying to build a webapp that serves as both server and client, and the server wasn't yet up when the client tried to connect.

      Seeing the 404 in TCPMON jump started my brains..

      Thanks
      Dan

      Comment

      Working...
      X