Hi,
I am using jaxb to generate the stub, after generating the stub, i am creating a soap request, but input is not getting added to the soap request.
the request goes likeCode:WebServiceTemplate wsTemplate = getWebServiceTemplate(); ObjectFactory objectFactory = new ObjectFactory(); GetCustomerBalance request = objectFactory.createGetCustomerBalance(); request.setAccountNumber(accNo); GetCustomerBalanceResponse response = null; response = (GetCustomerBalanceResponse) wsTemplate.marshalSendAndReceive(request, new SoapActionCallback("http://test.com/CommunicationChannels/getCustomerBalance"));
Am I doing wrong some where?Code:<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>
Please let me know what is the issue in this soap request.
Thanks in Advance
Sri


Reply With Quote