Document style web service?

  • Thread starter Thread starter Jens Jensen
  • Start date Start date
J

Jens Jensen

Does Microsoft now support Document style web service as part of .NET 3.0
(Windows communication foundations)?
 
Jens Jensen said:
Does Microsoft now support Document style web service as part of .NET 3.0
(Windows communication foundations)?

Yes. They have been supported and encouraged since .NET 1.0.

Specifying Data Transfer in Service Contracts
http://msdn2.microsoft.com/en-us/library/ms732038.aspx

EG:

[ServiceContract, DataContractFormat(Style = OperationFormatStyle.Rpc)]
interface ICalculator
{
[OperationContract, DataContractFormat(Style =
OperationFormatStyle.Rpc)]
double Add(double a, double b);

[OperationContract, DataContractFormat(Style =
OperationFormatStyle.Document)]
double Subtract(double a, double b);
}
DataContractFormatAttribute Class
http://msdn2.microsoft.com/en-us/library/system.servicemodel.datacontractformatattribute.aspx

David
 
Yes. They have been supported and encouraged since .NET 1.0.
Specifying Data Transfer in Service Contracts
http://msdn2.microsoft.com/en-us/library/ms732038.aspx

EG:

[ServiceContract, DataContractFormat(Style = OperationFormatStyle.Rpc)]
interface ICalculator
{
[OperationContract, DataContractFormat(Style =
OperationFormatStyle.Rpc)]
double Add(double a, double b);

[OperationContract, DataContractFormat(Style =
OperationFormatStyle.Document)]
double Subtract(double a, double b);
}
DataContractFormatAttribute Class
http://msdn2.microsoft.com/en-us/library/system.servicemodel.datacontractformatattribute.aspx

David

Hi David and thank you for your answer,

The problem we had was when consumming web service generated on an Oracle
application server from .Net.
These services are not RPC style. We had some sort of failure while trying
to consumme them within Visual studio. It looked as the problem was due to
the fact that they were generated as Document style web service .
The proxy generation simply failed.

Thanks
JJ
 
Jens Jensen said:
Yes. They have been supported and encouraged since .NET 1.0.

Specifying Data Transfer in Service Contracts
http://msdn2.microsoft.com/en-us/library/ms732038.aspx

EG:

[ServiceContract, DataContractFormat(Style = OperationFormatStyle.Rpc)]
interface ICalculator
{
[OperationContract, DataContractFormat(Style =
OperationFormatStyle.Rpc)]
double Add(double a, double b);

[OperationContract, DataContractFormat(Style =
OperationFormatStyle.Document)]
double Subtract(double a, double b);
}
DataContractFormatAttribute Class
http://msdn2.microsoft.com/en-us/library/system.servicemodel.datacontractformatattribute.aspx

David

Hi David and thank you for your answer,

The problem we had was when consumming web service generated on an Oracle
application server from .Net.
These services are not RPC style. We had some sort of failure while trying
to consumme them within Visual studio. It looked as the problem was due to
the fact that they were generated as Document style web service .
The proxy generation simply failed.

Proxy generation for document style web services has always worked in .NET.
That wasn't the problem.

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top