Possible Duplicate:
WCF will not return an int
Trying to consume from my own WCF service like this:
[ServiceContract]
public interface IReturnService
{
[OperationContract]
bool GetTransactionList(int lRetailStoreID, int lWorkstationNmbr, int lTaNmbr);
}
But when I'm calling the service from the client, I get the error that there's no method GetTransactionList
with 3 arguments, instead I get this header:
myWCF.GetTransactionList(int lRetailStoreID, bool lRetailStoreIDSpecified,
int lWorkstationNmbr, bool lWorkstationNmbrSpecified,
int lTaNmbr, bool lTaNmbrSpecified,
out bool GetTransactionListResult,
out bool GetTransactionListResultSpecified)
Anyone knows why is this happening and how to solve it? Let me know if more information is needed.
Add XMLSerializerFormat to attributes on your service:
[ServiceContract]
[XmlSerializerFormat]
public interface IReturnService{
...
Heres why: http://nirajrules.wordpress.com/2009/08/26/wcf-serializers-xmlserializer-vs-datacontratserializer-vs-netdatacontractserializer/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With