error : R2304: Operation name overloading-webservice

hi..

here is de error R2304: Operation name overloading .. i also tried with messagetype

attribute like

[WebMethod(MessageName = "xxxxx")] ... eventhough it occurs..

need solution immd..

thanks in advance..




Answer this question

error : R2304: Operation name overloading-webservice

  • isaacd

    When generating a schema for the SOAP messages, WebService Framework uses the [WebMethod] name as a top-level element name (wrapper element) and as name of the wsdl:operation in service description.

    You can use operation overloading in WebService implementation, but would have to specify the unique name for the top-level element describing the message: WebService framework will require use of the unique name specified via MessageName property of the [WebMethod] attribute. The unique MessageName will be used to generate top-level name for input and output messages, but not to alter the wsdl:operation name in service description.

    What you see is a Basic Profile Conformance warning. It requires that all wsdl:operations within wsdl:portType have unique names. The wsdl:operation names are always match WebMethod name, the only way to avoid the warning is to use unique method names in the WebService implementation.

    For more information in the Basic Profile 1.1 see http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html.

    Thanks,

    Elena Kharitidi


  • error : R2304: Operation name overloading-webservice