Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Blog/Service References/PortalSitefinity/Reference.cs @ 99:3027c64344bd
agregado de llamadas a web service para crear posts en el blog de la comunidad
agregado de tests sobre el publicador de blogs
agregado de tests sobre el adapter del web service
author | jorge.rowies |
---|---|
date | Sat, 04 Jun 2011 22:33:05 -0300 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
98:4895116b8232 | 99:3027c64344bd |
---|---|
1 //------------------------------------------------------------------------------ | |
2 // <auto-generated> | |
3 // This code was generated by a tool. | |
4 // Runtime Version:4.0.30319.225 | |
5 // | |
6 // Changes to this file may cause incorrect behavior and will be lost if | |
7 // the code is regenerated. | |
8 // </auto-generated> | |
9 //------------------------------------------------------------------------------ | |
10 | |
11 namespace Agendas.Blog.PortalSitefinity { | |
12 | |
13 | |
14 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] | |
15 [System.ServiceModel.ServiceContractAttribute(ConfigurationName="PortalSitefinity.PostWriterWebServiceSoap")] | |
16 public interface PostWriterWebServiceSoap { | |
17 | |
18 // CODEGEN: Generating message contract since element name securityToken from namespace http://tempuri.org/ is not marked nillable | |
19 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/WriteBlogPost", ReplyAction="*")] | |
20 Agendas.Blog.PortalSitefinity.WriteBlogPostResponse WriteBlogPost(Agendas.Blog.PortalSitefinity.WriteBlogPostRequest request); | |
21 } | |
22 | |
23 [System.Diagnostics.DebuggerStepThroughAttribute()] | |
24 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] | |
25 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] | |
26 [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] | |
27 public partial class WriteBlogPostRequest { | |
28 | |
29 [System.ServiceModel.MessageBodyMemberAttribute(Name="WriteBlogPost", Namespace="http://tempuri.org/", Order=0)] | |
30 public Agendas.Blog.PortalSitefinity.WriteBlogPostRequestBody Body; | |
31 | |
32 public WriteBlogPostRequest() { | |
33 } | |
34 | |
35 public WriteBlogPostRequest(Agendas.Blog.PortalSitefinity.WriteBlogPostRequestBody Body) { | |
36 this.Body = Body; | |
37 } | |
38 } | |
39 | |
40 [System.Diagnostics.DebuggerStepThroughAttribute()] | |
41 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] | |
42 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] | |
43 [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] | |
44 public partial class WriteBlogPostRequestBody { | |
45 | |
46 [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] | |
47 public string securityToken; | |
48 | |
49 [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)] | |
50 public string blogName; | |
51 | |
52 [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)] | |
53 public string postTitle; | |
54 | |
55 [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)] | |
56 public string postHtmlContent; | |
57 | |
58 [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)] | |
59 public string postAuthor; | |
60 | |
61 [System.Runtime.Serialization.DataMemberAttribute(Order=5)] | |
62 public bool setPublicationDate; | |
63 | |
64 public WriteBlogPostRequestBody() { | |
65 } | |
66 | |
67 public WriteBlogPostRequestBody(string securityToken, string blogName, string postTitle, string postHtmlContent, string postAuthor, bool setPublicationDate) { | |
68 this.securityToken = securityToken; | |
69 this.blogName = blogName; | |
70 this.postTitle = postTitle; | |
71 this.postHtmlContent = postHtmlContent; | |
72 this.postAuthor = postAuthor; | |
73 this.setPublicationDate = setPublicationDate; | |
74 } | |
75 } | |
76 | |
77 [System.Diagnostics.DebuggerStepThroughAttribute()] | |
78 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] | |
79 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] | |
80 [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] | |
81 public partial class WriteBlogPostResponse { | |
82 | |
83 [System.ServiceModel.MessageBodyMemberAttribute(Name="WriteBlogPostResponse", Namespace="http://tempuri.org/", Order=0)] | |
84 public Agendas.Blog.PortalSitefinity.WriteBlogPostResponseBody Body; | |
85 | |
86 public WriteBlogPostResponse() { | |
87 } | |
88 | |
89 public WriteBlogPostResponse(Agendas.Blog.PortalSitefinity.WriteBlogPostResponseBody Body) { | |
90 this.Body = Body; | |
91 } | |
92 } | |
93 | |
94 [System.Diagnostics.DebuggerStepThroughAttribute()] | |
95 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] | |
96 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] | |
97 [System.Runtime.Serialization.DataContractAttribute()] | |
98 public partial class WriteBlogPostResponseBody { | |
99 | |
100 public WriteBlogPostResponseBody() { | |
101 } | |
102 } | |
103 | |
104 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] | |
105 public interface PostWriterWebServiceSoapChannel : Agendas.Blog.PortalSitefinity.PostWriterWebServiceSoap, System.ServiceModel.IClientChannel { | |
106 } | |
107 | |
108 [System.Diagnostics.DebuggerStepThroughAttribute()] | |
109 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] | |
110 public partial class PostWriterWebServiceSoapClient : System.ServiceModel.ClientBase<Agendas.Blog.PortalSitefinity.PostWriterWebServiceSoap>, Agendas.Blog.PortalSitefinity.PostWriterWebServiceSoap { | |
111 | |
112 public PostWriterWebServiceSoapClient() { | |
113 } | |
114 | |
115 public PostWriterWebServiceSoapClient(string endpointConfigurationName) : | |
116 base(endpointConfigurationName) { | |
117 } | |
118 | |
119 public PostWriterWebServiceSoapClient(string endpointConfigurationName, string remoteAddress) : | |
120 base(endpointConfigurationName, remoteAddress) { | |
121 } | |
122 | |
123 public PostWriterWebServiceSoapClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : | |
124 base(endpointConfigurationName, remoteAddress) { | |
125 } | |
126 | |
127 public PostWriterWebServiceSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : | |
128 base(binding, remoteAddress) { | |
129 } | |
130 | |
131 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] | |
132 Agendas.Blog.PortalSitefinity.WriteBlogPostResponse Agendas.Blog.PortalSitefinity.PostWriterWebServiceSoap.WriteBlogPost(Agendas.Blog.PortalSitefinity.WriteBlogPostRequest request) { | |
133 return base.Channel.WriteBlogPost(request); | |
134 } | |
135 | |
136 public void WriteBlogPost(string securityToken, string blogName, string postTitle, string postHtmlContent, string postAuthor, bool setPublicationDate) { | |
137 Agendas.Blog.PortalSitefinity.WriteBlogPostRequest inValue = new Agendas.Blog.PortalSitefinity.WriteBlogPostRequest(); | |
138 inValue.Body = new Agendas.Blog.PortalSitefinity.WriteBlogPostRequestBody(); | |
139 inValue.Body.securityToken = securityToken; | |
140 inValue.Body.blogName = blogName; | |
141 inValue.Body.postTitle = postTitle; | |
142 inValue.Body.postHtmlContent = postHtmlContent; | |
143 inValue.Body.postAuthor = postAuthor; | |
144 inValue.Body.setPublicationDate = setPublicationDate; | |
145 Agendas.Blog.PortalSitefinity.WriteBlogPostResponse retVal = ((Agendas.Blog.PortalSitefinity.PostWriterWebServiceSoap)(this)).WriteBlogPost(inValue); | |
146 } | |
147 } | |
148 } |