[Mono-bugs] [Bug 567428] New: Soap Headers dont appear to be passing to webservice

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 28 12:05:38 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=567428

http://bugzilla.novell.com/show_bug.cgi?id=567428#c0


           Summary: Soap Headers dont appear to be passing to webservice
    Classification: Mono
           Product: MonoTouch
           Version: SVN
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: darrellbooker at me.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User
           Blocker: ---


Description of Problem:
I'm trying to consume a web service that makes use of headers to send username
and password. First off, this web service has been in place for years and works
properly when consumed via other platforms

Steps to reproduce the problem:
1. consume a web service that makes use of headers.
2. Button.TouchDown += delegate {



                DataSet theresult = new DataSet();

wiswebservice service = new wiswebservice ();

AuthenticateHeader mySoapHeader = new AuthenticateHeader ();



                mySoapHeader.Username = "blah";

                mySoapHeader.Password = "blah";    

                service.AuthenticateHeaderValue = mySoapHeader; 

                theresult=service.LaborRatesByZip("23234","");

                TextView.Text = theresult.GetXml();

            };


Actual Results:
Unhandled Exception: System.InvalidOperationException: Member
AuthenticateHeaderValueField not found in class LaborRates.WIS.wiswebservice.

  at System.Web.Services.Protocols.SoapMethodStubInfo..ctor
(System.Web.Services.Protocols.TypeStubInfo typeStub,
System.Web.Services.Protocols.LogicalMethodInfo source, System.Object kind,
System.Xml.Serialization.XmlReflectionImporter xmlImporter,
System.Xml.Serialization.SoapReflectionImporter soapImporter) [0x00000] in
<filename unknown>:0 

  at System.Web.Services.Protocols.SoapTypeStubInfo.CreateMethodStubInfo
(System.Web.Services.Protocols.TypeStubInfo parent,
System.Web.Services.Protocols.LogicalMethodInfo lmi, Boolean isClientProxy)
[0x00000] in <filename unknown>:0 

  at System.Web.Services.Protocols.TypeStubInfo.BuildTypeMethods () [0x00000]
in <filename unknown>:0 

  at System.Web.Services.Protocols.TypeStubInfo.Initialize () [0x00000] in
<filename unknown>:0 

  at System.Web.Services.Protocols.LogicalTypeInfo.GetTypeStub (System.String
protocolName) [0x00000] in <filename unknown>:0 

  at System.Web.Services.Protocols.TypeStubManager.GetTypeStub (System.Type t,
System.String protocolName) [0x00000] in <filename unknown>:0 

  at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor () [0x00000] in
<filename unknown>:0 

  at LaborRates.WIS.wiswebservice..ctor () [0x00000] in <filename unknown>:0 

  at (wrapper remoting-invoke-with-check) LaborRates.WIS.wiswebservice:.ctor ()

  at LaborRates.AppDelegate.<FinishedLaunching>m__0 (System.Object ,
System.EventArgs ) [0x00000] in <filename unknown>:0 

  at MonoTouch.UIKit.UIControlEventProxy.Activated () [0x00000] in <filename
unknown>:0 

  at (wrapper managed-to-native)
MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)

  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String
principalClassName, System.String delegateClassName) [0x00000] in <filename
unknown>:0 

  at MonoTouch.UIKit.UIApplication.Main (System.String[] args) [0x00000] in
<filename unknown>:0 

  at LaborRates.Application.Main (System.String[] args) [0x00000] in <filename
unknown>:0 

Expected Results:
expected header to be sent, validated and results returnded

How often does this happen? 
everytime!

Additional Information:

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list