WS-I Basic Profile compliance

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bjorn Holmberg

    WS-I Basic Profile compliance

    Has anyone tested .net webservices for ws-i basic profile compliance? I get a
    failute even when testing a simple service such as:

    [WebService(Name space="http://example.com/stockquote")]
    public class Quote {

    [WebMethod]
    public Single GetQuote(string tickerSymbol, DateTime time) {
    return 23.45F;
    }
    }

    I use the 1.1 testing tool kit at:


    I get a failure on BP1212 (corresponds to R2212 in the profile):
    "The content of the soap:Body element is inconsistent with its description. The
    envelope does not contain exactly one part accessor element for each of the
    wsdl:part elements bound to the envelope's corresponding soapbind:body element."

    And on the wire I have this:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelop e xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"
    xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <GetQuote xmlns="http://example.com/stockquote">
    <tickerSymbol>v lv</tickerSymbol>
    <time>2005-06-25T16:06:53.904 4544+02:00</time>
    </GetQuote>
    </soap:Body>
    </soap:Envelope>

    Regards
    Bjorn
Working...