I just did a quick search on  [Preserve (AllMembers = true)].  Am I correct
in thinking that it is a MonoTouch tag only?

The webservice that I am talking to is written with C# and Visual Studio.


On Wed, Jan 4, 2012 at 10:24 AM, Jackson Harper <[email protected]> wrote:

> Try adding the Preserve attribute to all the classes in your generated
> file.
>
> [Preserve (AllMembers = true)]
> class SomeClass
>
>
>
> Sent from my iPhone
>
> On Jan 4, 2012, at 10:04 AM, Matronix <[email protected]> wrote:
>
> > When trying to create my service object my code will throw an exception
> > stating:
> >
> > System.InvalidOperationException has been thrown
> > Member LicenseInfoValueField not found in class
> > TestProject.localhost.Service
> >
> > When I go to the reference.cs file this is the top:
> >
> > namespace TestProject.localhost {
> >
> > [System.Web.Services.WebServiceBinding(Name="ServiceSoap",Namespace="
> http://C2S/ImageDirector/";)]
> >    [System.Diagnostics.DebuggerStepThroughAttribute()]
> >    [System.ComponentModel.DesignerCategoryAttribute("code")]
> >    public partial class Service :
> > System.Web.Services.Protocols.SoapHttpClientProtocol {
> >
> >         private LicenseInfo LicenseInfoValueField;
> >         private ErrorInfo ErrorInfoValueField;
> >
> >
> > LicenseInfo and ErrorInfo are the attributes
> >
> > Here is a webservice method:
> >
> >        [WebMethod(EnableSession = true)]
> >        [SoapHeader("LicenseInfo", Direction = SoapHeaderDirection.In)]
> >        [SoapHeader("ErrorInfo", Direction = SoapHeaderDirection.Out)]
> >        public Guid CreateContainer(string name, string description)
> >
> >
> > Any clue why I wouldn't be able to create the Service object and talk to
> my
> > Web Service?
> >
> > --
> > View this message in context:
> http://monotouch.2284126.n4.nabble.com/SOAP-WebService-with-SOAP-Header-Attributes-failing-tp4261555p4261555.html
> > Sent from the MonoTouch mailing list archive at Nabble.com.
> > _______________________________________________
> > MonoTouch mailing list
> > [email protected]
> > http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to