webapp ?wsdl fails validation from Eclipse WTP 2.0 wsdl validation
------------------------------------------------------------------

                 Key: AXIS2-2630
                 URL: https://issues.apache.org/jira/browse/AXIS2-2630
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
         Environment: Axis2 1.2 / Eclipse WTP 2.0 M6
            Reporter: Lahiru Sandakith


This is my java class I deployed  as a service 

package test;

public class Echo {
        
        public String  echo(String msg) {
                return msg;
        }

}


when I tried to validate the ?wsdl from the service, I got the following 
validation errors, 

        <wsdl:binding name="EchoHttpBinding" type="axis2:EchoPortType">
                <http:binding verb="POST" />
                <wsdl:operation name="echo">
                        <http:operation location="echo" />
                        <wsdl:input>
                                <mime:content type="text/xml" />
                        </wsdl:input>
                        <wsdl:output>
                                <mime:content type="text/xml" />
                        </wsdl:output>
                </wsdl:operation>
        </wsdl:binding>

cvc-complex-type.4: Attribute 'part' must appear on element 'mime:content'.    
c3AllTypes/WebContent   Echo.wsdl       line 16 1178036376861   1350

This section from the Attachment profile 1.0 mandates the part:

4.9 WSDL Parts
R2910 A mime:content in a DESCRIPTION MUST reference a wsdl:part that is
defined using either the type attribute or the element attribute

The MIME schema at:

http://ws-i.org/profiles/basic/1.1/wsdlmime-2004-08-24.xsd

specifies that the part attribute is required.




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to