Hi,
          We are getting below exception when trying to invoke web service with 
code like ... What could be the problem?

        Dispatch<DOMSource> resourceMex = null;
            resourceMex = service.createDispatch(WSProxyUtil.PORT_NAME_MEX, 
DOMSource.class, Service.Mode.PAYLOAD,
                    new AddressingFeature());

        
resourceMex.getRequestContext().put(BindingProvider.SOAPACTION_URI_PROPERTY, 
http://www.w3.org/2010/08/ws-mex/GetMetadata/Request);
        
resourceMex.getRequestContext().put(BindingProvider.SOAPACTION_USE_PROPERTY, 
Boolean.valueOf(true));
        resourceMex.getRequestContext().put(Dispatch.ENDPOINT_ADDRESS_PROPERTY, 
moduleURI);


The metadata specified on the request message is not supported by the endpoint..
javax.xml.ws.soap.SOAPFaultException: The metadata specified on the request 
message is not supported by the endpoint.
                at 
org.apache.cxf.jaxws.DispatchImpl.mapException(DispatchImpl.java:285)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:388)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:241)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
com.ca.ucf.remote.ws.client.WSModuleProxy.getMetadata(WSModuleProxy.java:645)[80:com.ca.ucf.core.bind:3.3.0.50]
                at java.util.concurrent.Executors$RunnableAdapter.call(Unknown 
Source)[:1.6.0_25]
                at 
java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)[:1.6.0_25]
                at java.util.concurrent.FutureTask.runAndReset(Unknown 
Source)[:1.6.0_25]
                at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
 Source)[:1.6.0_25]
                at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
 Source)[:1.6.0_25]
                at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
 Source)[:1.6.0_25]
                at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)[:1.6.0_25]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown 
Source)[:1.6.0_25]
                at java.lang.Thread.run(Unknown Source)[:1.6.0_25]
Caused by: org.apache.cxf.binding.soap.SoapFault: The metadata specified on the 
request message is not supported by the endpoint.
                at 
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)
                at 
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)
                at 
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
                at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
                at 
org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:799)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1627)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1494)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1402)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:649)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:533)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.endpoint.ClientImpl.invokeWrapped(ClientImpl.java:354)[80:com.ca.ucf.core.bind:3.3.0.50]
                at 
org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:381)[80:com.ca.ucf.core.bind:3.3.0.50]

Regards
Raman

Reply via email to