Results 1 to 2 of 2

Thread: WCF Interoperability

  1. #1
    Join Date
    Mar 2007
    Posts
    15

    Question WCF Interoperability

    Hi.
    We are creating web services that will be consumed by a .NET WCF Client. The .NET team wants to use the DataContractSerializer http://msdn2.microsoft.com/en-us/library/ms733112.aspx instead of the default XmlSerializer. And we want to follow the wrapped document/literal convention.

    Using the DCS means that we must adhere to some xsd design patterns - mostly in the link above. However there are at least on other other quirk that is not very well documented, and that has to do with the wsdl definition.

    According to the following blogs:

    the 'wsdl' 'part' of the 'message' MUST be named 'parameters'.

    Example:
    Code:
     <wsdl:message name="StockQuoteRequest">
        <wsdl:part element="tns:StockQuoteRequest" 
                   name="parameters"/>
      </wsdl:message>
    According to my investigations, Spring-WS uses the message name as the part name. See DefaultMessagesProvider.populatePart(..)

    Is there a good reason for this? Will I be in trouble if I bypass this by creating a new implementation of the MessagesProvider interface and use that with the ProviderBasedWsdl4jDefinition?

    Regards,
    Paul Nyheim

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Quote Originally Posted by Paul Nyheim View Post
    Is there a good reason for this? Will I be in trouble if I bypass this by creating a new implementation of the MessagesProvider interface and use that with the ProviderBasedWsdl4jDefinition?
    There is no particular reason for this, it's just one choice of name. And yes, using the provider-based definition, you can easily plugin your own MessagesProvider.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •