What you are describing is certainly doable through the API, but I'm not sure exactly how to do it without the API....have you tried mapping that string to an attachment field on the incoming web service?
Thanks for you reply.
My bad luck as I have never used API before. How should we go about it with API's ...any doc or guide which could help me in this?
I tried to map our client web service attachment element(string type) to our attachment field(present on staging form) but it's giving me an error message of incompatible data types.
well....if you've never used the API before, it might be a daunting task...but I would suggest a Java Plugin...this plugin would be able to accept either an attachment and return it as a string, or vis versa...wouldn't be too difficult of a plugin to write...and I might actually do just that for you ...but I'm a bit swamped at the moment, so wouldn't be able to do something like that immediately....
Well as I could not complete it today, so I have weekend's time to do it by Monday.
Please guide whenever you get some time, in the meantime I will explore more on Plugin's and API's.
thanks once again,
in your arserver\api\javaplugins there are a number of 'sample*.jar' files including one named samplesrc.jar, which contains all of the source for the other jar files....the one that should be of most interest is the FilterAPISample.java file, as this is the type of plugin you would want to create.
Java API Docs are located in the arserver\api\lib\ardoc*.jar file for your version, just unzip this jar file and you will have all of the api docs available.
Thanks for the information,
I am trying to do it through this link, let's see if I could do it both ways
But the field attachmentorgSize is missing in the web service shared by our client .
Their web service only contains attachment name and attachment data both as string types
Due to the fact that you don't have everything that you need, you will need to play with it a bit and see what works...
I tried using soap ui to send data in encoded format and it's getting saved in my remedy ticket as correct attachment in a readable format just as mentioned in the link.
But the problem is when I am consuming our client web service, at that time I am unable to map it to my base64binary field. Maybe at that time that plugin would be needed.
all that the plugin would be doing is essentially converting a string to a base64Binary object....honestly I'm not 100% sure how to do that...but I'm positive that it's possible
Our client has finally agreed to send data on our published web service in base64binary format.
Now the problem remains is to map their string type attachment field to our base64binary field.
They are not ready to change their web service attachment data type from string to base64binary.
I tried to make sample filter api working but couldn't..
What should we do to make it working..I extracted it in Ar server installation directory...and changed ar.cfg.....
modified pluginsvr.xml also....
then I imported filterapi def file into developer studio....
still I am getting error message that SampleFilterAPi could not be found...
you will want to check your arjavaplugin.log file to verify that the plugin loaded properly.