those two headers are in a separate message only..for your rerference code
snippet is below

Messgae Part :

   <wsdl:message name="header">
            <wsdl:part name="appIdHeader" element="e:applicationId" />
            <wsdl:part name="transIdHeader" element="e:transactionId" />
    </wsdl:message>

Binding Part :

<wsdl:operation name="getEmployeeDetails">
   <soap:operation soapAction="" style="document" />
    <wsdl:input name="getEmployeeDetails">
      <soap:header message="e:header" part="appIdHeader"   use="literal" />
      <soap:header message="e:header" part="transIdHeader" use="literal" />
      <soap:body parts="parameters" use="literal" />
    </wsdl:input>
    <wsdl:output name="getEmployeeDetailsResponse">
      <soap:body use="literal" />
    </wsdl:output>
</wsdl:operation>

I have done anything wrong here...



dkulp wrote:
> 
> On Thursday 04 December 2008 12:25:27 am ysahuly wrote:
>> I have created an interface and implementation class, with that i created
>> the WSDL using java2WSDL then i was manually added the implicit soap
>> header
>> to the WSDL(Two headers).
> 
> For this part, did you put the two headers into the same message or did
> you 
> create a new message?   That's important.   If they are in the same
> message, 
> the assumption is that they were code generated into params on the method.   
> If they are in a separate message, it should be OK.
> 
> Dan
> 
> 
>> Also included the wsdl location in the 
>> cxf.config.xml.. I have deployed the war in the JBOSS, still now no
>> probs....but when i try to hit a service in server it fails to send a
>> response.I got the following error...
>>
>>
>>  wrong number of arguments while invoking public
>> com.cxf.sample.api.Employee
>> com.cxf.sample.service.EmployeeService.getEmployeeDetails(long) with
>> params
>> [1, null, null].
>>
>>         at
>> org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.
>>java:121) at
>> org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMe
>>thodInvoker.java:83) at
>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:
>>113) at
>> org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:54)
>>         at
>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:
>>68) at
>> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerIn
>>terceptor.java:56) at
>> org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.ja
>>va:37) at
>> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceI
>>nvokerInterceptor.java:92) at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
>>n.java:220) at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationO
>>bserver.java:78) at
>> org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestinati
>>on.java:92) at
>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(Servle
>>tController.java:285) at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController
>>.java:168) at
>> org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServl
>>et.java:175) at
>> org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServl
>>et.java:153) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>>nFilterChain.java:252) at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>>hain.java:173) at
>> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.j
>>ava:96) at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>>nFilterChain.java:202) at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>>hain.java:173) at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>>ava:213) at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
>>ava:178) at
>> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoc
>>iationValve.java:175) at
>> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java
>>:74) at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
>>6) at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10
>>5) at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
>>a:107) at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>         at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>>         at
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.process
>>Connection(Http11BaseProtocol.java:664) at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.ja
>>va:527) at
>> org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThr
>>ead.java:112) at java.lang.Thread.run(Thread.java:595)
>> Caused by: java.lang.IllegalArgumentException: wrong number of arguments
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>>
>>
>> I don't know why it has been throwing..Eventhough i was written a
>> ObjectFactory with that two soap headers...Whether i need to write any
>> interceptors to process this otherwise need to specify any binding to
>> that
>> headers...
> 
> 
> 
> -- 
> Daniel Kulp
> [EMAIL PROTECTED]
> http://dankulp.com/blog
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Exception-due-to-implicit-soap-headers-tp20827556p20929186.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to