dev@jax-ws.java.net

Re: Invoking a .NET web service using JAX-WS 2.0

From: Peter Hendry <peter.hendry_at_capeclear.com>
Date: Fri, 25 Aug 2006 20:39:55 +1200


Ryan LeCompte wrote:
Re: Invoking a .NET web service using JAX-WS 2.0
Hello Vivek,
 
I tried the latest nightly of JAXWS 2.0 RI as you indicated, however the problem still remains. The .NET endpoint still doesn't get its one-way operation invoked.
 
I then tried the JAXWS 2.0.1 M1 release as you suggested, however now I'm seeing a different problem when I attempt to invoke the one-way operation with the JAXWS client.
The following exception is thrown when the operation is invoked:
 
 
java.lang.RuntimeException: javax.xml.ws.WebServiceException: No Content-Type in the header!
        at com.example.ExampleStub.foo(ExampleStub.java:73)
I didn't change anything in the .NET 2.0 endpoint implementation.
 


This is a feature of .NET and one-ways. When the response has no content it sets ContentLength = 0 and does not provide a Content-Type (since there is no content). I think this is valid since no content can't really have a content-type that would be meaningful.

Pete