Bug 17388 - After adding an IIS web Service throw me an namespace 'schema' error
Summary: After adding an IIS web Service throw me an namespace 'schema' error
Status: RESOLVED NORESPONSE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Web Services ()
Version: 4.2.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-01-22 23:39 UTC by Juan Carlos De la O Garcia
Modified: 2017-03-24 19:26 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Solution (19.99 KB, application/octet-stream)
2014-01-28 09:50 UTC, Juan Carlos De la O Garcia
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Juan Carlos De la O Garcia 2014-01-22 23:39:53 UTC
I create a Local IIS web application and it to a Android project in Xamarin Studio then throw me an error on:

 - public partial class getClientDataResponseGetClientDataResult

exactly with the type schema that is created here:

 - private schema schemaField;

looks like the system don't recognize the 'schema' type


//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.18052
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace MondayTest.TestService {
    
}


[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(Namespace="MondayTest.TestService", ConfigurationName="IService1")]
public interface IService1 {
    
    // CODEGEN: Generating message contract since the wrapper namespace (http://tempuri.org/) of message GetDataRequest does not match the default value (MondayTest.TestService)
    [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService1/GetData", ReplyAction="http://tempuri.org/IService1/GetDataResponse")]
    [System.ServiceModel.XmlSerializerFormatAttribute()]
    GetDataResponse GetData(GetDataRequest request);
    
    // CODEGEN: Generating message contract since the wrapper namespace (http://tempuri.org/) of message GetDataUsingDataContractRequest does not match the default value (MondayTest.TestService)
    [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService1/GetDataUsingDataContract", ReplyAction="http://tempuri.org/IService1/GetDataUsingDataContractResponse")]
    [System.ServiceModel.XmlSerializerFormatAttribute()]
    GetDataUsingDataContractResponse GetDataUsingDataContract(GetDataUsingDataContractRequest request);
    
    // CODEGEN: Generating message contract since the wrapper namespace (http://tempuri.org/) of message getClientDataRequest does not match the default value (MondayTest.TestService)
    [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService1/getClientData", ReplyAction="http://tempuri.org/IService1/getClientDataResponse")]
    [System.ServiceModel.XmlSerializerFormatAttribute()]
    getClientDataResponse getClientData(getClientDataRequest request);
    
    // CODEGEN: Generating message contract since the wrapper namespace (http://tempuri.org/) of message setClientDataRequest does not match the default value (MondayTest.TestService)
    [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IService1/setClientData", ReplyAction="http://tempuri.org/IService1/setClientDataResponse")]
    [System.ServiceModel.XmlSerializerFormatAttribute()]
    setClientDataResponse setClientData(setClientDataRequest request);
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="GetData", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
public partial class GetDataRequest {
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
    public int value;
    
    public GetDataRequest() {
    }
    
    public GetDataRequest(int value) {
        this.value = value;
    }
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="GetDataResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
public partial class GetDataResponse {
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
    [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
    public string GetDataResult;
    
    public GetDataResponse() {
    }
    
    public GetDataResponse(string GetDataResult) {
        this.GetDataResult = GetDataResult;
    }
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="GetDataUsingDataContract", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
public partial class GetDataUsingDataContractRequest {
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
    [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
    public CompositeType composite;
    
    public GetDataUsingDataContractRequest() {
    }
    
    public GetDataUsingDataContractRequest(CompositeType composite) {
        this.composite = composite;
    }
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="GetDataUsingDataContractResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
public partial class GetDataUsingDataContractResponse {
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
    [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
    public CompositeType GetDataUsingDataContractResult;
    
    public GetDataUsingDataContractResponse() {
    }
    
    public GetDataUsingDataContractResponse(CompositeType GetDataUsingDataContractResult) {
        this.GetDataUsingDataContractResult = GetDataUsingDataContractResult;
    }
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="getClientData", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
public partial class getClientDataRequest {
    
    public getClientDataRequest() {
    }
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="getClientDataResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
public partial class getClientDataResponse {
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
    [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
    public getClientDataResponseGetClientDataResult getClientDataResult;
    
    public getClientDataResponse() {
    }
    
    public getClientDataResponse(getClientDataResponseGetClientDataResult getClientDataResult) {
        this.getClientDataResult = getClientDataResult;
    }
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="setClientData", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
public partial class setClientDataRequest {
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
    [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
    public string client;
    
    [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
    [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
    public string message;
    
    public setClientDataRequest() {
    }
    
    public setClientDataRequest(string client, string message) {
        this.client = client;
        this.message = message;
    }
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="setClientDataResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
public partial class setClientDataResponse {
    
    public setClientDataResponse() {
    }
}

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public interface IService1Channel : IService1, System.ServiceModel.IClientChannel {
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public partial class Service1Client : System.ServiceModel.ClientBase<IService1>, IService1 {
    
    public Service1Client() {
    }
    
    public Service1Client(string endpointConfigurationName) : 
            base(endpointConfigurationName) {
    }
    
    public Service1Client(string endpointConfigurationName, string remoteAddress) : 
            base(endpointConfigurationName, remoteAddress) {
    }
    
    public Service1Client(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
            base(endpointConfigurationName, remoteAddress) {
    }
    
    public Service1Client(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
            base(binding, remoteAddress) {
    }
    
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    GetDataResponse IService1.GetData(GetDataRequest request) {
        return base.Channel.GetData(request);
    }
    
    public string GetData(int value) {
        GetDataRequest inValue = new GetDataRequest();
        inValue.value = value;
        GetDataResponse retVal = ((IService1)(this)).GetData(inValue);
        return retVal.GetDataResult;
    }
    
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    GetDataUsingDataContractResponse IService1.GetDataUsingDataContract(GetDataUsingDataContractRequest request) {
        return base.Channel.GetDataUsingDataContract(request);
    }
    
    public CompositeType GetDataUsingDataContract(CompositeType composite) {
        GetDataUsingDataContractRequest inValue = new GetDataUsingDataContractRequest();
        inValue.composite = composite;
        GetDataUsingDataContractResponse retVal = ((IService1)(this)).GetDataUsingDataContract(inValue);
        return retVal.GetDataUsingDataContractResult;
    }
    
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    getClientDataResponse IService1.getClientData(getClientDataRequest request) {
        return base.Channel.getClientData(request);
    }
    
    public getClientDataResponseGetClientDataResult getClientData() {
        getClientDataRequest inValue = new getClientDataRequest();
        getClientDataResponse retVal = ((IService1)(this)).getClientData(inValue);
        return retVal.getClientDataResult;
    }
    
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    setClientDataResponse IService1.setClientData(setClientDataRequest request) {
        return base.Channel.setClientData(request);
    }
    
    public void setClientData(string client, string message) {
        setClientDataRequest inValue = new setClientDataRequest();
        inValue.client = client;
        inValue.message = message;
        setClientDataResponse retVal = ((IService1)(this)).setClientData(inValue);
    }
}


/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "4.0.0.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.datacontract.org/2004/07/WcfService1")]
public partial class CompositeType {
    
    private bool boolValueField;
    
    private bool boolValueFieldSpecified;
    
    private string stringValueField;
    
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Order=0)]
    public bool BoolValue {
        get {
            return this.boolValueField;
        }
        set {
            this.boolValueField = value;
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool BoolValueSpecified {
        get {
            return this.boolValueFieldSpecified;
        }
        set {
            this.boolValueFieldSpecified = value;
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(IsNullable=true, Order=1)]
    public string StringValue {
        get {
            return this.stringValueField;
        }
        set {
            this.stringValueField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "4.0.0.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://tempuri.org/")]

public partial class getClientDataResponseGetClientDataResult {
    
	private schema schemaField;

    private System.Xml.XmlElement anyField;
    
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(Namespace="http://www.w3.org/2001/XMLSchema", Order=0)]
    public schema schema {
        get {
            return this.schemaField;
        }
        set {
            this.schemaField = value;
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlAnyElementAttribute(Order=1)]
    public System.Xml.XmlElement Any {
        get {
            return this.anyField;
        }
        set {
            this.anyField = value;
        }
    }
}
Comment 1 narayanp 2014-01-28 06:21:35 UTC
@Juan, Could you please provide me some more steps or Test project so that I can reproduce it at my end?
Comment 2 Juan Carlos De la O Garcia 2014-01-28 09:50:16 UTC
Created attachment 5926 [details]
Solution
Comment 3 Juan Carlos De la O Garcia 2014-01-28 09:50:54 UTC
There is the solution!
Comment 4 Lluis Sanchez 2017-01-16 17:42:59 UTC
Old bug. Is this still an issue?
Comment 5 Greg Munn 2017-03-24 19:26:28 UTC
Closing. If this is indeed still an issue, please reopen the bug. Thanks.