Spring.net Web Service Support

Source: Internet
Author: User
Spring.net can expose common Pono objects to Web Services, which means Program Writing services Code You do not need to write a lot of business-independent code to complete a web service, and this service can be used for other purposes, such as romoting service or enterprise service.
Spring.net solution is to generate a proxy for a common. Net object. This avoids the need to declare Web Services for object generation. WebService attributes and webmethod attributes. Proxy automatically adds the webmethod attribute to the object at runtime. You can also provide some optional information about the web service attributes, as shown in figure Namespace, description, and transaction mode.
As follows:
<Object ID ="Helloworldexporter"Type ="Spring. Web. Services. webserviceexporter, spring. Web">
<Property name ="Targetname"> <Value> Helloworld </Value> </Property>
<Property name ="Namespace"> <Value> Http: // mycompany/services </Value> </Property>
<Property name ="Description"> <Value> My exported helloworld Web Service </Value> </Property>
<Property name ="Methods">
<Dictionary>
<Entry key ="Helloworld">
<Object type ="System. Web. Services. webmethodattribute, system. Web. Services">
<Property name ="Description">
<Value> My spring-configured helloworld method. </Value>
</Property>
<Property name ="Messagename">
<Value> Zdravosvete </Value>
</Property>
</Object>
</Entry>
</Dictionary>
</Property>
</Object>

<Web: Service targetname ="Helloworld"Namespace ="Http: // mycompany/services">
<Description> My exported helloworld web service. </Description>
<Methods>
<Method name ="Helloworld"Messagename ="Zdravosvete">
<Description> My spring-configured helloworld method. </Description>
</Method>
</Methods>
</Web: Service>

Source: http://opensource2.atlassian.com/confluence/spring/display/NET/Web+Services+Support

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.