[
http://jira.jboss.com/jira/browse/JBWS-1712?page=comments#action_12366133 ]
Denis Kostousov commented on JBWS-1712:
---------------------------------------
Why the first message is invalid?
According to
http://www.w3.org/TR/REC-xml-names/#defaulting
two xml documents
<a>
<ns1:b xmlns:ns1="http://namespace.com">
<ns1:c>tra-ta-ta</ns1:c>
</ns1:b>
</a>
and
<a>
<b xmlns="http://namespace.com">
<c>tra-ta-ta</c>
</b>
</a>
are the same.
But the message
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<setIP
xmlns="http://bean.brasws.telecom_m.com/">
<connID xmlns="">a</connID>
<ip xmlns="">b</ip>
</setIP>
</soapenv:Body>
</soapenv:Envelope>
and
<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Header></env:Header>
<env:Body>
<ns1:setIP
xmlns:ns1='http://bean.brasws.telecom_m.com/'>
<connID>a</connID>
<ip>b</ip>
</ns1:setIP>
</env:Body>
</env:Envelope>
works successfully,
<?xml version="1.0" encoding="UTF-8"
standalone="no"?>
<SOAP-ENV:Envelope
xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"
xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAPSDK4:setService
xmlns:SOAPSDK4="http://bean.brasws.company.com/">
<SOAPSDK4:connID>123456789</SOAPSDK4:connID>
<SOAPSDK4:service>128</SOAPSDK4:service>
</SOAPSDK4:setService>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
don't work.
AFAIK, the first and the third messages are the same (see example above). Am I right?
Jboss can't find element with qualified name
--------------------------------------------
Key: JBWS-1712
URL:
http://jira.jboss.com/jira/browse/JBWS-1712
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: jbossws-1.2.1
Environment: JBoss-4.2.0 GA
Java 1.5.0_11
MS Soap toolkit 3.0
Reporter: Denis Kostousov
Attachments: BrasUserManagerBean.wsdl
MS Soap client sends a message to JBossWS Server looks like
<?xml version="1.0" encoding="UTF-8"
standalone="no"?>
<SOAP-ENV:Envelope
xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"
xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAPSDK4:setService
xmlns:SOAPSDK4="http://bean.brasws.company.com/">
<SOAPSDK4:connID>123456789</SOAPSDK4:connID>
<SOAPSDK4:service>128</SOAPSDK4:service>
</SOAPSDK4:setService>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
but, JBossWS can't find element "connID"
If some other client sends message
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<setIP
xmlns="http://bean.brasws.company.com/">
<connID xmlns="">a</connID>
<ip xmlns="">b</ip>
</setIP>
</soapenv:Body>
</soapenv:Envelope>
JBoss successfully find the element.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira