'What should be done in Java Webservice implementation to match the requested namespace?

SOAP Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:char="http://charginggw.org/"> 
<soapenv:Header/> <soapenv:Body> 
<char:CheckBalance> <char:TransactionID>TESTEPIN_00000001</char:TransactionID> 
<char:Username>Username</char:Username> 
<char:Password>1a3ncyptedPassword80a9b2c73</char:Password> 
<char:DealerNumber>266000000</char:DealerNumber> <char:PIN>123456</char:PIN>
<char:ClientID>99</char:ClientID> 
</char:CheckBalance> </soapenv:Body>

Below Webservice implementation gives error when it's hit with above request.

Error: Unexpected wrapper element {http://charginggw.org/}CheckBalance found. Expected {http://services.at25.links.ers.seamless.com/}CheckBalance.

Webservice:


    package com.seamless.ers.links.at25.services;
    
    import com.seamless.ers.links.at25.response.CheckBalanceResponse;
    
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    
    @WebService
    public interface CheckBalanceService {
        @WebMethod(
                operationName = "CheckBalance"
        )
        CheckBalanceResponse checkBalance(@WebParam(name = "TransactionID") String transactionId, @WebParam(name = "Username") String username, @WebParam(name = "Password") String password, @WebParam(name = "DealerNumber") String dealerNumber, @WebParam(name = "PIN") String pin, @WebParam(name = "ClientID") String clientId);
    }

Please suggest what should be tuned in Webservice to entertain said request.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source