WSDL reference not being constructed correctly using Ranorex

Ranorex Spy, Recorder, and Studio.
carsonw
Posts: 178
Joined: Tue Nov 08, 2011 10:01 pm

WSDL reference not being constructed correctly using Ranorex

Post by carsonw » Thu Feb 16, 2012 7:52 pm

This problem stumped us for a while, I hope I'm explaining this correctly.

In ranorex studio, when we added our web reference one of the following classes was constructed like this:

Code: Select all

 /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("RanorexStudio", "3.2.1.15734")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="BasicHttpBinding_ISFTSWebService", Namespace="http://schemas.business.westernunion.com/2011/02/SFTSWebService")]
    public partial class SFTSWebService : System.Web.Services.Protocols.SoapHttpClientProtocol
However, when doing it in Visual Studio 2010 it's constructed like this:

Code: Select all

 [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class SFTSWebServiceClient : System.ServiceModel.ClientBase<Test.ServiceReference1.ISFTSWebService>, Test.ServiceReference1.ISFTSWebService {
This difference was causing problems for us. In the first case, with how Ranorex recognized the wsdl, we could not add any headers so we could not add our certificate information causing our requests to get rejected - in the second case we can.

That's just one of many examples of how the recognition is different. I'm not sure if there's something I've done wrong, or why it would be so dramatically different. At this point we cannot use web references added through Ranorex, we have to recognize them first through Visual Studio and then add them that way. Am I misunderstanding something here?

Thanks in advance for your help!

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: WSDL reference not being constructed correctly using Ranorex

Post by Support Team » Fri Feb 17, 2012 4:09 pm

The difference is caused by the fact that VS 2010 uses the Windows Communication Framework (WCF) for web references, which was added with the .NET Framework 3.0. Ranorex Studio, however, generates web references compatible with the .NET Framework 2.0.

If you need the WCF web references, you can generate them with VS 2010 and use the corresponding files in your Ranorex projects. Just make sure that you set the .NET target framework in your compiling options to at least version 3.0.

Regards,
Alex
Ranorex Team
.
Image

carsonw
Posts: 178
Joined: Tue Nov 08, 2011 10:01 pm

Re: WSDL reference not being constructed correctly using Ranorex

Post by carsonw » Fri Feb 17, 2012 5:53 pm

Ok thanks - in our case we actually need .net 4.

Are there any plans to have this updated in the future?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: WSDL reference not being constructed correctly using Ranorex

Post by Support Team » Mon Feb 20, 2012 3:40 pm

Hi,
carsonw wrote:Are there any plans to have this updated in the future?
I have just added this feature request to our internal road map.
The responsible developers will discuss about how and when this feature will be implemented, depending on how many requests we get for this feature.

Regards,
Tobias
Ranorex Support Team
.
Image