Gedcom Upload

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

Version

2011-02-02

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.............. 
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

JobStatus

This operation returns a JobStatus aggregate upon success. Otherwise an error is returned.

Type:JobStatus

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 aggregate. Retrieve the RestFault from the Webexception response property.