This message was discovered on microsoft.public.dotnet.framework.aspnet.webservices.
| Vincent Koopman |
Hey everybody,
My Delphi SOAP Server returns an Object of type TTypeObject (home made ;-) The object has just 1 property, and it's a STRING. That doesn't sound too hard I think.
However, when I call the function that returns the object, the app. receives the object alright, but the property (STRING) stays empty.
I created the client with C# out of Visual Studio.NET and the importing and creation of the interface file using the WSDL.EXE utility gives no warnings or errors. Running the client app. gives no errors either, just that the property is empty after retrieving the object.
Does anybody have any ideas why this is?
Thanks for reading sofar,
Vincent.
|
|
| |
| |
| Vincent Koopman |
it was a problem with the style used for the message exchange. the client and server didn't have the same.
Case Closed.
"Vincent Koopman" <Click here to reveal e-mail address> wrote in message news:#$brfrdQCHA.780@tkmsftngp12... [Original message clipped]
|
|
| |
|
| |
| Vincent Koopman |
This is the created interface file for C#:
//-------------------------------------------------------------------------- ---- // <autogenerated> // This code was generated by a tool. // Runtime Version: 1.0.3705.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </autogenerated> //-------------------------------------------------------------------------- ----
// // This source code was auto-generated by wsdl, Version=1.0.3705.0. // using System.Diagnostics; using System.Xml.Serialization; using System; using System.Web.Services.Protocols; using System.ComponentModel; using System.Web.Services;
/// <remarks/> [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="ITempConvertbinding", Namespace="http://tempuri.org/")] public class ITempConvertservice : System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/> public ITempConvertservice() { this.Url = "http://beaufortsea/soap_tempconv/tempconvert.dll/soap/ITempConvert"; }
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:TempConvertIntf-I TempConvert#ConvertToCelcius", RequestNamespace="urn:TempConvertIntf-ITempConvert", ResponseNamespace="urn:TempConvertIntf-ITempConvert")] [return: System.Xml.Serialization.SoapElementAttribute("return")] public System.Double ConvertToCelcius(System.Double Temp) { object[] results = this.Invoke("ConvertToCelcius", new object[] { Temp}); return ((System.Double)(results[0])); }
/// <remarks/> public System.IAsyncResult BeginConvertToCelcius(System.Double Temp, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("ConvertToCelcius", new object[] { Temp}, callback, asyncState); }
/// <remarks/> public System.Double EndConvertToCelcius(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((System.Double)(results[0])); }
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:TempConvertIntf-I TempConvert#ConvertToFahrenheit", RequestNamespace="urn:TempConvertIntf-ITempConvert", ResponseNamespace="urn:TempConvertIntf-ITempConvert")] [return: System.Xml.Serialization.SoapElementAttribute("return")] public System.Double ConvertToFahrenheit(System.Double Temp) { object[] results = this.Invoke("ConvertToFahrenheit", new object[] { Temp}); return ((System.Double)(results[0])); }
/// <remarks/> public System.IAsyncResult BeginConvertToFahrenheit(System.Double Temp, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("ConvertToFahrenheit", new object[] { Temp}, callback, asyncState); }
/// <remarks/> public System.Double EndConvertToFahrenheit(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((System.Double)(results[0])); }
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:TempConvertIntf-I TempConvert#GetTypeObject", RequestNamespace="urn:TempConvertIntf-ITempConvert", ResponseNamespace="urn:TempConvertIntf-ITempConvert")] [return: System.Xml.Serialization.SoapElementAttribute("return")] public TTypeObject GetTypeObject() { object[] results = this.Invoke("GetTypeObject", new object[0]); return ((TTypeObject)(results[0])); }
/// <remarks/> public System.IAsyncResult BeginGetTypeObject(System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetTypeObject", new object[0], callback, asyncState); }
/// <remarks/> public TTypeObject EndGetTypeObject(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((TTypeObject)(results[0])); } }
/// <remarks/> [System.Xml.Serialization.SoapTypeAttribute("TTypeObject", "urn:TypeObjectUnit")] public class TTypeObject {
/// <remarks/> public string AString; }
|
|
| |
|
| |
| Vincent Koopman |
Also... a Delphi client DOES receive the property...
|
|
| |
|
|
|
|
|