XmlElementAttribute does not contain a definition for 'Form'

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top