title: Setting binary value (byte array) to an SOAP element when callling a service
body: <p>I am calling a soap service using java, i do not have any problems with text nodes, but one parameters expects a file content in byte array format. (Not a string form of the file in base64 encoded)</p>
  
  <p>How can I set a binary content (byte array) to a soap message?</p>
  
  <pre><code>QName q1 = new Qname(qnameNS, "expectstextvalue", prefix);
  SOAPElement e1 = bodyElement.addChildElement(q1);
  e1.addTextNode("simple text value");
  
  QName q2 = new Qname(qnameNS, "expectsbytevalue", prefix);
  SOAPElement e2 = bodyElement.addChildElement(q2);
  
  //how can i set byte values to a soap message?
  //e1.setByte() 
  </code></pre>
  
  <p>The wsdl for these parameters are the following:</p>
  
  <pre><code>&lt;xs:element name="expectstextvalue" type="xs:string" nillable="true" minOccurs="0"/&gt;
  &lt;xs:element name="expectsbytevalue" type="xs:base64Binary" nillable="true" minOccurs="0"/&gt;
  </code></pre>