mushaofeng / java-ws-discovery

Automatically exported from code.google.com/p/java-ws-discovery
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Unable to create WS-Discovery SOAP message. #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I creat a WsDiscoveryPublishJaxWS like in the calculator Example in the wiki
2. I start Tomcat v7 on localhost
3. I run my Publich Class as a Java Application on Eclipse J2EE

What is the expected output? What do you see instead?
I shoudn't get this list of errors at execution:

-------------------------------------------------------------
SEVERE: Unable to create WS-Discovery SOAP message.
com.ms.wsdiscovery.network.exception.WsDiscoveryNetworkException: Unable to 
create WS-Discovery SOAP message.
    at com.ms.wsdiscovery.network.DispatchThread.dispatch(DispatchThread.java:697)
    at com.ms.wsdiscovery.network.DispatchThread.run(DispatchThread.java:814)
Caused by: com.ms.wsdiscovery.xml.exception.WsDiscoveryXMLException: Unable to 
unmarshal SOAP document.
    at com.ms.wsdiscovery.xml.soap.WsdSOAPMessage.parseSoap(WsdSOAPMessage.java:225)
    at com.ms.wsdiscovery.xml.soap.WsdSOAPMessage.<init>(WsdSOAPMessage.java:161)
    at com.ms.wsdiscovery.xml.soap.WsdSOAPMessageBuilder.createWsdSOAPMessage(WsdSOAPMessageBuilder.java:93)
    at com.ms.wsdiscovery.xml.soap.WsdSOAPMessageBuilder.createWsdSOAPMessage(WsdSOAPMessageBuilder.java:83)
    at com.ms.wsdiscovery.network.DispatchThread.dispatch(DispatchThread.java:695)
    ... 1 more
-------------------------------------------------------------

What version of the product are you using? On what operating system?
I am using java-ws-discovery-0.2 on a MAC OS version 10.6.7

Please provide any additional information below.

Original issue reported on code.google.com by AllamDi...@gmail.com on 3 Feb 2012 at 11:06

GoogleCodeExporter commented 9 years ago
I ran into this same issue recently. In my case, I was mixing versions

wsdiscovery-0.2.jar
wsdiscovery-gui2-1.0-beta1.jar

and using the GUI to configure the ws-discovery listener. Things worked again 
when I switched the library in my client application to

wsdiscovery-lib-1.0-beta1.jar

Original comment by jonathan...@gmail.com on 29 Feb 2012 at 12:28