I'm trying to test with SoapUI 5.2.1, and it's throwing me the same error as you indicated at the beginning of the post WebServices createAttachment issue in SoapUI .
I have validated everything the community says, in fact validate that I could attach files to the ticket.
But when trying to do the tests for the wsdl, it throws me that error: can not perform the operation; Policy limit exceeded.
Note: I don't modify the .java file, since I have read that CASDM 14.1 cum 2, supports DIME and MIME format.
Thank you very much for the help.
Just to make certain, are you able to perform other web services tasks, for example can you create a ticket?
Can you also confirm if you there are any duplicate users who share the same userid that you are using to generate the sid, and also that the case of the username matches exactly to what you are using?
Also as a note here's the documentation on web services and attachments:
Web Services Attachment-Related Methods - CA Service Management - 14.1 - CA Technologies Documentation
1. To perform the tests, I have mounted a virtual machine where only has the CA SDM cum 2, so it discards duplicate users, and if the user exactly matches.
2. I already read the documentation, and in fact I have reviewed other cases similar to what is happening to me.
But I have not been able to solve this fault yet.
Should I modify the .java file or not?There are pages that indicate; One with MIME and one with DIME. Are both .java files modified?MIME: Knowledge Base Articles DIME: Web Services Attachment-Related Methods - CA Service Management - 14.1 - CA Technologies DocumentationThanks,Richard
There are pages that indicate; One with MIME and one with DIME. Are both .java files modified?MIME: Knowledge Base Articles DIME: Web Services Attachment-Related Methods - CA Service Management - 14.1 - CA Technologies DocumentationThanks,Richard
DIME: Web Services Attachment-Related Methods - CA Service Management - 14.1 - CA Technologies Documentation
Hi, You usualy get this error when there is no attachment passed to WebServices. If you think that it will be taken from c:\eula.1041 You are wrong in soap ui you need to add attachment to request:
And here is your error withot attachment:
How big is the file you are trying to attach via web services? The reason I ask is that if you use the DIME method, you might be hitting a 10MB limit resulting in the 'policy limit' error you are getting. Thus you will need to use the MIME encapsulation which usually resolves that issue
I am testing with a txt file of 1KB.Proceed to verify the .java file, to see the method used. And I'm warning you of the results.Regards,Richard
Is it working for you via SOAP UI?
Yes, I am working with SoapUI 5.2.1
Then i still have suspicion that you are not attaching attachment to request payload. Since in Your request screenshot i see that you in fileName tag have specified full path instead of file name. T
Could you attach screenshot with your request. With the attachment tab visible as in my screenshot:
Attachment attachment where the error is observed when trying to enhance a CreateAttachx by SoapUI. As you already see the route to attach the doc. it was modified.
There is no file attached, you should do that by pressing button i have marked for you with the red rectangle
Retrieving data ...