Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 4 of 4

Thread: Attachments and Web Services

  1. #1
    Senior Member fid509's Avatar
    Join Date
    Feb 2002
    Location
    Brussels
    Posts
    381

    Default Attachments and Web Services

    Hello,

    I want to transfer the attachments in an incident to an interaction in another ServiceCenter via Web Services. I read the pdf Best Practices for Publishing and Consuming Web Services with ServiceCenter® and on page 44 there is an example on how it should work. I modified it a bit (see attachemnt) so it would go to interactions instead of incidents. I can read the current incident attachment (I get the name, length and type) and the inetraction is created on the other side but without attachment. There are no error messages. What am I doing wrong here?

    SC 6.2.4

    Thx,
    Attached Files

  2. #2
    Senior Member mateuszk's Avatar
    Join Date
    Nov 2006
    Posts
    302

    Default

    Hi,

    in your place I'd try opening the interaction first
    and then, in another request (the response will return interaction number
    among other fields), attaching the document to it.

    I might be off, but it's a known fact that you cannot attach a file
    to an interaction before it's assigned an incident.id number.

    Let me know if this helps, if not I'll revise my own code for the attachments
    and post it here.

  3. #3
    Senior Member fid509's Avatar
    Join Date
    Feb 2002
    Location
    Brussels
    Posts
    381

    Default

    Hello,

    You are correct but even if try it your way, the attachments are still not present. Help please...

    thx,
    Geert

  4. #4
    Senior Member mateuszk's Avatar
    Join Date
    Nov 2006
    Posts
    302

    Default

    I haven't seen your library created by WSDL2JS but ...
    is there a chance, you're sending requests to 13080 (servlet) listener?

    In that case:

    ServiceCenter 6.2 JavaScript for WebServices consumption supports attachments only in DIME. Responses of ServiceCenter JavaScript WebServices request with MIME attachments will be ignored.
    To use ServiceCenter Javascript to consume ServiceCenter WebServices with attachments, go through the "/sc61server" servlet. For example, to run WSDL2JS to consume IncidentManagement, use "http://<schost>:<port>/sc61server/PWS/IncidentManagement?wsdl".
    Last edited by mateuszk; 2008-06-17 at 13:42.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts