CA Service Management

Expand all | Collapse all

WebServices createAttachment issue in SoapUI

  • 1.  WebServices createAttachment issue in SoapUI

    Posted Mar 14, 2016 08:39 AM

    Hello team,

     

    I'm facing error while trying to create attachemnt via WebServices following this doc: http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec1802141.aspx

    Problem is known, described many times and easy to resolve if using IDE,

    here is steps to resolve this on Java: http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec572713.aspx

    But my problem that our 3rd party software is designed to use SoapUI and as I understood there is no way to switch from DIME to MIME.

    Is anyone faced this situation?

     

    Regards,

    Timur



  • 2.  Re: WebServices createAttachment issue in SoapUI

    Posted Mar 14, 2016 08:44 AM

    What is the exact error you are getting?

     

    What is the SoupUI version in use?



  • 3.  Re: WebServices createAttachment issue in SoapUI

    Posted Mar 14, 2016 08:51 AM

    thank you for the reply Brian,

    error is: Client received SOAP Fault from server: Error - could not perform the operation, policy limit exceeded

    I asked my colleague about version they using, I'll try to update information soon.

    Updated: Soap UI 5.2.1



  • 4.  Re: WebServices createAttachment issue in SoapUI
    Best Answer

    Posted Mar 14, 2016 06:24 PM

    Hi, i had no troubles attaching files using SOAP UI, i think both formats DIME and MIME are supported by SDM SOAP. Here are the calls i used

     

    <soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
      
    <soapenv:Header/>
      
    <soapenv:Body>
         
    <ser:createAttachment>
            
    <sid>686164257</sid>
            
    <repositoryHandle>doc_rep:1002</repositoryHandle>
            
    <objectHandle>cr:400702</objectHandle> 
            
    <description>test</description>
            
    <fileName>error.log</fileName>
         
    </ser:createAttachment>
      
    </soapenv:Body>
    </soapenv:Envelope> 
    
    
    


  • 5.  Re: WebServices createAttachment issue in SoapUI

    Posted Mar 14, 2016 06:31 PM

    Each SOAP policy under access control can contain operation limit that is allowed per hour maybe you are hiting this limit?



  • 6.  Re: WebServices createAttachment issue in SoapUI

    Posted Mar 14, 2016 11:39 PM

    Hi Gutis,

    nope I haven't any operations limit, seems that problem were fixed in newer version, but i'm still on 12.7

    Regards,

    cdtj



  • 7.  Re: WebServices createAttachment issue in SoapUI

    Posted Mar 15, 2016 01:45 AM

    Hi, i just checked project archive, and it seems that we did not have any problems with attachments even in sd126. I also found following notes in my documentation from this project:

    Although DIME is officially supported and documented by CA, recent research shows that SOAP with Attachments (SwA) can also be used with “crateAttachment” web service method

    As far as i remember we used SOAP UI to validate this since SOAP UI does not support DIME:

    Here is form soap ui documentation https://www.soapui.org/soap-and-wsdl/headers-and-attachments.html

    SoapUI supports the following technologies for working with files and attachments:

    • MTOM - a technology for optimized transfer of binary data in SOAP Messages
    • SOAP with Attachments in accordance with Attachments Profile - a MIME-based attachment mechanism for the SOAP/HTTP binding
    • Inline files for binary content - soapUI specific functionality for simplifying handling of binary message content

    Since the industry, for now, seems to be moving towards MTOM, we currently have no plans for supporting any other attachment technology, for example DIME.

     

    So this what makes me think that it is not related to DIME and MIME support



  • 8.  Re: WebServices createAttachment issue in SoapUI

    Posted Mar 15, 2016 03:33 AM

    I have found one more tech doc: http://downloads2.ca.com/ftporders/105246/11005142/nt/qi89107/QI89107.D34 and symtomps described there looks very close to my own.

    Now I'm downloading soapui to test it by myself, thanks for information you provided.



  • 9.  Re: WebServices createAttachment issue in SoapUI

    Posted Mar 15, 2016 06:04 AM

    Have tested Soap UI, error displaying when I'm trying to define file as local path:

    <fileName>c:\files\file.txt</fileName>

    but working well for cached in Soap UI files:



  • 10.  Re: WebServices createAttachment issue in SoapUI

    Posted Nov 14, 2016 12:13 PM

    Hi team,

     

    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.

     

    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.

    Richard