Hi,
I'm running with WSIT Milestone 4 (2007-04-09) with J2EE 5 and when I'm
trying to remove the endpoint address property in the RequestContext Map
I get this error:
[java] Exception in thread "main"
java.lang.IllegalArgumentException
[java] at
com.sun.xml.ws.client.RequestContext.setEndPointAddressString
(RequestContext.java:138)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at
com.sun.xml.ws.api.PropertySet$MethodAccessor.set(PropertySet
.java:282)
[java] at
com.sun.xml.ws.api.PropertySet.remove(PropertySet.java:360)
[java] at
com.sun.xml.ws.client.RequestContext$MapView.remove(RequestCo
ntext.java:356)
My code:
BindingProvider stub = (BindingProvider)myService;
Map <String, Object> requestContext = stub.getRequestContext();
requestContext.remove(javax.xml.ws.BindingProvider.ENDPOINT_ADDRESS_PROP
ERTY);
This worked fine with the old JWSDP 2.0. But now I get the error above.
I have added the WSIT jars to my endorsed lib.
Regards
Erik Eriksson