Announcement Announcement Module
Collapse
No announcement yet.
java.lang.String cannot be cast to javax.xml.namespace.QName Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.lang.String cannot be cast to javax.xml.namespace.QName

    I have a simple client:

    WebServiceTemplate webServiceTemplate = new WebServiceTemplate();

    webServiceTemplate.sendSourceAndReceiveToResult(so apServiceURL, source, result);

    but when I run it I get the following exception:

    Exception in thread "AWT-EventQueue-0" org.springframework.ws.soap.client.SoapFaultClient Exception: java.lang.String cannot be cast to javax.xml.namespace.QName
    at org.springframework.ws.soap.client.core.SoapFaultM essageResolver.resolveFault(SoapFaultMessageResolv er.java:37)

    I used SoapUI with the exact same source xml message and it worked fine.
    Does anybody have any idea of what might be causing this problem when I use WebServiceTemplate? Thanks for all the help!
Working...
X