Click here to Skip to main content
15,665,942 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello! I'm trying to add to a complex type context type or mime type (wsdl webservice xml serialization C#)

[System.Xml.Serialization.XmlElementAttribute("arg1", typeof(System.Byte[]), DataType = "base64Binary")]<br />
    public byte[] arg1<br />
    {<br />
        get<br />
        {<br />
            return this.objectFild;<br />
        }<br />
<br />
        set<br />
        {<br />
            this.objectFild = value;<br />
        }<br />
But nothing comes out

need what would have happened so
<s:element minOccurs="0" maxOccurs="1" name="arg1" type="s:base64Binary" ContentTypes="application/octet-stream"/></s:sequence>

What I have tried:

[System.Xml.Serialization.XmlElementAttribute("arg1", typeof(System.Byte[]), DataType = "base64Binary")]
    public byte[] arg1
            return this.objectFild;

            this.objectFild = value;

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900