title: How to pass a value to xsd:string RPC encoded SOAP xml parameter in java?
body: <p>This is The XML used in WSDL which shows in SOAPUI.</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bran="BDetail"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;bran:sentIbBTyp soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;
           &lt;pBnCode xsi:type="xsd:string"&gt;234&lt;/pBnCode&gt;
        &lt;/bran:sentIbBTyp&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>I used this java code to pass values</p>
  
  <pre><code>MessageFactory messageFactory = MessageFactory.newInstance();
  SOAPMessage soapMessage = messageFactory.createMessage();
  
  SOAPPart soapPart = soapMessage.getSOAPPart();
  SOAPEnvelope soapEnvelope = soapPart.getEnvelope();
  soapEnvelope.addNamespaceDeclaration("xsd",
          "http://www.w3.org/2001/XMLSchema");
  soapEnvelope.addNamespaceDeclaration("xsi",
          "http://www.w3.org/2001/XMLSchema-instance");
  soapEnvelope.addNamespaceDeclaration("bran", "BDetail");
  SOAPBody soapBody = soapEnvelope.getBody();
  
  SOAPElement soapElement = soapBody.addChildElement(
          "sentIbBTyp", "bran");
  soapElement
          .setEncodingStyle("http://schemas.xmlsoap.org/soap/encoding/");
  
  SOAPElement elementBankCode = soapElement.addChildElement("pBnCode");
  elementBankCode.setValue("234");
  </code></pre>
  
  <p>I got this error. Please help me...</p>
  
  <pre><code>SOAP error No Deserializer found to deserialize a ':pBnCode' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'. [java.lang.IllegalArgumentException]
  </code></pre>