Duplicate namespace on operation element of SOAP message causes problem
-----------------------------------------------------------------------
Key: TUSCANY-570
URL: http://issues.apache.org/jira/browse/TUSCANY-570
Project: Tuscany
Issue Type: Bug
Components: Java SCA Axis Binding
Affects Versions: Java-M1
Environment: Windows XP
Reporter: Simon Laws
This is an artefact of the Interop testing.
JIRA505 (http://issues.apache.org/jira/browse/TUSCANY-505 )describes the
problem associated with having xsi:type associated with the wrapper element in
the SOAP body. I note that the C++ produced messages also have duplicate
namespaces which may also be causing a problem as I have to remove the
duplicate to move on through the interop testing.
When C++ calls stock quote
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To>http://localhost:8081/interop-stockquote/services/StockQuoteService</wsa:To>
<wsa:Action>http://www.quickstockquote.com/StockQuoteService/getQuote</wsa:Action>
<wsa:MessageID>870bf065-6849-47fb-86ad-224b81513541</wsa:MessageID>
</soapenv:Header>
<soapenv:Body>
<getQuote xsi:type="getQuote"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.quickstockquote.com/StockQuoteService/"
xmlns:tns="http://www.quickstockquote.com/StockQuoteService/">
<symbol>IBM</symbol>
</getQuote>
</soapenv:Body>
</soapenv:Envelope>
When Java calls stock quote
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header />
<soapenv:Body>
<Service:getQuote
xmlns:Service="http://www.quickstockquote.com/StockQuoteService/">
<symbol>IBM</symbol>
</Service:getQuote>
</soapenv:Body>
</soapenv:Envelope>
Note that C++ declares the namspace
http://www.quickstockquote.com/StockQuoteService/ as the default namespace and
with a prefix.
I haven't investigated in depth the cause of this but this is a place hold for
when I (or someone else) gets round to looking.
For testing I adjusted SDOXMLWritte.cpp around line 788 to prevent it writing
out namespaces:
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]