DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28220>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28220

Fatal Error:The prefix "xmlns" cannot be bound to any namespace explicitly





------- Additional Comments From [EMAIL PROTECTED]  2004-04-06 22:16 -------
java sample to reproduce the problem:

import org.xml.sax.InputSource;
import org.apache.axis.encoding.DeserializationContext;
import org.apache.axis.encoding.DeserializationContextImpl;
import java.io.StringReader;

public class Test
{
    public static void main(String[] args) throws Throwable
    {
        String xml="<?xml version=\"1.0\" encoding=\"UTF-8\"?><soap-env:Envelope
xmlns:soap-env=\"http://schemas.xmlsoap.org/soap/envelope/\";><soap-env:Body><find_business
generic=\"2.0\" xmlns=\"urn:uddi-org:api_v2\"><name
xml:lang=\"en\">abc</name></find_business></soap-env:Body></soap-env:Envelope>";
                
        InputSource    is = new InputSource(new StringReader(xml));
        //the actual code to create the SAX parser 
        //  (org.apache.xerces.jaxp.SAXParserImpl) is 
        //  in AXIS' org.apache.axis.encoding.DeserializationContextImpl class
        //  please get the code from AXIS installation
        
        DeserializationContext dser = new DeserializationContextImpl(is, null,
"request");
        dser.parse();

        System.out.println("after parse: " + dser.getEnvelope()); 
        //after parse:
        //<soap-env:Envelope xmlns:soap-env="http:
        //schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><find_business 
        //generic="2.0" xmlns="urn:uddi-org:api_v2"><name xml:lang="en" 
        //xmlns:xml="http://www.w3.org/XML/1998/namespace";>
        //abc</name></find_business></soap-env:Body></soap-env:Envelope>
    }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to