function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
k209310k209310 

Creating Attachment Error

Hi there.

I seem to be having difficulty storing an Attachment object. The object creates without any problems however whn I come to write the object to AppExchage I get the following. I am using create to try and store the object.

Code:
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
 faultSubcode: 
 faultString: Unable to find a de-serializer for the type {http://www.w3.org/2001/XMLSchema}byte
 faultActor: 
 faultNode: 
 faultDetail: 
 {http://xml.apache.org/axis/}stackTrace:Unable to find a de-serializer for the type {http://www.w3.org/2001/XMLSchema}byte

 I am creating the Body using a Standard byte[] as the API requires however the online documentation mentions base64Binary primitive types. Is this where Im going wrong? If not does anyone regognise the above error?

Any help is greatly appreciated.

Thanks

Chris



SuperfellSuperfell
Whatever tool you're using is claiming the type is xsd:byte which is a single byte, not an array, you should get a capture of the request, it wouldn't surprise me if its serializaing the array out as <body><byte>44</byte><byte>55</byte>.... rather than the expected base64Binary string.
k209310k209310
Thanks for the reply simon.

How would I go about 'Capturing the request'? and if the error is as you say do you have any idea I would go about fixing the problem?

Thanks

Chris
SuperfellSuperfell
There's plenty of different ways to do it, try SOAPScope, YATT or tcpTrace for starters. (see www.mindreef.com & www.pocketsoap.com

How to fix it would depend on what soap stack you're using.