Results 1 to 3 of 3

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

  1. #1
    Join Date
    Sep 2004
    Posts
    127

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    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
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  3. #3
    Join Date
    Sep 2004
    Posts
    127

    Default

    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

Similar Threads

  1. Replies: 6
    Last Post: Dec 7th, 2010, 06:57 AM
  2. Spring HTTP Invoker and HTTP Forwarding Proxy
    By dkar77 in forum Remoting
    Replies: 3
    Last Post: Sep 21st, 2005, 08:59 PM
  3. authorization based on HTTP method
    By fractal76 in forum Security
    Replies: 1
    Last Post: May 11th, 2005, 02:49 AM
  4. Replies: 1
    Last Post: Apr 20th, 2005, 06:37 AM
  5. HTTP Invoker server in standalone app
    By murrayd in forum Remoting
    Replies: 0
    Last Post: Oct 1st, 2004, 09:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •