WSDL reference not being constructed correctly using Ranorex
Posted: 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:
However, when doing it in Visual Studio 2010 it's constructed like this:
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!
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
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 {
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!