A null value for a Dispatch invocation using the XML/HTTP binding should be 
acceptable while using HTTP GET method
------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-4145
                 URL: https://issues.apache.org/jira/browse/AXIS2-4145
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
    Affects Versions: nightly
         Environment: JDK 1.5
Windows XP
Axis2 SNAPSHOT
            Reporter: Ivan


While using HTTP GET, the null value for a Dispatch invocation using the 
XML/HTTP binding should be acceptable.
Currently, it always throws an Exception, saying 
...
Caused by: java.lang.Throwable: The parameter cannot be a null value for a 
Dispatch invocation using the XML/HTTP binding.
        at 
org.apache.axis2.jaxws.client.dispatch.BaseDispatch.getProtocolException(BaseDispatch.java:437)
        ... 2 more
Code Fragment :
Service service = Service.create(GREETER_SERVICE);
        service.addPort(HTTP_GREETER_PORT, HTTPBinding.HTTP_BINDING,
                
"http://localhost:8080/jaxws-provider/provider/http/source/sayhi?value=geronimo";);
        Dispatch<Source> dispatch = service.createDispatch(HTTP_GREETER_PORT, 
Source.class, Service.Mode.MESSAGE);
        Map<String, Object> requestContext = dispatch.getRequestContext();
        requestContext.put(MessageContext.HTTP_REQUEST_METHOD, "GET");
        dispatch.invoke(null);


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to