Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

FileAttachment on new Incident creation (PHP SOAP) (6 Comments)

$
0
0

Topic by Martijn Coenen

Content

Hello dear colleagues,

For one of our customers we are using the Connect Web Services SOAP API to connect his 'remote' site to create new incidents in RN. We build our soap connection for this and inserting contact, incidents and custom fields, but we have some trouble with the FileAttachment. 

Reading the documentation for the Service, I understand we can add the FileAttachment with Base64 data to the incident. 

In a simplified way, I build the XML with the following inside the <RNObjects> of the <create> action:

<ns4:FileAttachment>

                        <ns4:FileName>test1.jpg</ns4:FileName>
                        <ns4:Data>--- the base64 encoded image --</ns4:Data>
</ns4:FileAttachment>

According to the documentation, only FileName should be required. The only result when I add the above inside my SOAP XML is the famous "Data element in the Message is NULL", in normal language the XML is bad.

I'm getting a bit stuck here. We build our magic in PHP and so far have no trouble except adding this file to a new Incident. I guess it's a easy issue and I'm just not looking in the right direction or thinking the wrong way, so any hint or direction would be most welcome.

 

 

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles