Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Problem with web reference

 
 
Old 12-15-2006   #1 (permalink)
Competitive Dad


 
 

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 SpecsSystem Spec
Old 12-15-2006   #2 (permalink)
Vadym Stetsyak


 
 

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 SpecsSystem Spec
Old 12-18-2006   #3 (permalink)
Competitive Dad


 
 

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 SpecsSystem Spec
 

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46