request object being created for parameter.

Jan 14, 2011 at 11:51 PM

I have the following contract method call in a soap wcf service contract:

[SoapHeader("UserId", typeof(Header), Direction = SoapHeaderDirection.In)]

[OperationContract]

string DeleteVideoRequest(Guid id);

 

 

The problem I'm running into is once I add the soapheader attribute the generated service signature wants a DeleteVideoRequestRequest (made up of the user id and guid id) object instead of a Guid. I'm not sure what is causing this to occur. Is this the expected behavior? I would expect that the signature stay the same, and then you would use the wcfextras code to read the header. Could I be missing something or doing something wrong?

Mar 19, 2012 at 11:59 AM

I have the same problem.  This is my operation contract:

[SoapHeader("MyHeader", typeof(Header), Direction = SoapHeaderDirection

.In)]
[OperationContract 
]
RecipeM GetRecipeInfo(int
idRecipe);

 

When I try to generate client code, I get this error: This operation is not supported in the WCF Test Client because it uses type GetRecipeInfoRequest.

Has anybody found a solution?

Thanks,