Gedcom Upload

The GedcomUpload operation is used to upload a gedcom file to the OneGreatFamily system.

URI

REST URI [POST]:
/v11.02/Gedcom.svc/GedcomUpload?SessionId={sessionId}

Content-Type: text/raw

Example

Request POST
http://wsdev.onegreatfamily.com/v11.02/Gedcom.svc/GedcomUpload?SessionId=113434515134543151134
Request Headers
Content-Type: text/raw
Request Payload (in this case it is the gedcom file contents  below it shows a partial file
0 HEAD
1 SOUR ANSTFILE
1 DEST PAF
1 FILE GEDCOM4.ged
1 GEDC
2 VERS 5.5
2 FORM LINEAGE-LINKED
1 CHAR ANSEL
1 SUBM @SUB01@
1 SUBN @N01@
0 @SUB01@ SUBM
0 @N01@ SUBN
0 @I1000100564437@ INDI
1 NAME Henry Ii King Of Castile And /Leon/
1 SEX M
1 _ind_id 1000100564437
1 BIRT
2 DATE ABT. 1333
2 PLAC , Seville, , Spain
1 DEAT
2 DATE 1379
1 _fatherId 1000100563241
1 _motherId 1000100564434
1 FAMC @F1@
0 @F1@ FAM
1 MARR
2 PLAC Not married
1 CHIL @I1000100564437@
1 HUSB @I1000100563241@
1 WIFE @I1000100564434@
0 @I1000100563241@ INDI.............. 
Success Response Payload
<Result xmlns="http://schemas.datacontract.org/2004/07/OGF.WS.Data">
	<Code>0</Code>
	<Message>Success</Message>
	<Value i:type="a:unsignedLong">120</Value>
</Result>
Failed Response Payload
<Result xmlns="http://schemas.datacontract.org/2004/07/OGF.WS.Data">
	<Code>27001</Code>
	<Message>Your developer Id does not have permissions to make this call</Message>
</Result>
Fault Response Payload
<RestFault xmlns="http://schemas.datacontract.org/2004/07/OGF.WS.Data">
	<ErrorCode>551</ErrorCode>
	<FaultMessage>An unhandled exception has occurred</FaultMessage>
</RestFault>

Query String Parameters

Name Description Required

SessionId

The current session Id

Type: string

Default: None

Yes

Response Elements

Name Description

Result

This operation returns a Result Entity

Type: Result

Result.Value

Returns a ulong which is the jobId for the gedcom upload

Type: ulong

HTTP Status Code

The Web Server returns a status code which indicates if the operation was successful. Anything other than 200 should be regarded as a failure.

HTTP Status Code of 417

The Web Server threw an exception and contains a RestFault entity. Retrieve the RestFault from the Webexception response property.