Hi,
I have a WS client. All the code is generated by VS.NET 2003.
For me its seems that an attribute is not generated during sending the
request in the SOAPHeader.
The problem is with RFCSendingValue .
There the attribute 'groupeid0 isn't generated in the SOAP request.
The proxy is generated this way:
----------------------------------------------------------------------------
---------
/// <remarks/>
public RFCSending RFCSendingValue ;
public EFCSending EFCSendingValue ;
[System.Web.Serv ices.Protocols. SoapHeaderAttri bute("RFCSendin gValue",
Direction=Syste m.Web.Services. Protocols.SoapH eaderDirection. In,
Required=true)]
[System.Web.Serv ices.Protocols. SoapHeaderAttri bute("EFCSendin gValue",
Direction=Syste m.Web.Services. Protocols.SoapH eaderDirection. Out,
Required=true)]
[System.Web.Serv ices.Protocols. SoapDocumentMet hodAttribute("" ,
Use=System.Web. Services.Descri ption.SoapBindi ngUse.Literal,
ParameterStyle= System.Web.Serv ices.Protocols. SoapParameterSt yle.Bare)]
[return: System.Xml.Seri alization.XmlAr rayAttribute("E FCCase",
Namespace=http://www.)]
[return: System.Xml.Seri alization.XmlAr rayItemAttribut e("cardIndex" ,
Namespace=http://www., IsNullable=fals e)]
public EFCCaseTypeCard Index[]
identifyClient([System.Xml.Seri alization.XmlAr rayAttribute(Na mespace=http://
www.)] [System.Xml.Seri alization.XmlAr rayItemAttribut e("cardIndex" ,
Namespace=http://www., IsNullable=fals e)] RFCCaseTypeCard Index[] RFCCase) {
object[] results = this.Invoke("id entifyClient", new object[] { RFCCase});
return ((EFCCaseTypeCa rdIndex[])(results[0]));
}
[System.Xml.Seri alization.XmlTy peAttribute(Nam espace=http://www.xxx.ch)]
[System.Xml.Seri alization.XmlRo otAttribute(Nam espace=http://www.xxx.ch,
IsNullable=fals e)]
public class RFCSending : sendingType {
/// <remarks/>
[System.Xml.Seri alization.XmlAr rayItemAttribut e("cardIndex" ,
IsNullable=fals e)]
public RFCCaseTypeCard Index[] RFCCase;
/// <remarks/>
[System.Xml.Seri alization.XmlAt tributeAttribut e("groupe-id")]
public int groupeid;
/// <remarks/>
[System.Xml.Seri alization.XmlIg noreAttribute()]
public bool groupeidSpecifi ed;
}
The generated SOAP header looks like:
- <soap:Header>
- <RFCSending sending-date="2004-07-12T10:35:09.220 8717+02:00"
sending-id="1" xmlns="http://www.ofac.ch/XEDO">
<sender code="1" />
<recipient code="4" />
</RFCSending>
</soap:Header>
It seems that only the attributes in the base class 'sendingType' are
generated. Why?
Thanks
Eric