[Mono-bugs] [Bug 318053] Unable to generate valid client proxy with wsdl

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 24 19:00:32 EDT 2008


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

User jan.oravec at 6com.sk added comment
https://bugzilla.novell.com/show_bug.cgi?id=318053#c1


Jan Oravec <jan.oravec at 6com.sk> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |jan.oravec at 6com.sk
             Status|RESOLVED                                        |REOPENED
         Resolution|FIXED                                           |




--- Comment #1 from Jan Oravec <jan.oravec at 6com.sk>  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.


More information about the mono-bugs mailing list