Custom encoding byte array for SOAP
===

Hopefully, I am somewhat clear with this question.  Basically, we are sending a byte array to a web service using SOAP.  It was using the base64encoding and was being blocked by security because of the backslash character.  So, I changed it to hexBinary and it works fine but I would prefer to use base64encoding to send less data and to customize the coding by using a custom alphabet that doesn't use the backslash character.

I have the Custom Encoding written but I am confused how to go about linking the two.

Here's what I have now:

[WebMethod]
[SoapHeader("AuthHeader", Direction = SoapHeaderDirection.In)] 
public void SyncValuesToService(int user, int val, [System.Xml.Serialization.XmlElementAttribute(DataType="hexBinary")] byte[]  cmData)

cmData is what I changed from default to hexBinary.  How can I use custom DataType there so I can apply my custom encoding?

Thank you, hope it sounds somewhat clear.