Skip to content

Instantly share code, notes, and snippets.

View afawcett's full-sized avatar

Andrew Fawcett afawcett

View GitHub Profile
@afawcett
afawcett / SomeClassA.cls
Created February 2, 2013 16:24
Sample code used to test a prototype Apex Analysis tool using the new Spring'13 Tooling API.
public class SomeClassA
{
public static void someMethod()
{
SomeClassB.someMethodB();
someOtherMethod();
}
public static void someOtherMethod()
{
@afawcett
afawcett / gist:4112895
Created November 19, 2012 19:00
Sample Export from SObjectDataLoader
{
"RecordSetBundles": [
{
"Records": [
{
"attributes": {
"type": "ObjectA__c",
"url": "/services/data/v26.0/sobjects/ObjectA__c/a00d0000007kUmsAAE"
},
"CreatedDate": "2012-11-19T18:32:50.000+0000",
@afawcett
afawcett / XAVWebServices.wsdl
Created November 5, 2012 09:07
Apex Friendly Version of UPS XAV Service
<?xml version="1.0" encoding="UTF-8"?>
<!-- UPS XAV Service WSDL Release Date Dec 29, 2007 -->
<!-- Copyright 2007-2008 United Parcel Service of America, Inc. All rights reserved. -->
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:error="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:xav="http://www.ups.com/XMLSchema/XOLTWS/xav/v1.0" xmlns:tns="http://www.ups.com/WSDL/XOLTWS/XAV/v1.0" targetNamespace="http://www.ups.com/WSDL/XOLTWS/XAV/v1.0">
<wsdl:types>
<!-- This schema defines the UPS Security header used for authorization purposes -->
<xsd:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xsd:element name="UPSSecurity">
<xsd:complexType>