https://bugzilla.novell.com/show_bug.cgi?id=318053

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=318053#c1


Jan Oravec <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |[EMAIL 
PROTECTED]
             Status|RESOLVED                                        |REOPENED
         Resolution|FIXED                                           |




--- Comment #1 from Jan Oravec <[EMAIL PROTECTED]>  2008-09-24 17:00:31 MDT ---
I have exactly same problem (original Kjell's problem, not Janne's, I am not
sure which one was fixed) - when trying to use Betfair API, fields in response
objects are not populated. Their web service implementation also runs on Java.

Test case (runned on yesterday's SVN HEAD):

1. Download https://api.betfair.com/global/v3/BFGlobalService.wsdl
2. Run wsdl BFGlobalService.wsdl
3. Compile this code with generated BFGlobalService.cs:

public class M
{
  public static void Main ()
  {
    BFGlobalService bf = new BFGlobalService ();
    LoginReq lrq = new LoginReq ();
    lrq.productId = 82;
    lrq.username = "invalid username";
    lrq.password = "invalid password";

    LoginResp lrp = bf.login (lrq);

    if (lrp.header == null)
      throw new Exception ("buggy wsdl generator");
  }
}

4. Run it.

When you compare proxy classes generated by .NET and Mono, .NET generates this
attribute to every class field:

[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]

When this attribute is added to all fields of proxy class generated by Mono,
everything works.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to