XmlElementAttribute does not contain a definition for 'Form'

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I add a webservice to my project and get without altering the code the above
error. The code looks like

[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.sap.com/_-ICO_-CM_XML_CREATE", RequestElementName="_-ICO_-CM_XML_CREATE", ...
[return: System.Xml.Serialization.XmlElementAttribute("XML_STRING",
Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]

When I delete the Form-element, the code compiles, the webservice returns
without exception, but the return value always is an empty string. Inserting
the webservice into a Windowsapplication works fine. Are there any
suggestions?

Regards
SH
 
Stephen H. said:
Hi,

I add a webservice to my project and get without altering the code the above
error. The code looks like

[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.sap.com/_-ICO_-CM_XML_CREATE", RequestElementName="_-ICO_-CM_XML_CREATE", ...
[return: System.Xml.Serialization.XmlElementAttribute("XML_STRING",
Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]

When I delete the Form-element, the code compiles, the webservice returns
without exception, but the return value always is an empty string. Inserting
the webservice into a Windowsapplication works fine. Are there any
suggestions?

Regards
SH

The problem is in the version of the compact framework (1.0 or 1.1).
Actualize to the 1.3 version, and it should works fine

Salu2
 
Back
Top