![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Problem with web reference I have tried using BizTalk, a Windows app and a Web app to add a web reference to a WCF service that was generated using the Web Service Software Factory. I need to do this via a web reference because ultimately I'll be using BizTalk and I don't want to have to use proxy classes as this will require variables and hard coding in the orchestration that will be calling the WCF service which makes it more of a problem when deploying. The operation generated in the WSSF has a service implementation with a method: public bool PublishRequest(PublishMetaData request) where PublishMetaData is a business entity within the service. When I add this service (via the .svc in the web references dialogue) in any application the method signature changes to: public void PublishRequest(PublishMetaData request, out bool PublishRequestResult, out bool PublishRequestResultSpecified) Can anyone tell me why this would happen and more importantly how I can stop it as I NEED the signature to be as exposed in the service implementation? The reason I NEED it to be the same is because BizTalk web service support doesn't seem to extend to "out" parameters rather like it doesn't extend to arrays as return types. The service is bound using basicHttp binding. TIA, Martin |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Problem with web reference Hello, Competitive! What version of WCF do you use? RTM? This is serializer behavior - it thinks that bool return type can be null. To resolve this issue you can add XmlSerializerFormat attribute to the contract ( interface ) . Have a look for more info ( http://msdn.microsoft.com/msdnmag/is...n/default.aspx ) You wrote on Fri, 15 Dec 2006 04:22:00 -0800: CD> I need to do this via a web reference because ultimately I'll be using CD> BizTalk and I don't want to have to use proxy classes as this will CD> require variables and hard coding in the orchestration that will be CD> calling the WCF service which makes it more of a problem when CD> deploying. CD> The operation generated in the WSSF has a service implementation with a CD> method: CD> public bool PublishRequest(PublishMetaData request) CD> where PublishMetaData is a business entity within the service. CD> When I add this service (via the .svc in the web references dialogue) CD> in any application the method signature changes to: CD> public void PublishRequest(PublishMetaData request, out bool CD> PublishRequestResult, out bool PublishRequestResultSpecified) CD> Can anyone tell me why this would happen and more importantly how I can CD> stop it as I NEED the signature to be as exposed in the service CD> implementation? The reason I NEED it to be the same is because BizTalk CD> web service support doesn't seem to extend to "out" parameters rather CD> like it doesn't extend to arrays as return types. CD> The service is bound using basicHttp binding. CD> TIA, With best regards, Vadym Stetsyak. E-mail: vadym_s@ukr.net |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Problem with web reference Vadym, Many thanks that seems to have done the trick with web applications. BizTalk is still failing to add the reference but I'm guessing this is not something to do with the service as such, but more something specific to BizTalk as adding it to a web applicaiton works fine. Thanks for the help and the reference, it'll be going on my project blog today! Cheers, CD "Vadym Stetsyak" wrote: > Hello, Competitive! > > What version of WCF do you use? RTM? > > This is serializer behavior - it thinks that bool return type can be null. > To resolve this issue you can add XmlSerializerFormat attribute to > the contract ( interface ) . > > Have a look for more info ( > http://msdn.microsoft.com/msdnmag/is...n/default.aspx ) > > > You wrote on Fri, 15 Dec 2006 04:22:00 -0800: > > CD> I need to do this via a web reference because ultimately I'll be using > CD> BizTalk and I don't want to have to use proxy classes as this will > CD> require variables and hard coding in the orchestration that will be > CD> calling the WCF service which makes it more of a problem when > CD> deploying. > > CD> The operation generated in the WSSF has a service implementation with a > CD> method: > > CD> public bool PublishRequest(PublishMetaData request) > > CD> where PublishMetaData is a business entity within the service. > > CD> When I add this service (via the .svc in the web references dialogue) > CD> in any application the method signature changes to: > > CD> public void PublishRequest(PublishMetaData request, out bool > CD> PublishRequestResult, out bool PublishRequestResultSpecified) > > CD> Can anyone tell me why this would happen and more importantly how I can > CD> stop it as I NEED the signature to be as exposed in the service > CD> implementation? The reason I NEED it to be the same is because BizTalk > CD> web service support doesn't seem to extend to "out" parameters rather > CD> like it doesn't extend to arrays as return types. > > CD> The service is bound using basicHttp binding. > > CD> TIA, > > > With best regards, Vadym Stetsyak. E-mail: vadym_s@ukr.net > > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| DLL Reference problem | .NET General | |||
| Useful Reference lists Vista ready, not ready, problem hardware, software,what's been tested | Vista General | |||
| Useful Reference lists Vista ready, not ready, problem hardware, software,what's been tested | Vista installation & setup | |||
| Best reference for .NET for use with PS | PowerShell | |||