Hi,
I believe your SOAP code is not the problem, the documentation seems to be a little confusing about the use of the localsourcelocation.
From what I can tell, it does not seem to be (as one would assume at first) the path to the file on the CAPA server when using it from any other tool than the CAPA Invoke_SOAP_Method.
I was able to get the following code to work in SoapUI by actually attaching the file as a MIME attachment, as seems to be stated in the documentation.
If you are using the Invoke_SOAP_Method, you can set the file name in the MIME Attachment tab, otherwise I believe you will have to use platform-specific method to attach the file to the SOAP body.
I have attached an example from SOAPui.
Hope this helps,
Ian
Here is the "original" SOAP XML body:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:itp="http://www.ca.com/itpam">
<soapenv:Header/>
<soapenv:Body>
<itp:importFileParam>
<itp:auth>
<itp:user>USERNAME</itp:user>
<itp:password>PASSWORD</itp:password>
</itp:auth>
<itp:importLocation>/Sandbox/IanSBX/Tmp Stuff/</itp:importLocation>
<itp:isSetCurrent>true</itp:isSetCurrent>
<itp:isMakeAvailable>true</itp:isMakeAvailable>
<itp:overwriteAction>incrementObjectVersion</itp:overwriteAction>
</itp:importFileParam>
</soapenv:Body>
</soapenv:Envelope>
Here is the raw SOAP after I've attached the XML (in the SOAPui GUI):
POST https://automation.***.***/itpam/soap HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: multipart/related; type="text/xml"; start="<rootpart@soapui.org>"; boundary="----=_Part_4_832313225.1460408537647"
SOAPAction: "importObject"
MIME-Version: 1.0
Content-Length: 25244
Host: automation-dev.***.***
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_66)
------=_Part_4_832313225.1460408537647
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-ID: <rootpart@soapui.org>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:itp="http://www.ca.com/itpam">
<soapenv:Header/>
<soapenv:Body>
<itp:importFileParam>
<itp:auth>
<itp:user>USERNAME</itp:user>
<itp:password>PASSWORD</itp:password>
</itp:auth>
<itp:importLocation>/Sandbox/IanSBX/Tmp Stuff/</itp:importLocation>
<itp:isSetCurrent>true</itp:isSetCurrent>
<itp:isMakeAvailable>true</itp:isMakeAvailable>
<itp:overwriteAction>incrementObjectVersion</itp:overwriteAction>
</itp:importFileParam>
</soapenv:Body>
</soapenv:Envelope>
------=_Part_4_832313225.1460408537647
Content-Type: text/xml; charset=Cp1252; name="Empty Process.xml"
Content-Transfer-Encoding: binary
Content-ID: <Empty>
Content-Disposition: attachment; name="Empty Process.xml"; filename="Empty Process.xml"
<?xml version="1.0" encoding="UTF-8"?>
<C2OList><DocXML><?xml version="1.0" encoding="UTF-8"?>
<C2OObject><Workflow isContentNonModifiable="false" IsLockMetadata="false" isRunAsOwner="false" isSLAEnable="false"><ReferenceName>Empty Process</ReferenceName><C2OVersionSet isBaseLine="false" current="true" c2OVersionCount="0"><objectID>0</objectID><owner>******</owner><lastModifiedBy>******</lastModifiedBy><versionID>0</versionID><DateCreated>2016-04-11T16:56:07.231-04:00</DateCreated><DateModified>2016-04-11T16:56:20.793-04:00</DateModified><releaseNumber></releaseNumber><solutionName></solutionName></C2OVersionSet><C2OKeywordSet c2-oKeyword-count="0"><reference-type>Flowchart</reference-type><reference-path>Empty Process</reference-path><OID>4229</OID><ref-iD>5359</ref-iD><reference-name>Empty Process</reference-name></C2OKeywordSet><ReferencePath>Empty Process</ReferencePath><IsDeleted>false</IsDeleted><CheckedOutBy></CheckedOutBy><CurrentVersionID>0</CurrentVersionID><ReferenceType>Flowchart</ReferenceType><OID>0</OID><DisplayName>Empty Process</DisplayName><Owner>******</Owner><Description></Description><DocumentType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:java.lang.String">Flowchart</DocumentType><State>UnLocked</State><Version>0</Version><CreationDate>2016-04-11T16:56:07.231-04:00</CreationDate><ModifiedDate>2016-04-11T16:56:20.793-04:00</ModifiedDate><minAge>-1</minAge><minFailed>-1</minFailed><minRecent>-1</minRecent><isImported>false</isImported><isExported>false</isExported><isForCheckin>false</isForCheckin><isSaveOverride>true</isSaveOverride><HostName>76b49d1a-3697-4186-990e-346821d4783b</HostName><tempDocModifiedDate>2016-04-11T16:56:17.121-04:00</tempDocModifiedDate><isForceFullySave>false</isForceFullySave><Orchestrator>automation-dev.***.***</Orchestrator><WfDataset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="vmap"><const><readonly/></const><vmconst iskeyval="false"/><field isstdpar="false" hidefromoutput="false"><name>TouchpointName</name><display><page>System</page></display><cstring issysvar="true"><value></value><strconst max="2147483647" canbeblank="true" isjavacode="false" noOflines="0"><default></default></strconst></cstring></field><field isstdpar="false" hidefromoutput="false"><name>ServerName</name><display><page>System</page></display><cstring issysvar="true"><value></value><strconst max="2147483647" canbeblank="true" isjavacode="false" noOflines="0"><default></default></strconst></cstring></field><field isstdpar="false" hidefromoutput="false"><name>ServerId</name><display><page>System</page></display><cstring issysvar="true"><value></value><strconst max="2147483647" canbeblank="true" isjavacode="false" noOflines="0"><default></default></strconst></cstring></field><field isstdpar="false" hidefromoutput="false"><name>DisplayName</name><display><page>System</page></display><cstring issysvar="true"><value></value><strconst max="2147483647" canbeblank="true" isjavacode="false" noOflines="0"><default></default></strconst></cstring></field><field isstdpar="false" hidefromoutput="false"><name>InstanceUUID</name><display><page>System</page></display><cstring issysvar="true"><value></value><strconst max="2147483647" canbeblank="true" isjavacode="false" noOflines="0"><default></default></strconst></cstring></field><field isstdpar="false" hidefromoutput="false"><name>rootUUID</name><display><page>System</page></display><cstring issysvar="true"><value></value><strconst max="2147483647" canbeblank="true" isjavacode="false" noOflines="0"><default></default></strconst></cstring></field><field isstdpar="false" hidefromoutput="false"><name>CallerUser</name><display><page>System</page></display><cstring issysvar="true"><value></value><strconst max="2147483647" canbeblank="true" isjavacode="false" noOflines="0"><default></default></strconst></cstring></field><field isstdpar="false" hidefromoutput="false"><name>effectiveUser</name><display><page>System</page></display><cstring issysvar="true"><value></value><strconst max="2147483647" canbeblank="true" isjavacode="false" noOflines="0"><default></default></strconst></cstring></field><field isstdpar="false" hidefromoutput="false"><name>RuntimeROID</name><display><page>System</page></display><cstring issysvar="true"><value></value><strconst max="2147483647" canbeblank="true" isjavacode="false" noOflines="0"><default></default></strconst></cstring></field><field isstdpar="false" hidefromoutput="false"><name>InstanceName</name><display><page>System</page></display><cstring issysvar="true"><value></value><strconst max="2147483647" canbeblank="true" isjavacode="false" noOflines="0"><default></default></strconst></cstring></field><field isstdpar="false" hidefromoutput="false"><name>ParentProcessROID</name><display><page>System</page></display><cstring issysvar="true"><value></value><strconst max="2147483647" canbeblank="true" isjavacode="false" noOflines="0"><default></default></strconst></cstring></field><field isstdpar="false" hidefromoutput="false"><name>RootProcessROID</name><display><page>System</page></display><cstring issysvar="true"><value></value><strconst max="2147483647" canbeblank="true" isjavacode="false" noOflines="0"><default></default></strconst></cstring></field><field isstdpar="false" hidefromoutput="false"><name>ScheduledStartTime</name><display><page>System</page></display><cdate issysvar="true"><dateconst><mask default="true"><value>MM/dd/yyyy</value></mask></dateconst></cdate></field><field isstdpar="false" hidefromoutput="false"><name>StartDate</name><display><page>System</page></display><cdate issysvar="true"><dateconst date="true"><mask default="true"><value>MM/dd/yyyy</value></mask></dateconst></cdate></field><field isstdpar="false" hidefromoutput="false"><name>StartTime</name><display><page>System</page></display><cdate issysvar="true"><dateconst time="true"><mask default="true"><value>MM/dd/yyyy</value></mask></dateconst></cdate></field><field isstdpar="false" hidefromoutput="false"><name>EndDate</name><display><page>System</page></display><cdate issysvar="true"><dateconst date="true"><mask default="true"><value>MM/dd/yyyy</value></mask></dateconst></cdate></field><field isstdpar="false" hidefromoutput="false"><name>EndTime</name><display><page>System</page></display><cdate issysvar="true"><dateconst time="true"><mask default="true"><value>MM/dd/yyyy</value></mask>&