Hi,

I am using JAXB2 for generating stubs, it genereate stubs, I am not sure whether impl stubs are required or not. JAXB is not generating impl, where xmlbeans genereate impl.

Code Snippet:

Code:
<bean id="wsMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
    	<property name="contextPath" value="com.projects.csm.schema" />
    </bean>
     <bean id="wsmessageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory" />
 	
 	
	 <bean id="wsMessageSender" class="org.springframework.ws.transport.http.CommonsHttpMessageSender" />

	<bean id="wsClient" class="com.projects.csm.WSClient">
		<description> WebService client</description>
		<property name="defaultUri" value="${webService.uri}" />
		<property name="marshaller" ref="wsMarshaller" />
		<property name="unmarshaller" ref="wsMarshaller" />
		<property name="messageSender" ref="wsMessageSender" />
		<property name="messageFactory" ref="wsmessageFactory" />
	</bean>
	
	<bean id="webServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
	    <property name="messageFactory" ref="wsmessageFactory" />
	   	<property name="messageSender" ref="wsMessageSender" />
	</bean>

Code:
WebServiceTemplate wsTemplate = getWebServiceTemplate();
		 GetCustomerBalanceDocument getCustomerBalanceDocument = GetCustomerBalanceDocument.Factory.newInstance();
		 GetCustomerBalanceDocument.GetCustomerBalance getCustomerBalance=getCustomerBalanceDocument.addNewGetCustomerBalance();
		 getCustomerBalance.setAccountNumber(accNo);
		   
	
		 GetCustomerBalanceResponseDocument response = null;
		response = (GetCustomerBalanceResponseDocument) wsTemplate.marshalSendAndReceive(getCustomerBalanceDocument,
				new WebServiceMessageCallback() {
					public void doWithMessage(WebServiceMessage message) {
						((SoapMessage) message).setSoapAction("http://test.com/CommunicationChannels/getCustomerBalance");
						
					}
				});
Request body is not added with actual request:

[QUOTE<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:getCustomerBalance xmlns:ns2='http://test.com/CommunicationChannels'/></env:Body></env:Envelope>[/QUOTE]