Results 1 to 6 of 6

Thread: Again problem with C#

  1. #1
    Join Date
    Jun 2007
    Location
    Germany, Mannheim
    Posts
    28

    Exclamation Again problem with C#

    Hello everybody,

    we are also having troubles with calling our (spring-ws based) WebService from a C# client.

    The C# Client is sending us:
    <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">
    <MyRequestObj paramA="0" paramB="123" xmlns="http://movilitas.com/movilizer">
    ....
    </MyRequestObj>
    </s:Body>
    </s:Envelope>

    but Spring-WS expects something like this:
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://movilitas.com/movilizer">
    <s:Body>
    <m:MyRequestObj paramA="0" paramB="123">
    ....
    </m:MyRequestObj>
    </s:Body>
    </s:Envelope>


    The Request sent by C# is rejected with a SOAP evelope error :-(

    1. Is this correct what the C# client does - Does it confirm to the standard?
    2. How can we make it work? Best would be if we could make spring to allow such requests, but if changing something on the C# client makes it possible, thats also fine.


    Thanks for any help,
    Christian

  2. #2
    Join Date
    Jun 2007
    Location
    Germany, Mannheim
    Posts
    28

    Default

    Nobody here likes to use .net? :-)

  3. #3
    Join Date
    Aug 2008
    Posts
    9

    Default

    Have you considered trying a different client? We use SoapUI which can be used quite nicely to test a web service, e.g. it can validate the request if it is conform to a xml scheme.

    Just my 2 cents ...

  4. #4
    Join Date
    Jun 2007
    Location
    Germany, Mannheim
    Posts
    28

    Default

    Hi Robert,

    I'm also using SOAPUI for testing purposes, very nice tool for that :-)

    The problem is that one of our customers would like to integrate our WebService, and (unfortunetaly) they are using .net...

    I found out that adding the following to my pom is supposed to solve the problem:
    Code:
    		<dependency>
    			<groupId>xerces</groupId>
    			<artifactId>xercesImpl</artifactId>
    			<version>2.9.1</version>
    		</dependency>
    
    		<dependency>
    			<groupId>xalan</groupId>
    			<artifactId>xalan</artifactId>
    			<version>2.7.1</version>
    		</dependency>
    Unfortunetaly the other guys havn't had the time to rerun the .net WebService client. So I can't really tell yet whether it works now or not....

    regards,
    Christian
    Last edited by horschi; Feb 6th, 2009 at 07:30 AM. Reason: typo

  5. #5
    Join Date
    Aug 2008
    Posts
    9

    Default

    Hi Christian,

    just curious ... why are you needing these dependencies? This is not a Java 1.4 thing is it?
    (If so, be sure to read the FAQ of Spring-WS and your web container documentation on how they deal with the endorsed libs)

    Cheers,

    Robert

  6. #6
    Join Date
    Jun 2007
    Location
    Germany, Mannheim
    Posts
    28

    Default

    Ok, adding xercesImpl and xalan solved the problem.

    Robert: I dont know why, I just read it and it works.

Tags for this Thread

Posting Permissions

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