Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Axis2 1.2 / Eclipse WTP 2.0 M6
Description
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.