axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10836] New: - Java2WSDL places encodingStyles on document/literal bindings
Date Mon, 15 Jul 2002 18:33:02 GMT
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=10836>.
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=10836

Java2WSDL places encodingStyles on document/literal bindings

           Summary: Java2WSDL places encodingStyles on document/literal
                    bindings
           Product: Axis
           Version: beta-3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: mstiver@yahoo.com


When emitting the WSDL for a document/literal binding, the wsdlsoap:body 
element (in the wsdl:input) incorrectly contains encodingStyle attributes, even 
though use="literal". However, wsdlsoap:body is correct in the wsdl:output 
section.

It appears that .../fromJava/Emitter.java may be the problem as denoted below:

    private BindingOperation writeBindingOperation (Definition def,
                                        Binding binding,
                                        Operation oper,
                                        OperationDesc desc) {

        ...etc...

        // Input SOAP Body
        SOAPBody soapBodyIn = new SOAPBodyImpl();
        // for now, if its document, it literal use.
        if (mode == MODE_RPC) {
            soapBodyIn.setUse("encoded");
            soapBodyIn.setEncodingStyles(encodingList);
        } else {
            soapBodyIn.setUse("literal");
        }
        if (targetService == null)
            soapBodyIn.setNamespaceURI(intfNS);
        else
            soapBodyIn.setNamespaceURI(targetService);
        QName operQName = desc.getElementQName();
        if (operQName != null &&
            !operQName.getNamespaceURI().equals("")) {
            soapBodyIn.setNamespaceURI(operQName.getNamespaceURI());
        }

>>>>>   soapBodyIn.setEncodingStyles(encodingList);
        bindingInput.addExtensibilityElement(soapBodyIn);

        ...etc...

Mime
View raw message