J'ai un fichier WSDL.Comment demander au fichier .wsdl, qui se trouve dans un dossier local?
Je dois effectuer une requête avec 2 paramètres de type Personnalisé, et obtenir la réponse.
J'ai ajouté une référence de service dans mon application cliente comme ceci:
using WSDLCall.wsdlReference;
Après quoi proxy a été généré.
getCustomerData custInfo = new getCustomerData();
ici, getCustomerData
est une classe, qui est d'avoir 2 paramètres de type personnalisé.
Je dois attribuer une valeur à ces paramètres et obtenir une réponse.
mon schéma wsdl:
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.9.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://someurl" +
"gement/v1")]
public partial class GetCustomerData : object, System.ComponentModel.INotifyPropertyChanged {
private CustID custAccIDField;
private OtherOrgId1 idField;
///
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public CustID custAccID {
get {
return this.custAccIDField;
}
set {
this.custAccIDField = value;
this.PropertyChanged("custAccID");
}
}
///
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public OtherOrgId1 id {
get {
return this.idField;
}
set {
this.idField = value;
this.PropertyChanged("id");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void PropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
dans mon cas: je ne suis pas capable d'instancier le client – Kingshuk