Example: PutUserImageProvisioningData

Previous Topic

Next Topic

Book Contents

Example: PutUserImageProvisioningData

Example request—In this example, the SOAP message is truncated in some areas for brevity.

The corresponding HREF tag value in the Body, shown in bold font, matches the content-ID for the binary data area.

POST /pfst45/sdk/provisioning/UserProvisioningService.svc/UserImage HTTP/1.1 MIME-Version: 1.0

Content-Type: multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";

boundary="uuid:3af29e87-12a5-44b7-a29e-e7c8e3855efa+id=2";start-info="application/soap+xml"

Host: localhost Content-Length: 10647 Expect: 100-continue

--uuid:3af29e87-12a5-44b7-a29e-e7c8e3855efa+id=2

Content-ID: <http://tempuri.org/0>

Content-Transfer-Encoding: 8bit

Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml"

<s:Envelope><s:Header><a:Action s:mustUnderstand="1">

http://www.phaseforward.com/InForm/2009/01/UserProvisioning/PutUserImageProvisioningData

</a:Action><a:MessageID>[snip]</a:MessageID><a:ReplyTo>

<a:Address>[anonymous/snipped]</a:Address></a:ReplyTo><a:To s:mustUnderstand="1">

https://localhost./pfst45/sdk/provisioning/UserProvisioningService.svc/UserImage</a:To>

<o:Security>[snipped ws-s details from sample]</o:Security></s:Header>

<s:Body><PutUserImageProvisioningData><TrialName>pfst45</TrialName><MedML>

<USERREF USERNAME="UserThatGetsImageAssigned"/></MedML>

<UserImage><xop:Include href="http://tempuri.org/1/634001109046674476"

xmlns:xop="http://www.w3.org/2004/08/xop/include"/></UserImage>

<ImageType>GIF</ImageType><Extensions/></PutUserImageProvisioningData></s:Body></s:Envelope>

--uuid:3af29e87-12a5-44b7-a29e-e7c8e3855efa+id=2

Content-ID: <http://tempuri.org/1/634001109046674476>

Content-Transfer-Encoding: binary

Content-Type: application/octet-stream

GIF87 [binary image data omitted from sample]

--uuid:3af29e87-12a5-44b7-a29e-e7c8e3855efa+id=2--

Send Feedback