473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

WCF. Contratos

Hola

Estoy estudiando WCF y la verdad es que me está gustando mucho. Lo
encuentro muy util.
Revisando los ejemplos que manda Microsoft, he estado viendo el
ejemplo PoxMessaging. En este, el contrato tiene la siguiente forma:

[OperationContract(Action = "*", ReplyAction = "*")]
Message ProcessMessage(Message input);

¿Puede en este contrato utilizar un UriTemplate?
La separación de operaciones basadas en la url, ¿solo se puede hacer
en la implementación del ProcessMessage? ¿Se puede definir un
UriTemplate?

En una aplicación de prueba estoy usando algo como:
[OperationContract, WebGet(UriTemplate = "/{id}?size={size}")]
System.IO.Stream GetImage(string id, int size);

¿Puedo devolver un Message en caso de error? En caso contario, ¿cómo
notificarían un error?

Gracias de antemano a todos
Jun 27 '08 #1
3 2331
There are spanish C# newsgroups fyi. This one is english.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------
"Lars" <no****@nospam.comwrote in message
news:e7*************@TK2MSFTNGP06.phx.gbl...
Hola

Estoy estudiando WCF y la verdad es que me está gustando mucho. Lo
encuentro muy util.
Revisando los ejemplos que manda Microsoft, he estado viendo el
ejemplo PoxMessaging. En este, el contrato tiene la siguiente forma:

[OperationContract(Action = "*", ReplyAction = "*")]
Message ProcessMessage(Message input);

¿Puede en este contrato utilizar un UriTemplate?
La separación de operaciones basadas en la url, ¿solo se puede hacer
en la implementación del ProcessMessage? ¿Se puede definir un
UriTemplate?

En una aplicación de prueba estoy usando algo como:
[OperationContract, WebGet(UriTemplate = "/{id}?size={size}")]
System.IO.Stream GetImage(string id, int size);

¿Puedo devolver un Message en caso de error? En caso contario, ¿cómo
notificarían un error?

Gracias de antemano a todos
Jun 27 '08 #2
Thank you.
I'm sorry. It was a mistake.
I will translate the question and will post it here.

Thank you again.

"Alvin Bruney [ASP.NET MVP]" <vapor dan using hot male spam filterescribió
en el mensaje news:49**********************************@microsof t.com...
There are spanish C# newsgroups fyi. This one is english.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------
"Lars" <no****@nospam.comwrote in message
news:e7*************@TK2MSFTNGP06.phx.gbl...
>Hola

Estoy estudiando WCF y la verdad es que me está gustando mucho. Lo
encuentro muy util.
Revisando los ejemplos que manda Microsoft, he estado viendo el
ejemplo PoxMessaging. En este, el contrato tiene la siguiente forma:

[OperationContract(Action = "*", ReplyAction = "*")]
Message ProcessMessage(Message input);

¿Puede en este contrato utilizar un UriTemplate?
La separación de operaciones basadas en la url, ¿solo se puede hacer
en la implementación del ProcessMessage? ¿Se puede definir un
UriTemplate?

En una aplicación de prueba estoy usando algo como:
[OperationContract, WebGet(UriTemplate = "/{id}?size={size}")]
System.IO.Stream GetImage(string id, int size);

¿Puedo devolver un Message en caso de error? En caso contario, ¿cómo
notificarían un error?

Gracias de antemano a todos

Jun 27 '08 #3
Lars wrote:
"Alvin Bruney [ASP.NET MVP]" <vapor dan using hot male spam filterescribió
en el mensaje news:49**********************************@microsof t.com...
>"Lars" <no****@nospam.comwrote in message
news:e7*************@TK2MSFTNGP06.phx.gbl...
>>Estoy estudiando WCF y la verdad es que me está gustando mucho. Lo
There are spanish C# newsgroups fyi. This one is english.
I'm sorry. It was a mistake.
I will translate the question and will post it here.
I am more puzzled over a Lars using Spanish ...

Arne
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Leonardo Almeida | last post by:
This is the case.... I would like to learn the statement that make the relation between these tables. Why? Cos these are separated in two different databases and if a user make an update in a...
1
by: Leonardo Almeida | last post by:
This is the case.... I would like to learn the statement that make the relation between these tables. Why? Cos these are separated in two different databases and if a user make an update in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.