[
https://jira.jboss.org/browse/JBIDE-6702?page=com.atlassian.jira.plugin.s...
]
Lukas Jungmann commented on JBIDE-6702:
---------------------------------------
I saw this too and the problem on my end was (found using wireshark) that the actual
message was SOAP 1.1 containing SOAP 1.2 message within its body...
to get our client working properly, following changes should be made in
JAXWSTester2.doTest(...) method apart from making sure correct message is generated:
-add ie boolean isSoap12 = ...
-make "d.getRequestContext().put(BindingProvider.SOAPACTION_URI_PROPERTY,
actionurl);" conditional:
if (!isSoap12) {
d.getRequestContext().put(BindingProvider.SOAPACTION_USE_PROPERTY, true);
d.getRequestContext().put(BindingProvider.SOAPACTION_URI_PROPERTY, actionurl);
}
-replace MessageFactory mf = MessageFactory.newInstance(); with:
MessageFactory mf = isSoap12 ?
MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL) :
MessageFactory.newInstance();
[tester] Soap12 sample content should be generated for Soap12 port
------------------------------------------------------------------
Key: JBIDE-6702
URL:
https://jira.jboss.org/browse/JBIDE-6702
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Webservices
Affects Versions: 3.2.0.M2
Reporter: Lukas Jungmann
Assignee: Brian Fitzpatrick
Fix For: 3.2.x
-load
http://www.webservicex.net/usweather.asmx?WSDL in the tester and choose Soap12
port
=> generated sample message is:
<?xml version="1.0" encoding="utf-8" standalone="yes"
?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
<soap:Body>
<GetWeatherReport xmlns = "http://www.webserviceX.NET">
<ZipCode>?</ZipCode>
</GetWeatherReport>
</soap:Body>
</soap:Envelope>
but should be:
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetWeatherReport xmlns="http://www.webserviceX.NET">
<ZipCode>94043</ZipCode>
</GetWeatherReport>
</soap12:Body>
</soap12:Envelope>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira