You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/05/15 10:12:34 UTC
DO NOT REPLY [Bug 19946] New: -
Method namespace problem
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19946>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19946
Method namespace problem
Summary: Method namespace problem
Product: Axis
Version: 1.1rc2
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Critical
Priority: Other
Component: Basic Architecture
AssignedTo: axis-dev@ws.apache.org
ReportedBy: thomas@boerkel.de
Depending on where the method namespace is defined, Axis uses parameter names or
not. Example:
public String convert(String number, String positionen, String zielBeleg, String
zielBelegNummer);
Calling: convert("Test", null, "Auftrag", null);
When Axis does not use the parameter names, then the method is called wrong like
this:
convert("Test", "Auftrag", null , null);
Works:
<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope
xmlns:tns="http://tempuri.org/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<tns:convert>
<number xsi:type="xsd:string">Test</number>
<zielBeleg xsi:type="xsd:string">Auftrag</zielBeleg>
</tns:convert>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Does not work:
<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<convert xmlns="http://tempuri.org/">
<number xsi:type="xsd:string">Test</number>
<zielBeleg xsi:type="xsd:string">Auftrag</zielBeleg>
</convert>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The only difference is where the tempuri namespace is defined.