Announcement Announcement Module
Collapse
No announcement yet.
Spring-WS interoperable with WCF? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment


    • #3
      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

      Comment

      Working...
      X