Results 1 to 3 of 3

Thread: Spring-WS interoperable with WCF?

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Posts
    2

    Default Spring-WS interoperable with WCF?

    Hi all,

    I have a Spring-WS 1.0.3 service deployed, and it works fine from my java clients (using jaxws). However, I now need to make the service available for .Net WCF clients (.Net 3.5). There seems to be some issue somewhere here, but I'm not sure where the problem is (WCF client or serverside). The serverside error is:

    Mar 21, 2008 10:06:02 PM com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
    SEVERE: SAAJ0511: Unable to create envelope from given source


    HTTP request looks like this from my WCF client:

    Content-Length: 347
    Host: host1.company.com:8080
    User-Agent: Jakarta Commons-HttpClient/3.0.1
    SOAPAction: ""
    Content-Type: text/xml;charset=UTF-8

    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <HotelRequest xmlns="http://my.company.com">
    <param1 xmlns="">value1</param1>
    <param2 xmlns="">value2</param2>
    </HotelRequest>
    </s:Body>
    </s:Envelope>


    How can we get the .Net WCF client (basicHttpBinding using Soap 1.1) to talk to the server?



    Thanks,
    Skip

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

    Default

    Judging by the user agent, that request seems to be coming from Jakarta Commons-HttpClient/3.0.1, not Windows Communication Foundation. And I don't see anything wrong with the request.

    In general, Spring-WS is compatible with WCF, there are quite a lot of sample clients in the distribution which indicate this.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3
    Join Date
    Mar 2008
    Posts
    2

    Default

    Actually my problem was resolved after following descriptions here: http://forum.springframework.org/arc...p/t-38582.html
    I.e. adding newer xalan and xerces dependencies made WCF clients talk to my Spring-WS service:

    <dependency>
    <groupId>xerces</groupId>
    <artifactId>xercesImpl</artifactId>
    <version>2.8.1</version>
    </dependency>
    <dependency>
    <groupId>xalan</groupId>
    <artifactId>xalan</artifactId>
    <version>2.7.0</version>
    </dependency>


    Regards,
    Skip

Posting Permissions

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