users@jax-ws.java.net

Re: Dispatch.getResponseContext() - HTTP_RESPONSE_CODE is null

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Thu, 01 Dec 2005 08:31:15 -0800

Mark,
I can't seem to find this issue, where did you file it?

Mark Hansen wrote:

> I think this is a bug. I submitted it as Issue #92
>
> After doing a Dispatch.invoke(), I'm getting a null HTTP response code.
>
> Here is code snippet:
>
> dis.invoke(new StreamSource(new File(args[0])));
> Map<String, Object> respContext = dis.getResponseContext();
> Integer respCode =
> (Integer) respContext.get(MessageContext.HTTP_RESPONSE_CODE);
> System.out.println("HTTP Response Code: "+respCode);
>
> I get this to stdout:
>
> HTTP Response Code: null
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>

-- 
 - Doug