Announcement Announcement Module
Collapse
No announcement yet.
Spring and XFire help needed Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring and XFire help needed

    Im a total newbie to Spring and XFire, and im trying do Echo service
    example from XFires homepage. Where i use XFireExporter to expose the service. But when is start using the service i get the message that the service wsdl not found. How can i generate wsdl so i could use the service ?

  • #2
    invalid QName prefix

    now i got the wsdl but i when trying to invoke the service with a client i get an exception


    org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exce
    ption is org.codehaus.xfire.fault.XFireFault: invalid QName prefix
    org.codehaus.xfire.fault.XFireFault: invalid QName prefix
    at org.codehaus.xfire.fault.XFireFault.createFault(XF ireFault.java:89)
    at org.codehaus.xfire.client.Client.onReceive(Client. java:386)
    at org.codehaus.xfire.transport.http.HttpChannel.send ViaClient(HttpChann
    el.java:120)
    at org.codehaus.xfire.transport.http.HttpChannel.send (HttpChannel.java:4
    4)
    at org.codehaus.xfire.handler.OutMessageSender.invoke (OutMessageSender.j
    ava:26)
    at org.codehaus.xfire.handler.HandlerPipeline.invoke( HandlerPipeline.jav
    a:110)
    at org.codehaus.xfire.client.Invocation.invoke(Invoca tion.java:75)
    at org.codehaus.xfire.client.Client.invoke(Client.jav a:335)
    at org.codehaus.xfire.client.XFireProxy.handleRequest (XFireProxy.java:77
    )
    at org.codehaus.xfire.client.XFireProxy.invoke(XFireP roxy.java:57)
    at $Proxy0.echo(Unknown Source)
    at TestRunner.main(TestRunner.java:12)
    Caused by: java.lang.IllegalArgumentException: invalid QName prefix
    at javax.xml.namespace.QName.<init>(QName.java:81)
    at com.bea.xml.stream.MXParser.getName(MXParser.java: 1439)
    at org.codehaus.xfire.soap.handler.ReadHeadersHandler .checkForFault(Read
    HeadersHandler.java:107)
    at org.codehaus.xfire.soap.handler.ReadHeadersHandler .invoke(ReadHeaders
    Handler.java:67)
    at org.codehaus.xfire.handler.HandlerPipeline.invoke( HandlerPipeline.jav
    a:110)
    at org.codehaus.xfire.client.Client.onReceive(Client. java:382)
    ... 10 more

    can anyone tell me how i could fix that ?

    Comment

    Working...
    X