Skip to content

Instantly share code, notes, and snippets.

@ben-manes
Created December 10, 2011 08:20
Show Gist options
  • Save ben-manes/1454819 to your computer and use it in GitHub Desktop.
Save ben-manes/1454819 to your computer and use it in GitHub Desktop.
NDNC + Salesforce
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="https://telemarketing.donotcall.gov/DownloadSvc/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="https://telemarketing.donotcall.gov/DownloadSvc/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="https://telemarketing.donotcall.gov/DownloadSvc/">
<s:element name="Login">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="strCoID" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="strCoPwd" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="userType" type="tns:UserType" />
<s:element minOccurs="1" maxOccurs="1" name="enumCertify" type="tns:CertificationEnum" />
</s:sequence>
</s:complexType>
</s:element>
<s:simpleType name="UserType">
<s:restriction base="s:string">
<s:enumeration value="Representative" />
<s:enumeration value="Downloader" />
</s:restriction>
</s:simpleType>
<s:simpleType name="CertificationEnum">
<s:restriction base="s:string">
<s:enumeration value="Agree" />
<s:enumeration value="Disagree" />
</s:restriction>
</s:simpleType>
<s:element name="LoginResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="LoginResult" type="tns:Response" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="Response">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="code" type="tns:ResponseCodeEnum" />
<s:element minOccurs="0" maxOccurs="1" name="value" type="s:string" />
</s:sequence>
</s:complexType>
<s:simpleType name="ResponseCodeEnum">
<s:restriction base="s:string">
<s:enumeration value="LoginOK" />
<s:enumeration value="LoginFailed" />
<s:enumeration value="LoginDisabled" />
<s:enumeration value="SubmitOK" />
<s:enumeration value="SubmitFailed" />
<s:enumeration value="InvalidSessionToken" />
<s:enumeration value="InvalidCompanyID" />
<s:enumeration value="InvalidFileReqToken" />
<s:enumeration value="RequestPending" />
<s:enumeration value="RequestCompleted" />
<s:enumeration value="NoChanges" />
<s:enumeration value="NoFullDownloadPerformed" />
<s:enumeration value="SessionExpired" />
<s:enumeration value="DownloadOK" />
<s:enumeration value="AlreadyDownloadedToday" />
<s:enumeration value="CertificationNotAgreed" />
</s:restriction>
</s:simpleType>
<s:element name="SubmitDeltaFileRequest">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="fileFormat" type="tns:FileFormat" />
<s:element minOccurs="0" maxOccurs="1" name="strSessionToken" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="strCoID" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:simpleType name="FileFormat">
<s:restriction base="s:string">
<s:enumeration value="Xml" />
<s:enumeration value="Flat" />
</s:restriction>
</s:simpleType>
<s:element name="SubmitDeltaFileRequestResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="SubmitDeltaFileRequestResult" type="tns:Response" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetDeltaFileRequestStatus">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="strSessionToken" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="strRequestedFileToken" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="strCoID" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetDeltaFileRequestStatusResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetDeltaFileRequestStatusResult" type="tns:Response" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetDeltaFileUrl">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="strSessionToken" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="strRequestedFileToken" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="strCoID" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetDeltaFileUrlResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetDeltaFileUrlResult" type="tns:Response" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="CanGetFullFile">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="strSessionToken" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="strCoID" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="CanGetFullFileResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="CanGetFullFileResult" type="tns:Response" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetURLS">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="fileFormat" type="tns:FileFormat" />
<s:element minOccurs="0" maxOccurs="1" name="strSessionToken" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="strCoID" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetURLSResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetURLSResult" type="tns:ArrayOfString" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfString">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="s:string" />
</s:sequence>
</s:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="LoginSoapIn">
<wsdl:part name="parameters" element="tns:Login" />
</wsdl:message>
<wsdl:message name="LoginSoapOut">
<wsdl:part name="parameters" element="tns:LoginResponse" />
</wsdl:message>
<wsdl:message name="SubmitDeltaFileRequestSoapIn">
<wsdl:part name="parameters" element="tns:SubmitDeltaFileRequest" />
</wsdl:message>
<wsdl:message name="SubmitDeltaFileRequestSoapOut">
<wsdl:part name="parameters" element="tns:SubmitDeltaFileRequestResponse" />
</wsdl:message>
<wsdl:message name="GetDeltaFileRequestStatusSoapIn">
<wsdl:part name="parameters" element="tns:GetDeltaFileRequestStatus" />
</wsdl:message>
<wsdl:message name="GetDeltaFileRequestStatusSoapOut">
<wsdl:part name="parameters" element="tns:GetDeltaFileRequestStatusResponse" />
</wsdl:message>
<wsdl:message name="GetDeltaFileUrlSoapIn">
<wsdl:part name="parameters" element="tns:GetDeltaFileUrl" />
</wsdl:message>
<wsdl:message name="GetDeltaFileUrlSoapOut">
<wsdl:part name="parameters" element="tns:GetDeltaFileUrlResponse" />
</wsdl:message>
<wsdl:message name="CanGetFullFileSoapIn">
<wsdl:part name="parameters" element="tns:CanGetFullFile" />
</wsdl:message>
<wsdl:message name="CanGetFullFileSoapOut">
<wsdl:part name="parameters" element="tns:CanGetFullFileResponse" />
</wsdl:message>
<wsdl:message name="GetURLSSoapIn">
<wsdl:part name="parameters" element="tns:GetURLS" />
</wsdl:message>
<wsdl:message name="GetURLSSoapOut">
<wsdl:part name="parameters" element="tns:GetURLSResponse" />
</wsdl:message>
<wsdl:portType name="DownloadSvcSoap">
<wsdl:operation name="Login">
<wsdl:input message="tns:LoginSoapIn" />
<wsdl:output message="tns:LoginSoapOut" />
</wsdl:operation>
<wsdl:operation name="SubmitDeltaFileRequest">
<wsdl:input message="tns:SubmitDeltaFileRequestSoapIn" />
<wsdl:output message="tns:SubmitDeltaFileRequestSoapOut" />
</wsdl:operation>
<wsdl:operation name="GetDeltaFileRequestStatus">
<wsdl:input message="tns:GetDeltaFileRequestStatusSoapIn" />
<wsdl:output message="tns:GetDeltaFileRequestStatusSoapOut" />
</wsdl:operation>
<wsdl:operation name="GetDeltaFileUrl">
<wsdl:input message="tns:GetDeltaFileUrlSoapIn" />
<wsdl:output message="tns:GetDeltaFileUrlSoapOut" />
</wsdl:operation>
<wsdl:operation name="CanGetFullFile">
<wsdl:input message="tns:CanGetFullFileSoapIn" />
<wsdl:output message="tns:CanGetFullFileSoapOut" />
</wsdl:operation>
<wsdl:operation name="GetURLS">
<wsdl:input message="tns:GetURLSSoapIn" />
<wsdl:output message="tns:GetURLSSoapOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="DownloadSvcSoap" type="tns:DownloadSvcSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="Login">
<soap:operation soapAction="https://telemarketing.donotcall.gov/DownloadSvc/Login" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="SubmitDeltaFileRequest">
<soap:operation soapAction="https://telemarketing.donotcall.gov/DownloadSvc/SubmitDeltaFileRequest" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetDeltaFileRequestStatus">
<soap:operation soapAction="https://telemarketing.donotcall.gov/DownloadSvc/GetDeltaFileRequestStatus" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetDeltaFileUrl">
<soap:operation soapAction="https://telemarketing.donotcall.gov/DownloadSvc/GetDeltaFileUrl" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="CanGetFullFile">
<soap:operation soapAction="https://telemarketing.donotcall.gov/DownloadSvc/CanGetFullFile" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetURLS">
<soap:operation soapAction="https://telemarketing.donotcall.gov/DownloadSvc/GetURLS" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="DownloadSvcSoap12" type="tns:DownloadSvcSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="Login">
<soap12:operation soapAction="https://telemarketing.donotcall.gov/DownloadSvc/Login" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="SubmitDeltaFileRequest">
<soap12:operation soapAction="https://telemarketing.donotcall.gov/DownloadSvc/SubmitDeltaFileRequest" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetDeltaFileRequestStatus">
<soap12:operation soapAction="https://telemarketing.donotcall.gov/DownloadSvc/GetDeltaFileRequestStatus" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetDeltaFileUrl">
<soap12:operation soapAction="https://telemarketing.donotcall.gov/DownloadSvc/GetDeltaFileUrl" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="CanGetFullFile">
<soap12:operation soapAction="https://telemarketing.donotcall.gov/DownloadSvc/CanGetFullFile" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetURLS">
<soap12:operation soapAction="https://telemarketing.donotcall.gov/DownloadSvc/GetURLS" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="DownloadSvc">
<wsdl:port name="DownloadSvcSoap" binding="tns:DownloadSvcSoap">
<soap:address location="https://telemarketing.donotcall.gov/DownloadSvc/DownloadSvc.asmx" />
</wsdl:port>
<wsdl:port name="DownloadSvcSoap12" binding="tns:DownloadSvcSoap12">
<soap12:address location="https://telemarketing.donotcall.gov/DownloadSvc/DownloadSvc.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
<!-- Generates Scala bindings for XSD/WSDL schemas -->
<plugin>
<groupId>org.scalaxb</groupId>
<artifactId>scalaxb-maven-plugin</artifactId>
<version>0.6.6</version>
<configuration>
<packageNames>
<packageName>
<uri>https://telemarketing.donotcall.gov/DownloadSvc/</uri>
<package>com.drdnc.service.donotcall.generated</package>
</packageName>
<packageName>
<uri>urn:partner.soap.sforce.com</uri>
<package>com.drdnc.service.salesforce.generated</package>
</packageName>
</packageNames>
</configuration>
<executions>
<execution>
<id>scalaxb</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.scalaxb</groupId>
<artifactId>scalaxb_2.9.1</artifactId>
<version>0.6.7-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
// Generated by <a href="http://scalaxb.org/">scalaxb</a>.
package com.drdnc.service.donotcall.generated
/**
usage:
val obj = scalaxb.fromXML[com.drdnc.service.donotcall.generated.Foo](node)
val document = scalaxb.toXML[com.drdnc.service.donotcall.generated.Foo](obj, "foo", com.drdnc.service.donotcall.generated.defaultScope)
**/
object `package` extends XMLProtocol { }
trait XMLProtocol extends scalaxb.XMLStandardTypes {
val defaultScope = scalaxb.toScope(None -> "https://telemarketing.donotcall.gov/DownloadSvc/",
Some("ens") -> "urn:sobject.partner.soap.sforce.com",
Some("fns") -> "urn:fault.partner.soap.sforce.com",
Some("tns0") -> "urn:partner.soap.sforce.com",
Some("tns") -> "https://telemarketing.donotcall.gov/DownloadSvc/",
Some("xs") -> "http://www.w3.org/2001/XMLSchema",
Some("xsi") -> "http://www.w3.org/2001/XMLSchema-instance")
implicit lazy val GeneratedLoginFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.Login] = new DefaultGeneratedLoginFormat {}
implicit lazy val GeneratedUserTypeFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.UserType] = new DefaultGeneratedUserTypeFormat {}
implicit lazy val GeneratedCertificationEnumFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.CertificationEnum] = new DefaultGeneratedCertificationEnumFormat {}
implicit lazy val GeneratedLoginResponseFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.LoginResponse] = new DefaultGeneratedLoginResponseFormat {}
implicit lazy val GeneratedResponseFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.Response] = new DefaultGeneratedResponseFormat {}
implicit lazy val GeneratedResponseCodeEnumFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.ResponseCodeEnum] = new DefaultGeneratedResponseCodeEnumFormat {}
implicit lazy val GeneratedSubmitDeltaFileRequestFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.SubmitDeltaFileRequest] = new DefaultGeneratedSubmitDeltaFileRequestFormat {}
implicit lazy val GeneratedFileFormatFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.FileFormat] = new DefaultGeneratedFileFormatFormat {}
implicit lazy val GeneratedSubmitDeltaFileRequestResponseFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.SubmitDeltaFileRequestResponse] = new DefaultGeneratedSubmitDeltaFileRequestResponseFormat {}
implicit lazy val GeneratedGetDeltaFileRequestStatusFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.GetDeltaFileRequestStatus] = new DefaultGeneratedGetDeltaFileRequestStatusFormat {}
implicit lazy val GeneratedGetDeltaFileRequestStatusResponseFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.GetDeltaFileRequestStatusResponse] = new DefaultGeneratedGetDeltaFileRequestStatusResponseFormat {}
implicit lazy val GeneratedGetDeltaFileUrlFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.GetDeltaFileUrl] = new DefaultGeneratedGetDeltaFileUrlFormat {}
implicit lazy val GeneratedGetDeltaFileUrlResponseFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.GetDeltaFileUrlResponse] = new DefaultGeneratedGetDeltaFileUrlResponseFormat {}
implicit lazy val GeneratedCanGetFullFileFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.CanGetFullFile] = new DefaultGeneratedCanGetFullFileFormat {}
implicit lazy val GeneratedCanGetFullFileResponseFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.CanGetFullFileResponse] = new DefaultGeneratedCanGetFullFileResponseFormat {}
implicit lazy val GeneratedGetURLSFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.GetURLS] = new DefaultGeneratedGetURLSFormat {}
implicit lazy val GeneratedGetURLSResponseFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.GetURLSResponse] = new DefaultGeneratedGetURLSResponseFormat {}
implicit lazy val GeneratedArrayOfStringFormat: scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.ArrayOfString] = new DefaultGeneratedArrayOfStringFormat {}
implicit lazy val GeneratedSObjectFormat: scalaxb.XMLFormat[generated.SObject] = new DefaultGeneratedSObjectFormat {}
implicit lazy val GeneratedQueryResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.QueryResult] = new DefaultGeneratedQueryResultFormat {}
implicit lazy val GeneratedSearchResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SearchResult] = new DefaultGeneratedSearchResultFormat {}
implicit lazy val GeneratedSearchRecordFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SearchRecord] = new DefaultGeneratedSearchRecordFormat {}
implicit lazy val GeneratedGetUpdatedResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetUpdatedResult] = new DefaultGeneratedGetUpdatedResultFormat {}
implicit lazy val GeneratedGetDeletedResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetDeletedResult] = new DefaultGeneratedGetDeletedResultFormat {}
implicit lazy val GeneratedDeletedRecordFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DeletedRecord] = new DefaultGeneratedDeletedRecordFormat {}
implicit lazy val GeneratedGetServerTimestampResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetServerTimestampResult] = new DefaultGeneratedGetServerTimestampResultFormat {}
implicit lazy val GeneratedInvalidateSessionsResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.InvalidateSessionsResult] = new DefaultGeneratedInvalidateSessionsResultFormat {}
implicit lazy val GeneratedSetPasswordResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SetPasswordResult] = new DefaultGeneratedSetPasswordResultFormat {}
implicit lazy val GeneratedResetPasswordResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.ResetPasswordResult] = new DefaultGeneratedResetPasswordResultFormat {}
implicit lazy val GeneratedGetUserInfoResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetUserInfoResult] = new DefaultGeneratedGetUserInfoResultFormat {}
implicit lazy val GeneratedGetUserInfoResultSequence1Format: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetUserInfoResultSequence1] = new DefaultGeneratedGetUserInfoResultSequence1Format {}
implicit lazy val GeneratedGetUserInfoResultSequence2Format: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetUserInfoResultSequence2] = new DefaultGeneratedGetUserInfoResultSequence2Format {}
implicit lazy val GeneratedGetUserInfoResultSequence3Format: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetUserInfoResultSequence3] = new DefaultGeneratedGetUserInfoResultSequence3Format {}
implicit lazy val GeneratedLoginResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.LoginResult] = new DefaultGeneratedLoginResultFormat {}
implicit lazy val GeneratedStatusCodeFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.StatusCode] = new DefaultGeneratedStatusCodeFormat {}
implicit lazy val GeneratedErrorFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Error] = new DefaultGeneratedErrorFormat {}
implicit lazy val GeneratedSendEmailErrorFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SendEmailError] = new DefaultGeneratedSendEmailErrorFormat {}
implicit lazy val GeneratedSaveResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SaveResult] = new DefaultGeneratedSaveResultFormat {}
implicit lazy val GeneratedUpsertResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.UpsertResult] = new DefaultGeneratedUpsertResultFormat {}
implicit lazy val GeneratedMergeRequestFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.MergeRequest] = new DefaultGeneratedMergeRequestFormat {}
implicit lazy val GeneratedMergeResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.MergeResult] = new DefaultGeneratedMergeResultFormat {}
implicit lazy val GeneratedProcessRequestableFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.ProcessRequestable] = new DefaultGeneratedProcessRequestableFormat {}
implicit lazy val GeneratedProcessRequestFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.ProcessRequest] = new DefaultGeneratedProcessRequestFormat {}
implicit lazy val GeneratedProcessSubmitRequestFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.ProcessSubmitRequest] = new DefaultGeneratedProcessSubmitRequestFormat {}
implicit lazy val GeneratedProcessWorkitemRequestFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.ProcessWorkitemRequest] = new DefaultGeneratedProcessWorkitemRequestFormat {}
implicit lazy val GeneratedProcessResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.ProcessResult] = new DefaultGeneratedProcessResultFormat {}
implicit lazy val GeneratedDeleteResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DeleteResult] = new DefaultGeneratedDeleteResultFormat {}
implicit lazy val GeneratedUndeleteResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.UndeleteResult] = new DefaultGeneratedUndeleteResultFormat {}
implicit lazy val GeneratedEmptyRecycleBinResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.EmptyRecycleBinResult] = new DefaultGeneratedEmptyRecycleBinResultFormat {}
implicit lazy val GeneratedLeadConvertFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.LeadConvert] = new DefaultGeneratedLeadConvertFormat {}
implicit lazy val GeneratedLeadConvertResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.LeadConvertResult] = new DefaultGeneratedLeadConvertResultFormat {}
implicit lazy val GeneratedDescribeSObjectResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSObjectResult] = new DefaultGeneratedDescribeSObjectResultFormat {}
implicit lazy val GeneratedDescribeSObjectResultSequence1Format: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence1] = new DefaultGeneratedDescribeSObjectResultSequence1Format {}
implicit lazy val GeneratedDescribeSObjectResultSequence2Format: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence2] = new DefaultGeneratedDescribeSObjectResultSequence2Format {}
implicit lazy val GeneratedDescribeSObjectResultSequence3Format: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence3] = new DefaultGeneratedDescribeSObjectResultSequence3Format {}
implicit lazy val GeneratedDescribeGlobalSObjectResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeGlobalSObjectResult] = new DefaultGeneratedDescribeGlobalSObjectResultFormat {}
implicit lazy val GeneratedChildRelationshipFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.ChildRelationship] = new DefaultGeneratedChildRelationshipFormat {}
implicit lazy val GeneratedDescribeGlobalResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeGlobalResult] = new DefaultGeneratedDescribeGlobalResultFormat {}
implicit lazy val GeneratedFieldTypeTypeFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.FieldTypeType] = new DefaultGeneratedFieldTypeTypeFormat {}
implicit lazy val GeneratedSoapTypeFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SoapType] = new DefaultGeneratedSoapTypeFormat {}
implicit lazy val GeneratedFieldTypeFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.FieldType] = new DefaultGeneratedFieldTypeFormat {}
implicit lazy val GeneratedFieldTypeSequence1Format: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.FieldTypeSequence1] = new DefaultGeneratedFieldTypeSequence1Format {}
implicit lazy val GeneratedFieldTypeSequence2Format: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.FieldTypeSequence2] = new DefaultGeneratedFieldTypeSequence2Format {}
implicit lazy val GeneratedFieldTypeSequence3Format: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.FieldTypeSequence3] = new DefaultGeneratedFieldTypeSequence3Format {}
implicit lazy val GeneratedFieldTypeSequence4Format: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.FieldTypeSequence4] = new DefaultGeneratedFieldTypeSequence4Format {}
implicit lazy val GeneratedPicklistEntryFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.PicklistEntry] = new DefaultGeneratedPicklistEntryFormat {}
implicit lazy val GeneratedDescribeDataCategoryGroupResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupResult] = new DefaultGeneratedDescribeDataCategoryGroupResultFormat {}
implicit lazy val GeneratedDescribeDataCategoryGroupStructureResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructureResult] = new DefaultGeneratedDescribeDataCategoryGroupStructureResultFormat {}
implicit lazy val GeneratedDataCategoryGroupSobjectTypePairFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DataCategoryGroupSobjectTypePair] = new DefaultGeneratedDataCategoryGroupSobjectTypePairFormat {}
implicit lazy val GeneratedDataCategoryFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DataCategory] = new DefaultGeneratedDataCategoryFormat {}
implicit lazy val GeneratedDescribeSoftphoneLayoutResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutResult] = new DefaultGeneratedDescribeSoftphoneLayoutResultFormat {}
implicit lazy val GeneratedDescribeSoftphoneLayoutCallTypeFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutCallType] = new DefaultGeneratedDescribeSoftphoneLayoutCallTypeFormat {}
implicit lazy val GeneratedDescribeSoftphoneScreenPopOptionFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSoftphoneScreenPopOption] = new DefaultGeneratedDescribeSoftphoneScreenPopOptionFormat {}
implicit lazy val GeneratedDescribeSoftphoneLayoutInfoFieldFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutInfoField] = new DefaultGeneratedDescribeSoftphoneLayoutInfoFieldFormat {}
implicit lazy val GeneratedDescribeSoftphoneLayoutSectionFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutSection] = new DefaultGeneratedDescribeSoftphoneLayoutSectionFormat {}
implicit lazy val GeneratedDescribeSoftphoneLayoutItemFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutItem] = new DefaultGeneratedDescribeSoftphoneLayoutItemFormat {}
implicit lazy val GeneratedDescribeLayoutResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeLayoutResult] = new DefaultGeneratedDescribeLayoutResultFormat {}
implicit lazy val GeneratedDescribeLayoutTypeFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeLayoutType] = new DefaultGeneratedDescribeLayoutTypeFormat {}
implicit lazy val GeneratedDescribeLayoutSectionFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeLayoutSection] = new DefaultGeneratedDescribeLayoutSectionFormat {}
implicit lazy val GeneratedDescribeLayoutButtonSectionFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeLayoutButtonSection] = new DefaultGeneratedDescribeLayoutButtonSectionFormat {}
implicit lazy val GeneratedDescribeLayoutRowFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeLayoutRow] = new DefaultGeneratedDescribeLayoutRowFormat {}
implicit lazy val GeneratedDescribeLayoutItemFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeLayoutItem] = new DefaultGeneratedDescribeLayoutItemFormat {}
implicit lazy val GeneratedDescribeLayoutButtonFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeLayoutButton] = new DefaultGeneratedDescribeLayoutButtonFormat {}
implicit lazy val GeneratedDescribeLayoutComponentFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeLayoutComponent] = new DefaultGeneratedDescribeLayoutComponentFormat {}
implicit lazy val GeneratedLayoutComponentTypeFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.LayoutComponentType] = new DefaultGeneratedLayoutComponentTypeFormat {}
implicit lazy val GeneratedRecordTypeInfoFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.RecordTypeInfo] = new DefaultGeneratedRecordTypeInfoFormat {}
implicit lazy val GeneratedRecordTypeMappingFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.RecordTypeMapping] = new DefaultGeneratedRecordTypeMappingFormat {}
implicit lazy val GeneratedPicklistForRecordTypeFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.PicklistForRecordType] = new DefaultGeneratedPicklistForRecordTypeFormat {}
implicit lazy val GeneratedRelatedListFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.RelatedList] = new DefaultGeneratedRelatedListFormat {}
implicit lazy val GeneratedRelatedListColumnFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.RelatedListColumn] = new DefaultGeneratedRelatedListColumnFormat {}
implicit lazy val GeneratedRelatedListSortFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.RelatedListSort] = new DefaultGeneratedRelatedListSortFormat {}
implicit lazy val GeneratedEmailFileAttachmentFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.EmailFileAttachment] = new DefaultGeneratedEmailFileAttachmentFormat {}
implicit lazy val GeneratedEmailPriorityFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.EmailPriority] = new DefaultGeneratedEmailPriorityFormat {}
implicit lazy val GeneratedEmailableFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Emailable] = new DefaultGeneratedEmailableFormat {}
implicit lazy val GeneratedEmailFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Email] = new DefaultGeneratedEmailFormat {}
implicit lazy val GeneratedMassEmailMessageFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.MassEmailMessage] = new DefaultGeneratedMassEmailMessageFormat {}
implicit lazy val GeneratedSingleEmailMessageFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SingleEmailMessage] = new DefaultGeneratedSingleEmailMessageFormat {}
implicit lazy val GeneratedSendEmailResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SendEmailResult] = new DefaultGeneratedSendEmailResultFormat {}
implicit lazy val GeneratedDescribeTabSetResultFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeTabSetResult] = new DefaultGeneratedDescribeTabSetResultFormat {}
implicit lazy val GeneratedDescribeTabFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeTab] = new DefaultGeneratedDescribeTabFormat {}
implicit lazy val GeneratedLoginFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Login] = new DefaultGeneratedLoginFormat {}
implicit lazy val GeneratedLoginResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.LoginResponse] = new DefaultGeneratedLoginResponseFormat {}
implicit lazy val GeneratedDescribeSObjectFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSObject] = new DefaultGeneratedDescribeSObjectFormat {}
implicit lazy val GeneratedDescribeSObjectResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSObjectResponse] = new DefaultGeneratedDescribeSObjectResponseFormat {}
implicit lazy val GeneratedDescribeSObjectsFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSObjects] = new DefaultGeneratedDescribeSObjectsFormat {}
implicit lazy val GeneratedDescribeSObjectsResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSObjectsResponse] = new DefaultGeneratedDescribeSObjectsResponseFormat {}
implicit lazy val GeneratedDescribeGlobalFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeGlobal] = new DefaultGeneratedDescribeGlobalFormat {}
implicit lazy val GeneratedDescribeGlobalResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeGlobalResponse] = new DefaultGeneratedDescribeGlobalResponseFormat {}
implicit lazy val GeneratedDescribeDataCategoryGroupsFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroups] = new DefaultGeneratedDescribeDataCategoryGroupsFormat {}
implicit lazy val GeneratedDescribeDataCategoryGroupsResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupsResponse] = new DefaultGeneratedDescribeDataCategoryGroupsResponseFormat {}
implicit lazy val GeneratedDescribeDataCategoryGroupStructuresFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructures] = new DefaultGeneratedDescribeDataCategoryGroupStructuresFormat {}
implicit lazy val GeneratedDescribeDataCategoryGroupStructuresResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructuresResponse] = new DefaultGeneratedDescribeDataCategoryGroupStructuresResponseFormat {}
implicit lazy val GeneratedDescribeLayoutFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeLayout] = new DefaultGeneratedDescribeLayoutFormat {}
implicit lazy val GeneratedDescribeLayoutResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeLayoutResponse] = new DefaultGeneratedDescribeLayoutResponseFormat {}
implicit lazy val GeneratedDescribeSoftphoneLayoutFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayout] = new DefaultGeneratedDescribeSoftphoneLayoutFormat {}
implicit lazy val GeneratedDescribeSoftphoneLayoutResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutResponse] = new DefaultGeneratedDescribeSoftphoneLayoutResponseFormat {}
implicit lazy val GeneratedDescribeTabsFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeTabs] = new DefaultGeneratedDescribeTabsFormat {}
implicit lazy val GeneratedDescribeTabsResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeTabsResponse] = new DefaultGeneratedDescribeTabsResponseFormat {}
implicit lazy val GeneratedCreateFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Create] = new DefaultGeneratedCreateFormat {}
implicit lazy val GeneratedCreateResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.CreateResponse] = new DefaultGeneratedCreateResponseFormat {}
implicit lazy val GeneratedSendEmailFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SendEmail] = new DefaultGeneratedSendEmailFormat {}
implicit lazy val GeneratedSendEmailResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SendEmailResponse] = new DefaultGeneratedSendEmailResponseFormat {}
implicit lazy val GeneratedUpdateFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Update] = new DefaultGeneratedUpdateFormat {}
implicit lazy val GeneratedUpdateResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.UpdateResponse] = new DefaultGeneratedUpdateResponseFormat {}
implicit lazy val GeneratedUpsertFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Upsert] = new DefaultGeneratedUpsertFormat {}
implicit lazy val GeneratedUpsertResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.UpsertResponse] = new DefaultGeneratedUpsertResponseFormat {}
implicit lazy val GeneratedMergeFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Merge] = new DefaultGeneratedMergeFormat {}
implicit lazy val GeneratedMergeResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.MergeResponse] = new DefaultGeneratedMergeResponseFormat {}
implicit lazy val GeneratedDeleteFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Delete] = new DefaultGeneratedDeleteFormat {}
implicit lazy val GeneratedDeleteResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DeleteResponse] = new DefaultGeneratedDeleteResponseFormat {}
implicit lazy val GeneratedUndeleteFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Undelete] = new DefaultGeneratedUndeleteFormat {}
implicit lazy val GeneratedUndeleteResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.UndeleteResponse] = new DefaultGeneratedUndeleteResponseFormat {}
implicit lazy val GeneratedEmptyRecycleBinFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.EmptyRecycleBin] = new DefaultGeneratedEmptyRecycleBinFormat {}
implicit lazy val GeneratedEmptyRecycleBinResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.EmptyRecycleBinResponse] = new DefaultGeneratedEmptyRecycleBinResponseFormat {}
implicit lazy val GeneratedProcessFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Process] = new DefaultGeneratedProcessFormat {}
implicit lazy val GeneratedProcessResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.ProcessResponse] = new DefaultGeneratedProcessResponseFormat {}
implicit lazy val GeneratedRetrieveFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Retrieve] = new DefaultGeneratedRetrieveFormat {}
implicit lazy val GeneratedRetrieveResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.RetrieveResponse] = new DefaultGeneratedRetrieveResponseFormat {}
implicit lazy val GeneratedConvertLeadFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.ConvertLead] = new DefaultGeneratedConvertLeadFormat {}
implicit lazy val GeneratedConvertLeadResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.ConvertLeadResponse] = new DefaultGeneratedConvertLeadResponseFormat {}
implicit lazy val GeneratedGetUpdatedFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetUpdated] = new DefaultGeneratedGetUpdatedFormat {}
implicit lazy val GeneratedGetUpdatedResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetUpdatedResponse] = new DefaultGeneratedGetUpdatedResponseFormat {}
implicit lazy val GeneratedGetDeletedFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetDeleted] = new DefaultGeneratedGetDeletedFormat {}
implicit lazy val GeneratedGetDeletedResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetDeletedResponse] = new DefaultGeneratedGetDeletedResponseFormat {}
implicit lazy val GeneratedLogoutFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Logout] = new DefaultGeneratedLogoutFormat {}
implicit lazy val GeneratedLogoutResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.LogoutResponse] = new DefaultGeneratedLogoutResponseFormat {}
implicit lazy val GeneratedInvalidateSessionsFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.InvalidateSessions] = new DefaultGeneratedInvalidateSessionsFormat {}
implicit lazy val GeneratedInvalidateSessionsResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.InvalidateSessionsResponse] = new DefaultGeneratedInvalidateSessionsResponseFormat {}
implicit lazy val GeneratedQueryFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Query] = new DefaultGeneratedQueryFormat {}
implicit lazy val GeneratedQueryResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.QueryResponse] = new DefaultGeneratedQueryResponseFormat {}
implicit lazy val GeneratedQueryAllFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.QueryAll] = new DefaultGeneratedQueryAllFormat {}
implicit lazy val GeneratedQueryAllResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.QueryAllResponse] = new DefaultGeneratedQueryAllResponseFormat {}
implicit lazy val GeneratedQueryMoreFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.QueryMore] = new DefaultGeneratedQueryMoreFormat {}
implicit lazy val GeneratedQueryMoreResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.QueryMoreResponse] = new DefaultGeneratedQueryMoreResponseFormat {}
implicit lazy val GeneratedSearchFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Search] = new DefaultGeneratedSearchFormat {}
implicit lazy val GeneratedSearchResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SearchResponse] = new DefaultGeneratedSearchResponseFormat {}
implicit lazy val GeneratedGetServerTimestampFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetServerTimestamp] = new DefaultGeneratedGetServerTimestampFormat {}
implicit lazy val GeneratedGetServerTimestampResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetServerTimestampResponse] = new DefaultGeneratedGetServerTimestampResponseFormat {}
implicit lazy val GeneratedSetPasswordFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SetPassword] = new DefaultGeneratedSetPasswordFormat {}
implicit lazy val GeneratedSetPasswordResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SetPasswordResponse] = new DefaultGeneratedSetPasswordResponseFormat {}
implicit lazy val GeneratedResetPasswordFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.ResetPassword] = new DefaultGeneratedResetPasswordFormat {}
implicit lazy val GeneratedResetPasswordResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.ResetPasswordResponse] = new DefaultGeneratedResetPasswordResponseFormat {}
implicit lazy val GeneratedGetUserInfoFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetUserInfo] = new DefaultGeneratedGetUserInfoFormat {}
implicit lazy val GeneratedGetUserInfoResponseFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetUserInfoResponse] = new DefaultGeneratedGetUserInfoResponseFormat {}
implicit lazy val GeneratedSessionHeaderFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SessionHeader] = new DefaultGeneratedSessionHeaderFormat {}
implicit lazy val GeneratedLoginScopeHeaderFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.LoginScopeHeader] = new DefaultGeneratedLoginScopeHeaderFormat {}
implicit lazy val GeneratedCallOptionsFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.CallOptions] = new DefaultGeneratedCallOptionsFormat {}
implicit lazy val GeneratedQueryOptionsFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.QueryOptions] = new DefaultGeneratedQueryOptionsFormat {}
implicit lazy val GeneratedDebugLevelFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DebugLevel] = new DefaultGeneratedDebugLevelFormat {}
implicit lazy val GeneratedDebuggingHeaderFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DebuggingHeader] = new DefaultGeneratedDebuggingHeaderFormat {}
implicit lazy val GeneratedDebuggingInfoFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DebuggingInfo] = new DefaultGeneratedDebuggingInfoFormat {}
implicit lazy val GeneratedPackageVersionFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.PackageVersion] = new DefaultGeneratedPackageVersionFormat {}
implicit lazy val GeneratedPackageVersionHeaderFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.PackageVersionHeader] = new DefaultGeneratedPackageVersionHeaderFormat {}
implicit lazy val GeneratedAllowFieldTruncationHeaderFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.AllowFieldTruncationHeader] = new DefaultGeneratedAllowFieldTruncationHeaderFormat {}
implicit lazy val GeneratedDisableFeedTrackingHeaderFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DisableFeedTrackingHeader] = new DefaultGeneratedDisableFeedTrackingHeaderFormat {}
implicit lazy val GeneratedAllOrNoneHeaderFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.AllOrNoneHeader] = new DefaultGeneratedAllOrNoneHeaderFormat {}
implicit lazy val GeneratedMruHeaderFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.MruHeader] = new DefaultGeneratedMruHeaderFormat {}
implicit lazy val GeneratedEmailHeaderFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.EmailHeader] = new DefaultGeneratedEmailHeaderFormat {}
implicit lazy val GeneratedAssignmentRuleHeaderFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.AssignmentRuleHeader] = new DefaultGeneratedAssignmentRuleHeaderFormat {}
implicit lazy val GeneratedUserTerritoryDeleteHeaderFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.UserTerritoryDeleteHeader] = new DefaultGeneratedUserTerritoryDeleteHeaderFormat {}
implicit lazy val GeneratedLocaleOptionsFormat: scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.LocaleOptions] = new DefaultGeneratedLocaleOptionsFormat {}
implicit lazy val GeneratedExceptionCodeFormat: scalaxb.XMLFormat[generated.ExceptionCode] = new DefaultGeneratedExceptionCodeFormat {}
implicit lazy val GeneratedFaultCodeFormat: scalaxb.XMLFormat[generated.FaultCode] = new DefaultGeneratedFaultCodeFormat {}
implicit lazy val GeneratedApiFaultableFormat: scalaxb.XMLFormat[generated.ApiFaultable] = new DefaultGeneratedApiFaultableFormat {}
implicit lazy val GeneratedApiFaultFormat: scalaxb.XMLFormat[generated.ApiFault] = new DefaultGeneratedApiFaultFormat {}
implicit lazy val GeneratedApiQueryFaultableFormat: scalaxb.XMLFormat[generated.ApiQueryFaultable] = new DefaultGeneratedApiQueryFaultableFormat {}
implicit lazy val GeneratedApiQueryFaultFormat: scalaxb.XMLFormat[generated.ApiQueryFault] = new DefaultGeneratedApiQueryFaultFormat {}
implicit lazy val GeneratedLoginFaultFormat: scalaxb.XMLFormat[generated.LoginFault] = new DefaultGeneratedLoginFaultFormat {}
implicit lazy val GeneratedInvalidQueryLocatorFaultFormat: scalaxb.XMLFormat[generated.InvalidQueryLocatorFault] = new DefaultGeneratedInvalidQueryLocatorFaultFormat {}
implicit lazy val GeneratedInvalidNewPasswordFaultFormat: scalaxb.XMLFormat[generated.InvalidNewPasswordFault] = new DefaultGeneratedInvalidNewPasswordFaultFormat {}
implicit lazy val GeneratedInvalidIdFaultFormat: scalaxb.XMLFormat[generated.InvalidIdFault] = new DefaultGeneratedInvalidIdFaultFormat {}
implicit lazy val GeneratedUnexpectedErrorFaultFormat: scalaxb.XMLFormat[generated.UnexpectedErrorFault] = new DefaultGeneratedUnexpectedErrorFaultFormat {}
implicit lazy val GeneratedInvalidFieldFaultFormat: scalaxb.XMLFormat[generated.InvalidFieldFault] = new DefaultGeneratedInvalidFieldFaultFormat {}
implicit lazy val GeneratedInvalidSObjectFaultFormat: scalaxb.XMLFormat[generated.InvalidSObjectFault] = new DefaultGeneratedInvalidSObjectFaultFormat {}
implicit lazy val GeneratedMalformedQueryFaultFormat: scalaxb.XMLFormat[generated.MalformedQueryFault] = new DefaultGeneratedMalformedQueryFaultFormat {}
implicit lazy val GeneratedMalformedSearchFaultFormat: scalaxb.XMLFormat[generated.MalformedSearchFault] = new DefaultGeneratedMalformedSearchFaultFormat {}
trait DefaultGeneratedLoginFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.Login] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.Login] =
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strCoID")) ~
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strCoPwd")) ~
(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "userType")) ~
(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "enumCertify")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
com.drdnc.service.donotcall.generated.Login(p1.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p2.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[com.drdnc.service.donotcall.generated.UserType](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[com.drdnc.service.donotcall.generated.CertificationEnum](p4, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.Login, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.strCoID map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strCoID"), __scope, false) } getOrElse {Nil},
__obj.strCoPwd map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strCoPwd"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[com.drdnc.service.donotcall.generated.UserType](__obj.userType, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("userType"), __scope, false),
scalaxb.toXML[com.drdnc.service.donotcall.generated.CertificationEnum](__obj.enumCertify, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("enumCertify"), __scope, false))
}
def buildGeneratedUserTypeFormat = new DefaultGeneratedUserTypeFormat {}
trait DefaultGeneratedUserTypeFormat extends scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.UserType] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.donotcall.generated.UserType] =
Right(com.drdnc.service.donotcall.generated.UserType.fromString(seq.text))
def writes(__obj: com.drdnc.service.donotcall.generated.UserType, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
scala.xml.Elem(scalaxb.Helper.getPrefix(__namespace, __scope).orNull,
__elementLabel getOrElse { error("missing element label.") },
scala.xml.Null, __scope, scala.xml.Text(__obj.toString))
}
def buildGeneratedCertificationEnumFormat = new DefaultGeneratedCertificationEnumFormat {}
trait DefaultGeneratedCertificationEnumFormat extends scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.CertificationEnum] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.donotcall.generated.CertificationEnum] =
Right(com.drdnc.service.donotcall.generated.CertificationEnum.fromString(seq.text))
def writes(__obj: com.drdnc.service.donotcall.generated.CertificationEnum, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
scala.xml.Elem(scalaxb.Helper.getPrefix(__namespace, __scope).orNull,
__elementLabel getOrElse { error("missing element label.") },
scala.xml.Null, __scope, scala.xml.Text(__obj.toString))
}
trait DefaultGeneratedLoginResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.LoginResponse] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.LoginResponse] =
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "LoginResult")) ^^
{ case p1 =>
com.drdnc.service.donotcall.generated.LoginResponse(p1.headOption map { scalaxb.fromXML[com.drdnc.service.donotcall.generated.Response](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.LoginResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.LoginResult map { scalaxb.toXML[com.drdnc.service.donotcall.generated.Response](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("LoginResult"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.Response] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
override def typeName: Option[String] = Some("Response")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.Response] =
(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "code")) ~
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "value")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.donotcall.generated.Response(scalaxb.fromXML[com.drdnc.service.donotcall.generated.ResponseCodeEnum](p1, scalaxb.ElemName(node) :: stack),
p2.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.Response, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[com.drdnc.service.donotcall.generated.ResponseCodeEnum](__obj.code, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("code"), __scope, false),
__obj.value map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("value"), __scope, false) } getOrElse {Nil})
}
def buildGeneratedResponseCodeEnumFormat = new DefaultGeneratedResponseCodeEnumFormat {}
trait DefaultGeneratedResponseCodeEnumFormat extends scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.ResponseCodeEnum] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.donotcall.generated.ResponseCodeEnum] =
Right(com.drdnc.service.donotcall.generated.ResponseCodeEnum.fromString(seq.text))
def writes(__obj: com.drdnc.service.donotcall.generated.ResponseCodeEnum, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
scala.xml.Elem(scalaxb.Helper.getPrefix(__namespace, __scope).orNull,
__elementLabel getOrElse { error("missing element label.") },
scala.xml.Null, __scope, scala.xml.Text(__obj.toString))
}
trait DefaultGeneratedSubmitDeltaFileRequestFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.SubmitDeltaFileRequest] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.SubmitDeltaFileRequest] =
(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "fileFormat")) ~
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strSessionToken")) ~
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strCoID")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.donotcall.generated.SubmitDeltaFileRequest(scalaxb.fromXML[com.drdnc.service.donotcall.generated.FileFormat](p1, scalaxb.ElemName(node) :: stack),
p2.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p3.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.SubmitDeltaFileRequest, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[com.drdnc.service.donotcall.generated.FileFormat](__obj.fileFormat, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("fileFormat"), __scope, false),
__obj.strSessionToken map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strSessionToken"), __scope, false) } getOrElse {Nil},
__obj.strCoID map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strCoID"), __scope, false) } getOrElse {Nil})
}
def buildGeneratedFileFormatFormat = new DefaultGeneratedFileFormatFormat {}
trait DefaultGeneratedFileFormatFormat extends scalaxb.XMLFormat[com.drdnc.service.donotcall.generated.FileFormat] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.donotcall.generated.FileFormat] =
Right(com.drdnc.service.donotcall.generated.FileFormat.fromString(seq.text))
def writes(__obj: com.drdnc.service.donotcall.generated.FileFormat, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
scala.xml.Elem(scalaxb.Helper.getPrefix(__namespace, __scope).orNull,
__elementLabel getOrElse { error("missing element label.") },
scala.xml.Null, __scope, scala.xml.Text(__obj.toString))
}
trait DefaultGeneratedSubmitDeltaFileRequestResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.SubmitDeltaFileRequestResponse] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.SubmitDeltaFileRequestResponse] =
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "SubmitDeltaFileRequestResult")) ^^
{ case p1 =>
com.drdnc.service.donotcall.generated.SubmitDeltaFileRequestResponse(p1.headOption map { scalaxb.fromXML[com.drdnc.service.donotcall.generated.Response](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.SubmitDeltaFileRequestResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.SubmitDeltaFileRequestResult map { scalaxb.toXML[com.drdnc.service.donotcall.generated.Response](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("SubmitDeltaFileRequestResult"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedGetDeltaFileRequestStatusFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.GetDeltaFileRequestStatus] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.GetDeltaFileRequestStatus] =
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strSessionToken")) ~
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strRequestedFileToken")) ~
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strCoID")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.donotcall.generated.GetDeltaFileRequestStatus(p1.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p2.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p3.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.GetDeltaFileRequestStatus, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.strSessionToken map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strSessionToken"), __scope, false) } getOrElse {Nil},
__obj.strRequestedFileToken map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strRequestedFileToken"), __scope, false) } getOrElse {Nil},
__obj.strCoID map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strCoID"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedGetDeltaFileRequestStatusResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.GetDeltaFileRequestStatusResponse] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.GetDeltaFileRequestStatusResponse] =
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "GetDeltaFileRequestStatusResult")) ^^
{ case p1 =>
com.drdnc.service.donotcall.generated.GetDeltaFileRequestStatusResponse(p1.headOption map { scalaxb.fromXML[com.drdnc.service.donotcall.generated.Response](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.GetDeltaFileRequestStatusResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.GetDeltaFileRequestStatusResult map { scalaxb.toXML[com.drdnc.service.donotcall.generated.Response](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("GetDeltaFileRequestStatusResult"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedGetDeltaFileUrlFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.GetDeltaFileUrl] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.GetDeltaFileUrl] =
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strSessionToken")) ~
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strRequestedFileToken")) ~
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strCoID")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.donotcall.generated.GetDeltaFileUrl(p1.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p2.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p3.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.GetDeltaFileUrl, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.strSessionToken map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strSessionToken"), __scope, false) } getOrElse {Nil},
__obj.strRequestedFileToken map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strRequestedFileToken"), __scope, false) } getOrElse {Nil},
__obj.strCoID map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strCoID"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedGetDeltaFileUrlResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.GetDeltaFileUrlResponse] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.GetDeltaFileUrlResponse] =
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "GetDeltaFileUrlResult")) ^^
{ case p1 =>
com.drdnc.service.donotcall.generated.GetDeltaFileUrlResponse(p1.headOption map { scalaxb.fromXML[com.drdnc.service.donotcall.generated.Response](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.GetDeltaFileUrlResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.GetDeltaFileUrlResult map { scalaxb.toXML[com.drdnc.service.donotcall.generated.Response](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("GetDeltaFileUrlResult"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedCanGetFullFileFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.CanGetFullFile] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.CanGetFullFile] =
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strSessionToken")) ~
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strCoID")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.donotcall.generated.CanGetFullFile(p1.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p2.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.CanGetFullFile, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.strSessionToken map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strSessionToken"), __scope, false) } getOrElse {Nil},
__obj.strCoID map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strCoID"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedCanGetFullFileResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.CanGetFullFileResponse] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.CanGetFullFileResponse] =
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "CanGetFullFileResult")) ^^
{ case p1 =>
com.drdnc.service.donotcall.generated.CanGetFullFileResponse(p1.headOption map { scalaxb.fromXML[com.drdnc.service.donotcall.generated.Response](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.CanGetFullFileResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.CanGetFullFileResult map { scalaxb.toXML[com.drdnc.service.donotcall.generated.Response](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("CanGetFullFileResult"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedGetURLSFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.GetURLS] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.GetURLS] =
(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "fileFormat")) ~
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strSessionToken")) ~
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "strCoID")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.donotcall.generated.GetURLS(scalaxb.fromXML[com.drdnc.service.donotcall.generated.FileFormat](p1, scalaxb.ElemName(node) :: stack),
p2.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p3.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.GetURLS, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[com.drdnc.service.donotcall.generated.FileFormat](__obj.fileFormat, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("fileFormat"), __scope, false),
__obj.strSessionToken map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strSessionToken"), __scope, false) } getOrElse {Nil},
__obj.strCoID map { scalaxb.toXML[String](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("strCoID"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedGetURLSResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.GetURLSResponse] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.GetURLSResponse] =
opt(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "GetURLSResult")) ^^
{ case p1 =>
com.drdnc.service.donotcall.generated.GetURLSResponse(p1.headOption map { scalaxb.fromXML[com.drdnc.service.donotcall.generated.ArrayOfString](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.GetURLSResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.GetURLSResult map { scalaxb.toXML[com.drdnc.service.donotcall.generated.ArrayOfString](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("GetURLSResult"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedArrayOfStringFormat extends scalaxb.ElemNameParser[com.drdnc.service.donotcall.generated.ArrayOfString] {
val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
override def typeName: Option[String] = Some("ArrayOfString")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.donotcall.generated.ArrayOfString] =
rep(scalaxb.ElemName(Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "string")) ^^
{ case p1 =>
com.drdnc.service.donotcall.generated.ArrayOfString(p1.toSeq map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }}: _*) }
def writesChildNodes(__obj: com.drdnc.service.donotcall.generated.ArrayOfString, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.string flatMap { scalaxb.toXML[Option[String]](_, Some("https://telemarketing.donotcall.gov/DownloadSvc/"), Some("string"), __scope, false) })
}
trait DownloadSvcSoap12Bindings { this: scalaxb.SoapClients =>
lazy val targetNamespace: Option[String] = Some("https://telemarketing.donotcall.gov/DownloadSvc/")
lazy val service: DownloadSvcSoap = new DownloadSvcSoap12Binding {}
lazy val baseAddress = new java.net.URI("https://telemarketing.donotcall.gov/DownloadSvc/DownloadSvc.asmx")
trait DownloadSvcSoap12Binding extends DownloadSvcSoap {
def login(strCoID: Option[String], strCoPwd: Option[String], userType: com.drdnc.service.donotcall.generated.UserType, enumCertify: com.drdnc.service.donotcall.generated.CertificationEnum): Either[scalaxb.Fault[Any], LoginResponse] =
soapClient.requestResponse(scalaxb.toXML(Login(strCoID, strCoPwd, userType, enumCertify), Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "Login", defaultScope),
Nil, defaultScope, baseAddress, "POST", Some(new java.net.URI("https://telemarketing.donotcall.gov/DownloadSvc/Login"))) match {
case Left(x) => Left(x)
case Right((header, body)) =>
Right(scalaxb.fromXML[LoginResponse](body.headOption getOrElse {body}))
}
def submitDeltaFileRequest(fileFormat: com.drdnc.service.donotcall.generated.FileFormat, strSessionToken: Option[String], strCoID: Option[String]): Either[scalaxb.Fault[Any], SubmitDeltaFileRequestResponse] =
soapClient.requestResponse(scalaxb.toXML(SubmitDeltaFileRequest(fileFormat, strSessionToken, strCoID), Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "SubmitDeltaFileRequest", defaultScope),
Nil, defaultScope, baseAddress, "POST", Some(new java.net.URI("https://telemarketing.donotcall.gov/DownloadSvc/SubmitDeltaFileRequest"))) match {
case Left(x) => Left(x)
case Right((header, body)) =>
Right(scalaxb.fromXML[SubmitDeltaFileRequestResponse](body.headOption getOrElse {body}))
}
def getDeltaFileRequestStatus(strSessionToken: Option[String], strRequestedFileToken: Option[String], strCoID: Option[String]): Either[scalaxb.Fault[Any], GetDeltaFileRequestStatusResponse] =
soapClient.requestResponse(scalaxb.toXML(GetDeltaFileRequestStatus(strSessionToken, strRequestedFileToken, strCoID), Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "GetDeltaFileRequestStatus", defaultScope),
Nil, defaultScope, baseAddress, "POST", Some(new java.net.URI("https://telemarketing.donotcall.gov/DownloadSvc/GetDeltaFileRequestStatus"))) match {
case Left(x) => Left(x)
case Right((header, body)) =>
Right(scalaxb.fromXML[GetDeltaFileRequestStatusResponse](body.headOption getOrElse {body}))
}
def getDeltaFileUrl(strSessionToken: Option[String], strRequestedFileToken: Option[String], strCoID: Option[String]): Either[scalaxb.Fault[Any], GetDeltaFileUrlResponse] =
soapClient.requestResponse(scalaxb.toXML(GetDeltaFileUrl(strSessionToken, strRequestedFileToken, strCoID), Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "GetDeltaFileUrl", defaultScope),
Nil, defaultScope, baseAddress, "POST", Some(new java.net.URI("https://telemarketing.donotcall.gov/DownloadSvc/GetDeltaFileUrl"))) match {
case Left(x) => Left(x)
case Right((header, body)) =>
Right(scalaxb.fromXML[GetDeltaFileUrlResponse](body.headOption getOrElse {body}))
}
def canGetFullFile(strSessionToken: Option[String], strCoID: Option[String]): Either[scalaxb.Fault[Any], CanGetFullFileResponse] =
soapClient.requestResponse(scalaxb.toXML(CanGetFullFile(strSessionToken, strCoID), Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "CanGetFullFile", defaultScope),
Nil, defaultScope, baseAddress, "POST", Some(new java.net.URI("https://telemarketing.donotcall.gov/DownloadSvc/CanGetFullFile"))) match {
case Left(x) => Left(x)
case Right((header, body)) =>
Right(scalaxb.fromXML[CanGetFullFileResponse](body.headOption getOrElse {body}))
}
def getURLS(fileFormat: com.drdnc.service.donotcall.generated.FileFormat, strSessionToken: Option[String], strCoID: Option[String]): Either[scalaxb.Fault[Any], GetURLSResponse] =
soapClient.requestResponse(scalaxb.toXML(GetURLS(fileFormat, strSessionToken, strCoID), Some("https://telemarketing.donotcall.gov/DownloadSvc/"), "GetURLS", defaultScope),
Nil, defaultScope, baseAddress, "POST", Some(new java.net.URI("https://telemarketing.donotcall.gov/DownloadSvc/GetURLS"))) match {
case Left(x) => Left(x)
case Right((header, body)) =>
Right(scalaxb.fromXML[GetURLSResponse](body.headOption getOrElse {body}))
}
}
}
trait DefaultGeneratedSObjectFormat extends scalaxb.ElemNameParser[generated.SObject] {
val targetNamespace: Option[String] = Some("urn:sobject.partner.soap.sforce.com")
override def typeName: Option[String] = Some("sObject")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[generated.SObject] =
(scalaxb.ElemName(Some("urn:sobject.partner.soap.sforce.com"), "type")) ~
rep(scalaxb.ElemName(Some("urn:sobject.partner.soap.sforce.com"), "fieldsToNull")) ~
(scalaxb.ElemName(Some("urn:sobject.partner.soap.sforce.com"), "Id")) ~
rep(any(x => List(Some("urn:sobject.partner.soap.sforce.com")) contains x.namespace)) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
generated.SObject(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
p2.toSeq map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
p3.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p4.toSeq map { scalaxb.fromXML[scalaxb.DataRecord[Any]](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: generated.SObject, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.typeValue, Some("urn:sobject.partner.soap.sforce.com"), Some("type"), __scope, false),
__obj.fieldsToNull flatMap { scalaxb.toXML[Option[String]](_, Some("urn:sobject.partner.soap.sforce.com"), Some("fieldsToNull"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.Id, Some("urn:sobject.partner.soap.sforce.com"), Some("Id"), __scope, false),
__obj.any flatMap { x => scalaxb.toXML[scalaxb.DataRecord[Any]](x, x.namespace, x.key, __scope, true) })
}
trait DefaultGeneratedQueryResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.QueryResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("QueryResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.QueryResult] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "done")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "queryLocator")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "records")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "size")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
com.drdnc.service.salesforce.generated.QueryResult(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p3.toSeq map { _.nilOption map { scalaxb.fromXML[generated.SObject](_, scalaxb.ElemName(node) :: stack) }},
scalaxb.fromXML[Int](p4, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.QueryResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Boolean](__obj.done, Some("urn:partner.soap.sforce.com"), Some("done"), __scope, false),
scalaxb.toXML[Option[String]](__obj.queryLocator, Some("urn:partner.soap.sforce.com"), Some("queryLocator"), __scope, false),
__obj.records flatMap { scalaxb.toXML[Option[generated.SObject]](_, Some("urn:partner.soap.sforce.com"), Some("records"), __scope, false) },
scalaxb.toXML[Int](__obj.size, Some("urn:partner.soap.sforce.com"), Some("size"), __scope, false))
}
trait DefaultGeneratedSearchResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.SearchResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("SearchResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.SearchResult] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "searchRecords")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sforceReserved")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.SearchResult(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.SearchRecord](_, scalaxb.ElemName(node) :: stack) },
p2.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.SearchResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.searchRecords flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.SearchRecord](_, Some("urn:partner.soap.sforce.com"), Some("searchRecords"), __scope, false) },
__obj.sforceReserved map { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("sforceReserved"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedSearchRecordFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.SearchRecord] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("SearchRecord")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.SearchRecord] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "record")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.SearchRecord(scalaxb.fromXML[generated.SObject](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.SearchRecord, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[generated.SObject](__obj.record, Some("urn:partner.soap.sforce.com"), Some("record"), __scope, false))
}
trait DefaultGeneratedGetUpdatedResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.GetUpdatedResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("GetUpdatedResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.GetUpdatedResult] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "ids")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "latestDateCovered")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sforceReserved")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.GetUpdatedResult(p1.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[javax.xml.datatype.XMLGregorianCalendar](p2, scalaxb.ElemName(node) :: stack),
p3.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.GetUpdatedResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.ids flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("ids"), __scope, false) },
scalaxb.toXML[javax.xml.datatype.XMLGregorianCalendar](__obj.latestDateCovered, Some("urn:partner.soap.sforce.com"), Some("latestDateCovered"), __scope, false),
__obj.sforceReserved map { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("sforceReserved"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedGetDeletedResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.GetDeletedResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("GetDeletedResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.GetDeletedResult] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "deletedRecords")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "earliestDateAvailable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "latestDateCovered")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sforceReserved")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
com.drdnc.service.salesforce.generated.GetDeletedResult(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DeletedRecord](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[javax.xml.datatype.XMLGregorianCalendar](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[javax.xml.datatype.XMLGregorianCalendar](p3, scalaxb.ElemName(node) :: stack),
p4.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.GetDeletedResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.deletedRecords flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DeletedRecord](_, Some("urn:partner.soap.sforce.com"), Some("deletedRecords"), __scope, false) },
scalaxb.toXML[javax.xml.datatype.XMLGregorianCalendar](__obj.earliestDateAvailable, Some("urn:partner.soap.sforce.com"), Some("earliestDateAvailable"), __scope, false),
scalaxb.toXML[javax.xml.datatype.XMLGregorianCalendar](__obj.latestDateCovered, Some("urn:partner.soap.sforce.com"), Some("latestDateCovered"), __scope, false),
__obj.sforceReserved map { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("sforceReserved"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedDeletedRecordFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DeletedRecord] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DeletedRecord")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DeletedRecord] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "deletedDate")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "id")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.DeletedRecord(scalaxb.fromXML[javax.xml.datatype.XMLGregorianCalendar](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DeletedRecord, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[javax.xml.datatype.XMLGregorianCalendar](__obj.deletedDate, Some("urn:partner.soap.sforce.com"), Some("deletedDate"), __scope, false),
scalaxb.toXML[String](__obj.id, Some("urn:partner.soap.sforce.com"), Some("id"), __scope, false))
}
trait DefaultGeneratedGetServerTimestampResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.GetServerTimestampResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("GetServerTimestampResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.GetServerTimestampResult] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "timestamp")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.GetServerTimestampResult(scalaxb.fromXML[javax.xml.datatype.XMLGregorianCalendar](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.GetServerTimestampResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[javax.xml.datatype.XMLGregorianCalendar](__obj.timestamp, Some("urn:partner.soap.sforce.com"), Some("timestamp"), __scope, false))
}
trait DefaultGeneratedInvalidateSessionsResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.InvalidateSessionsResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("InvalidateSessionsResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.InvalidateSessionsResult] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "errors")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "success")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.InvalidateSessionsResult(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.Error](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.InvalidateSessionsResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.errors flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.Error](_, Some("urn:partner.soap.sforce.com"), Some("errors"), __scope, false) },
scalaxb.toXML[Boolean](__obj.success, Some("urn:partner.soap.sforce.com"), Some("success"), __scope, false))
}
trait DefaultGeneratedSetPasswordResultFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SetPasswordResult] with scalaxb.CanWriteChildNodes[com.drdnc.service.salesforce.generated.SetPasswordResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.SetPasswordResult] = seq match {
case node: scala.xml.Node => Right(com.drdnc.service.salesforce.generated.SetPasswordResult())
case _ => Left("reads failed: seq must be scala.xml.Node")
}
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.SetPasswordResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Nil
}
trait DefaultGeneratedResetPasswordResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.ResetPasswordResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("ResetPasswordResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.ResetPasswordResult] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "password")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.ResetPasswordResult(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.ResetPasswordResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[String](__obj.password, Some("urn:partner.soap.sforce.com"), Some("password"), __scope, false))
}
trait DefaultGeneratedGetUserInfoResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.GetUserInfoResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("GetUserInfoResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.GetUserInfoResult] =
(((scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "accessibilityMode")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "currencySymbol")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "orgAttachmentFileSizeLimit")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "orgDefaultCurrencyIsoCode")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "orgDisallowHtmlAttachments")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "orgHasPersonAccounts")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "organizationId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "organizationMultiCurrency")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "organizationName")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "profileId"))) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 ~ p8 ~ p9 ~ p10 => com.drdnc.service.salesforce.generated.GetUserInfoResultSequence1(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Int](p3, scalaxb.ElemName(node) :: stack),
p4.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p5, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p6, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p7, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p8, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p9, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p10, scalaxb.ElemName(node) :: stack)) }) ~
(((scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "roleId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sessionSecondsValid")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userDefaultCurrencyIsoCode")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userEmail")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userFullName")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userLanguage")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userLocale")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userName")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userTimeZone"))) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 ~ p8 ~ p9 ~ p10 => com.drdnc.service.salesforce.generated.GetUserInfoResultSequence2(p1.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Int](p2, scalaxb.ElemName(node) :: stack),
p3.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[String](p4, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p5, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p6, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p7, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p8, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p9, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p10, scalaxb.ElemName(node) :: stack)) }) ~
(((scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userType")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userUiSkin"))) ^^
{ case p1 ~ p2 => com.drdnc.service.salesforce.generated.GetUserInfoResultSequence3(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack)) }) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.GetUserInfoResult(p1,
p2,
p3) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.GetUserInfoResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[com.drdnc.service.salesforce.generated.GetUserInfoResultSequence1](__obj.getuserinforesultsequence1, None, Some("getuserinforesultsequence1"), __scope, false),
scalaxb.toXML[com.drdnc.service.salesforce.generated.GetUserInfoResultSequence2](__obj.getuserinforesultsequence2, None, Some("getuserinforesultsequence2"), __scope, false),
scalaxb.toXML[com.drdnc.service.salesforce.generated.GetUserInfoResultSequence3](__obj.getuserinforesultsequence3, None, Some("getuserinforesultsequence3"), __scope, false))
}
trait DefaultGeneratedGetUserInfoResultSequence1Format extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetUserInfoResultSequence1] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.GetUserInfoResultSequence1] = Left("don't call me.")
def writes(__obj: com.drdnc.service.salesforce.generated.GetUserInfoResultSequence1, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
Seq.concat(scalaxb.toXML[Boolean](__obj.accessibilityMode, Some("urn:partner.soap.sforce.com"), Some("accessibilityMode"), __scope, false),
scalaxb.toXML[Option[String]](__obj.currencySymbol, Some("urn:partner.soap.sforce.com"), Some("currencySymbol"), __scope, false),
scalaxb.toXML[Int](__obj.orgAttachmentFileSizeLimit, Some("urn:partner.soap.sforce.com"), Some("orgAttachmentFileSizeLimit"), __scope, false),
scalaxb.toXML[Option[String]](__obj.orgDefaultCurrencyIsoCode, Some("urn:partner.soap.sforce.com"), Some("orgDefaultCurrencyIsoCode"), __scope, false),
scalaxb.toXML[Boolean](__obj.orgDisallowHtmlAttachments, Some("urn:partner.soap.sforce.com"), Some("orgDisallowHtmlAttachments"), __scope, false),
scalaxb.toXML[Boolean](__obj.orgHasPersonAccounts, Some("urn:partner.soap.sforce.com"), Some("orgHasPersonAccounts"), __scope, false),
scalaxb.toXML[String](__obj.organizationId, Some("urn:partner.soap.sforce.com"), Some("organizationId"), __scope, false),
scalaxb.toXML[Boolean](__obj.organizationMultiCurrency, Some("urn:partner.soap.sforce.com"), Some("organizationMultiCurrency"), __scope, false),
scalaxb.toXML[String](__obj.organizationName, Some("urn:partner.soap.sforce.com"), Some("organizationName"), __scope, false),
scalaxb.toXML[String](__obj.profileId, Some("urn:partner.soap.sforce.com"), Some("profileId"), __scope, false))
}
trait DefaultGeneratedGetUserInfoResultSequence2Format extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetUserInfoResultSequence2] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.GetUserInfoResultSequence2] = Left("don't call me.")
def writes(__obj: com.drdnc.service.salesforce.generated.GetUserInfoResultSequence2, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
Seq.concat(scalaxb.toXML[Option[String]](__obj.roleId, Some("urn:partner.soap.sforce.com"), Some("roleId"), __scope, false),
scalaxb.toXML[Int](__obj.sessionSecondsValid, Some("urn:partner.soap.sforce.com"), Some("sessionSecondsValid"), __scope, false),
scalaxb.toXML[Option[String]](__obj.userDefaultCurrencyIsoCode, Some("urn:partner.soap.sforce.com"), Some("userDefaultCurrencyIsoCode"), __scope, false),
scalaxb.toXML[String](__obj.userEmail, Some("urn:partner.soap.sforce.com"), Some("userEmail"), __scope, false),
scalaxb.toXML[String](__obj.userFullName, Some("urn:partner.soap.sforce.com"), Some("userFullName"), __scope, false),
scalaxb.toXML[String](__obj.userId, Some("urn:partner.soap.sforce.com"), Some("userId"), __scope, false),
scalaxb.toXML[String](__obj.userLanguage, Some("urn:partner.soap.sforce.com"), Some("userLanguage"), __scope, false),
scalaxb.toXML[String](__obj.userLocale, Some("urn:partner.soap.sforce.com"), Some("userLocale"), __scope, false),
scalaxb.toXML[String](__obj.userName, Some("urn:partner.soap.sforce.com"), Some("userName"), __scope, false),
scalaxb.toXML[String](__obj.userTimeZone, Some("urn:partner.soap.sforce.com"), Some("userTimeZone"), __scope, false))
}
trait DefaultGeneratedGetUserInfoResultSequence3Format extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetUserInfoResultSequence3] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.GetUserInfoResultSequence3] = Left("don't call me.")
def writes(__obj: com.drdnc.service.salesforce.generated.GetUserInfoResultSequence3, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
Seq.concat(scalaxb.toXML[String](__obj.userType, Some("urn:partner.soap.sforce.com"), Some("userType"), __scope, false),
scalaxb.toXML[String](__obj.userUiSkin, Some("urn:partner.soap.sforce.com"), Some("userUiSkin"), __scope, false))
}
trait DefaultGeneratedLoginResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.LoginResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("LoginResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.LoginResult] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "metadataServerUrl")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "passwordExpired")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sandbox")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "serverUrl")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sessionId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userId")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userInfo")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 =>
com.drdnc.service.salesforce.generated.LoginResult(p1.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack),
p4.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p5.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p6.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p7.headOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.GetUserInfoResult](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.LoginResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Option[String]](__obj.metadataServerUrl, Some("urn:partner.soap.sforce.com"), Some("metadataServerUrl"), __scope, false),
scalaxb.toXML[Boolean](__obj.passwordExpired, Some("urn:partner.soap.sforce.com"), Some("passwordExpired"), __scope, false),
scalaxb.toXML[Boolean](__obj.sandbox, Some("urn:partner.soap.sforce.com"), Some("sandbox"), __scope, false),
scalaxb.toXML[Option[String]](__obj.serverUrl, Some("urn:partner.soap.sforce.com"), Some("serverUrl"), __scope, false),
scalaxb.toXML[Option[String]](__obj.sessionId, Some("urn:partner.soap.sforce.com"), Some("sessionId"), __scope, false),
scalaxb.toXML[Option[String]](__obj.userId, Some("urn:partner.soap.sforce.com"), Some("userId"), __scope, false),
__obj.userInfo map { scalaxb.toXML[com.drdnc.service.salesforce.generated.GetUserInfoResult](_, Some("urn:partner.soap.sforce.com"), Some("userInfo"), __scope, false) } getOrElse {Nil})
}
def buildGeneratedStatusCodeFormat = new DefaultGeneratedStatusCodeFormat {}
trait DefaultGeneratedStatusCodeFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.StatusCode] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.StatusCode] =
Right(com.drdnc.service.salesforce.generated.StatusCode.fromString(seq.text))
def writes(__obj: com.drdnc.service.salesforce.generated.StatusCode, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
scala.xml.Elem(scalaxb.Helper.getPrefix(__namespace, __scope).orNull,
__elementLabel getOrElse { error("missing element label.") },
scala.xml.Null, __scope, scala.xml.Text(__obj.toString))
}
trait DefaultGeneratedErrorFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.Error] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("Error")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.Error] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "fields")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "message")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "statusCode")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.Error(p1.toSeq map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[com.drdnc.service.salesforce.generated.StatusCode](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Error, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.fields flatMap { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("fields"), __scope, false) },
scalaxb.toXML[String](__obj.message, Some("urn:partner.soap.sforce.com"), Some("message"), __scope, false),
scalaxb.toXML[com.drdnc.service.salesforce.generated.StatusCode](__obj.statusCode, Some("urn:partner.soap.sforce.com"), Some("statusCode"), __scope, false))
}
trait DefaultGeneratedSendEmailErrorFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.SendEmailError] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("SendEmailError")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.SendEmailError] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "fields")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "message")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "statusCode")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "targetObjectId")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
com.drdnc.service.salesforce.generated.SendEmailError(p1.toSeq map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[com.drdnc.service.salesforce.generated.StatusCode](p3, scalaxb.ElemName(node) :: stack),
p4.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.SendEmailError, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.fields flatMap { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("fields"), __scope, false) },
scalaxb.toXML[String](__obj.message, Some("urn:partner.soap.sforce.com"), Some("message"), __scope, false),
scalaxb.toXML[com.drdnc.service.salesforce.generated.StatusCode](__obj.statusCode, Some("urn:partner.soap.sforce.com"), Some("statusCode"), __scope, false),
scalaxb.toXML[Option[String]](__obj.targetObjectId, Some("urn:partner.soap.sforce.com"), Some("targetObjectId"), __scope, false))
}
trait DefaultGeneratedSaveResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.SaveResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("SaveResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.SaveResult] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "errors")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "id")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "success")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.SaveResult(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.Error](_, scalaxb.ElemName(node) :: stack) },
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.SaveResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.errors flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.Error](_, Some("urn:partner.soap.sforce.com"), Some("errors"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.id, Some("urn:partner.soap.sforce.com"), Some("id"), __scope, false),
scalaxb.toXML[Boolean](__obj.success, Some("urn:partner.soap.sforce.com"), Some("success"), __scope, false))
}
trait DefaultGeneratedUpsertResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.UpsertResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("UpsertResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.UpsertResult] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "created")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "errors")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "id")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "success")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
com.drdnc.service.salesforce.generated.UpsertResult(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
p2.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.Error](_, scalaxb.ElemName(node) :: stack) },
p3.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p4, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.UpsertResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Boolean](__obj.created, Some("urn:partner.soap.sforce.com"), Some("created"), __scope, false),
__obj.errors flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.Error](_, Some("urn:partner.soap.sforce.com"), Some("errors"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.id, Some("urn:partner.soap.sforce.com"), Some("id"), __scope, false),
scalaxb.toXML[Boolean](__obj.success, Some("urn:partner.soap.sforce.com"), Some("success"), __scope, false))
}
trait DefaultGeneratedMergeRequestFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.MergeRequest] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("MergeRequest")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.MergeRequest] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "masterRecord")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "recordToMergeIds")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.MergeRequest(scalaxb.fromXML[generated.SObject](p1, scalaxb.ElemName(node) :: stack),
p2.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.MergeRequest, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[generated.SObject](__obj.masterRecord, Some("urn:partner.soap.sforce.com"), Some("masterRecord"), __scope, false),
__obj.recordToMergeIds flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("recordToMergeIds"), __scope, false) })
}
trait DefaultGeneratedMergeResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.MergeResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("MergeResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.MergeResult] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "errors")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "id")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "mergedRecordIds")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "success")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "updatedRelatedIds")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 =>
com.drdnc.service.salesforce.generated.MergeResult(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.Error](_, scalaxb.ElemName(node) :: stack) },
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p3.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p4, scalaxb.ElemName(node) :: stack),
p5.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.MergeResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.errors flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.Error](_, Some("urn:partner.soap.sforce.com"), Some("errors"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.id, Some("urn:partner.soap.sforce.com"), Some("id"), __scope, false),
__obj.mergedRecordIds flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("mergedRecordIds"), __scope, false) },
scalaxb.toXML[Boolean](__obj.success, Some("urn:partner.soap.sforce.com"), Some("success"), __scope, false),
__obj.updatedRelatedIds flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("updatedRelatedIds"), __scope, false) })
}
trait DefaultGeneratedProcessRequestableFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.ProcessRequestable] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.ProcessRequestable] = seq match {
case node: scala.xml.Node =>
scalaxb.Helper.instanceType(node) match {
case (Some("urn:partner.soap.sforce.com"), Some("ProcessSubmitRequest")) => Right(scalaxb.fromXML[com.drdnc.service.salesforce.generated.ProcessSubmitRequest](node, stack))
case (Some("urn:partner.soap.sforce.com"), Some("ProcessWorkitemRequest")) => Right(scalaxb.fromXML[com.drdnc.service.salesforce.generated.ProcessWorkitemRequest](node, stack))
case _ => Right(scalaxb.fromXML[com.drdnc.service.salesforce.generated.ProcessRequest](node, stack))
}
case _ => Left("reads failed: seq must be scala.xml.Node")
}
def writes(__obj: com.drdnc.service.salesforce.generated.ProcessRequestable, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq = __obj match {
case x: com.drdnc.service.salesforce.generated.ProcessSubmitRequest => scalaxb.toXML[com.drdnc.service.salesforce.generated.ProcessSubmitRequest](x, __namespace, __elementLabel, __scope, true)
case x: com.drdnc.service.salesforce.generated.ProcessWorkitemRequest => scalaxb.toXML[com.drdnc.service.salesforce.generated.ProcessWorkitemRequest](x, __namespace, __elementLabel, __scope, true)
case x: com.drdnc.service.salesforce.generated.ProcessRequest => scalaxb.toXML[com.drdnc.service.salesforce.generated.ProcessRequest](x, __namespace, __elementLabel, __scope, false)
}
}
trait DefaultGeneratedProcessRequestFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.ProcessRequest] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("ProcessRequest")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.ProcessRequest] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "comments")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "nextApproverIds")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.ProcessRequest(p1.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p2.toSeq map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }}) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.ProcessRequest, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Option[String]](__obj.comments, Some("urn:partner.soap.sforce.com"), Some("comments"), __scope, false),
__obj.nextApproverIds flatMap { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("nextApproverIds"), __scope, false) })
}
trait DefaultGeneratedProcessSubmitRequestFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.ProcessSubmitRequest] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("ProcessSubmitRequest")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.ProcessSubmitRequest] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "comments")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "nextApproverIds")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "objectId")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.ProcessSubmitRequest(p1.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p2.toSeq map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.ProcessSubmitRequest, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Option[String]](__obj.comments, Some("urn:partner.soap.sforce.com"), Some("comments"), __scope, false),
__obj.nextApproverIds flatMap { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("nextApproverIds"), __scope, false) },
scalaxb.toXML[String](__obj.objectId, Some("urn:partner.soap.sforce.com"), Some("objectId"), __scope, false))
}
trait DefaultGeneratedProcessWorkitemRequestFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.ProcessWorkitemRequest] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("ProcessWorkitemRequest")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.ProcessWorkitemRequest] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "comments")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "nextApproverIds")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "action")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "workitemId")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
com.drdnc.service.salesforce.generated.ProcessWorkitemRequest(p1.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p2.toSeq map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p4, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.ProcessWorkitemRequest, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Option[String]](__obj.comments, Some("urn:partner.soap.sforce.com"), Some("comments"), __scope, false),
__obj.nextApproverIds flatMap { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("nextApproverIds"), __scope, false) },
scalaxb.toXML[String](__obj.action, Some("urn:partner.soap.sforce.com"), Some("action"), __scope, false),
scalaxb.toXML[String](__obj.workitemId, Some("urn:partner.soap.sforce.com"), Some("workitemId"), __scope, false))
}
trait DefaultGeneratedProcessResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.ProcessResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("ProcessResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.ProcessResult] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "actorIds")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "entityId")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "errors")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "instanceId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "instanceStatus")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "newWorkitemIds")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "success")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 =>
com.drdnc.service.salesforce.generated.ProcessResult(p1.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p3.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.Error](_, scalaxb.ElemName(node) :: stack) },
p4.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p5.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p6.toSeq map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
scalaxb.fromXML[Boolean](p7, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.ProcessResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.actorIds flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("actorIds"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.entityId, Some("urn:partner.soap.sforce.com"), Some("entityId"), __scope, false),
__obj.errors flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.Error](_, Some("urn:partner.soap.sforce.com"), Some("errors"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.instanceId, Some("urn:partner.soap.sforce.com"), Some("instanceId"), __scope, false),
scalaxb.toXML[Option[String]](__obj.instanceStatus, Some("urn:partner.soap.sforce.com"), Some("instanceStatus"), __scope, false),
__obj.newWorkitemIds flatMap { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("newWorkitemIds"), __scope, false) },
scalaxb.toXML[Boolean](__obj.success, Some("urn:partner.soap.sforce.com"), Some("success"), __scope, false))
}
trait DefaultGeneratedDeleteResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DeleteResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DeleteResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DeleteResult] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "errors")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "id")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "success")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.DeleteResult(p1.toSeq map { _.nilOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.Error](_, scalaxb.ElemName(node) :: stack) }},
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DeleteResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.errors flatMap { scalaxb.toXML[Option[com.drdnc.service.salesforce.generated.Error]](_, Some("urn:partner.soap.sforce.com"), Some("errors"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.id, Some("urn:partner.soap.sforce.com"), Some("id"), __scope, false),
scalaxb.toXML[Boolean](__obj.success, Some("urn:partner.soap.sforce.com"), Some("success"), __scope, false))
}
trait DefaultGeneratedUndeleteResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.UndeleteResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("UndeleteResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.UndeleteResult] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "errors")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "id")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "success")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.UndeleteResult(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.Error](_, scalaxb.ElemName(node) :: stack) },
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.UndeleteResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.errors flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.Error](_, Some("urn:partner.soap.sforce.com"), Some("errors"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.id, Some("urn:partner.soap.sforce.com"), Some("id"), __scope, false),
scalaxb.toXML[Boolean](__obj.success, Some("urn:partner.soap.sforce.com"), Some("success"), __scope, false))
}
trait DefaultGeneratedEmptyRecycleBinResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.EmptyRecycleBinResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("EmptyRecycleBinResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.EmptyRecycleBinResult] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "errors")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "id")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "success")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.EmptyRecycleBinResult(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.Error](_, scalaxb.ElemName(node) :: stack) },
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.EmptyRecycleBinResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.errors flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.Error](_, Some("urn:partner.soap.sforce.com"), Some("errors"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.id, Some("urn:partner.soap.sforce.com"), Some("id"), __scope, false),
scalaxb.toXML[Boolean](__obj.success, Some("urn:partner.soap.sforce.com"), Some("success"), __scope, false))
}
trait DefaultGeneratedLeadConvertFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.LeadConvert] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("LeadConvert")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.LeadConvert] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "accountId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "contactId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "convertedStatus")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "doNotCreateOpportunity")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "leadId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "opportunityName")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "overwriteLeadSource")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "ownerId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sendNotificationEmail")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 ~ p8 ~ p9 =>
com.drdnc.service.salesforce.generated.LeadConvert(p1.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p4, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p5, scalaxb.ElemName(node) :: stack),
p6.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p7, scalaxb.ElemName(node) :: stack),
p8.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p9, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.LeadConvert, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Option[String]](__obj.accountId, Some("urn:partner.soap.sforce.com"), Some("accountId"), __scope, false),
scalaxb.toXML[Option[String]](__obj.contactId, Some("urn:partner.soap.sforce.com"), Some("contactId"), __scope, false),
scalaxb.toXML[String](__obj.convertedStatus, Some("urn:partner.soap.sforce.com"), Some("convertedStatus"), __scope, false),
scalaxb.toXML[Boolean](__obj.doNotCreateOpportunity, Some("urn:partner.soap.sforce.com"), Some("doNotCreateOpportunity"), __scope, false),
scalaxb.toXML[String](__obj.leadId, Some("urn:partner.soap.sforce.com"), Some("leadId"), __scope, false),
scalaxb.toXML[Option[String]](__obj.opportunityName, Some("urn:partner.soap.sforce.com"), Some("opportunityName"), __scope, false),
scalaxb.toXML[Boolean](__obj.overwriteLeadSource, Some("urn:partner.soap.sforce.com"), Some("overwriteLeadSource"), __scope, false),
scalaxb.toXML[Option[String]](__obj.ownerId, Some("urn:partner.soap.sforce.com"), Some("ownerId"), __scope, false),
scalaxb.toXML[Boolean](__obj.sendNotificationEmail, Some("urn:partner.soap.sforce.com"), Some("sendNotificationEmail"), __scope, false))
}
trait DefaultGeneratedLeadConvertResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.LeadConvertResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("LeadConvertResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.LeadConvertResult] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "accountId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "contactId")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "errors")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "leadId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "opportunityId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "success")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 =>
com.drdnc.service.salesforce.generated.LeadConvertResult(p1.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p3.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.Error](_, scalaxb.ElemName(node) :: stack) },
p4.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p5.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p6, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.LeadConvertResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Option[String]](__obj.accountId, Some("urn:partner.soap.sforce.com"), Some("accountId"), __scope, false),
scalaxb.toXML[Option[String]](__obj.contactId, Some("urn:partner.soap.sforce.com"), Some("contactId"), __scope, false),
__obj.errors flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.Error](_, Some("urn:partner.soap.sforce.com"), Some("errors"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.leadId, Some("urn:partner.soap.sforce.com"), Some("leadId"), __scope, false),
scalaxb.toXML[Option[String]](__obj.opportunityId, Some("urn:partner.soap.sforce.com"), Some("opportunityId"), __scope, false),
scalaxb.toXML[Boolean](__obj.success, Some("urn:partner.soap.sforce.com"), Some("success"), __scope, false))
}
trait DefaultGeneratedDescribeSObjectResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeSObjectResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeSObjectResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeSObjectResult] =
(((scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "activateable")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "childRelationships")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "createable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "custom")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "customSetting")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "deletable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "deprecatedAndHidden")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "feedEnabled")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "fields")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "keyPrefix"))) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 ~ p8 ~ p9 ~ p10 => com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence1(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
p2.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.ChildRelationship](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p4, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p5, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p6, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p7, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p8, scalaxb.ElemName(node) :: stack),
p9.toSeq map { _.nilOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.FieldType](_, scalaxb.ElemName(node) :: stack) }},
p10.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }) ~
(((scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "label")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "labelPlural")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "layoutable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "mergeable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "queryable")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "recordTypeInfos")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "replicateable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "retrieveable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "searchable"))) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 ~ p8 ~ p9 ~ p10 => com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence2(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p4, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p5, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p6, scalaxb.ElemName(node) :: stack),
p7.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.RecordTypeInfo](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p8, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p9, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p10, scalaxb.ElemName(node) :: stack)) }) ~
((opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "triggerable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "undeletable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "updateable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "urlDetail")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "urlEdit")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "urlNew"))) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 => com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence3(p1.headOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack),
p4.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p5.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p6.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.DescribeSObjectResult(p1,
p2,
p3) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeSObjectResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence1](__obj.describesobjectresultsequence1, None, Some("describesobjectresultsequence1"), __scope, false),
scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence2](__obj.describesobjectresultsequence2, None, Some("describesobjectresultsequence2"), __scope, false),
scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence3](__obj.describesobjectresultsequence3, None, Some("describesobjectresultsequence3"), __scope, false))
}
trait DefaultGeneratedDescribeSObjectResultSequence1Format extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence1] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence1] = Left("don't call me.")
def writes(__obj: com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence1, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
Seq.concat(scalaxb.toXML[Boolean](__obj.activateable, Some("urn:partner.soap.sforce.com"), Some("activateable"), __scope, false),
__obj.childRelationships flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.ChildRelationship](_, Some("urn:partner.soap.sforce.com"), Some("childRelationships"), __scope, false) },
scalaxb.toXML[Boolean](__obj.createable, Some("urn:partner.soap.sforce.com"), Some("createable"), __scope, false),
scalaxb.toXML[Boolean](__obj.custom, Some("urn:partner.soap.sforce.com"), Some("custom"), __scope, false),
scalaxb.toXML[Boolean](__obj.customSetting, Some("urn:partner.soap.sforce.com"), Some("customSetting"), __scope, false),
scalaxb.toXML[Boolean](__obj.deletable, Some("urn:partner.soap.sforce.com"), Some("deletable"), __scope, false),
scalaxb.toXML[Boolean](__obj.deprecatedAndHidden, Some("urn:partner.soap.sforce.com"), Some("deprecatedAndHidden"), __scope, false),
scalaxb.toXML[Boolean](__obj.feedEnabled, Some("urn:partner.soap.sforce.com"), Some("feedEnabled"), __scope, false),
__obj.fields flatMap { scalaxb.toXML[Option[com.drdnc.service.salesforce.generated.FieldType]](_, Some("urn:partner.soap.sforce.com"), Some("fields"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.keyPrefix, Some("urn:partner.soap.sforce.com"), Some("keyPrefix"), __scope, false))
}
trait DefaultGeneratedDescribeSObjectResultSequence2Format extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence2] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence2] = Left("don't call me.")
def writes(__obj: com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence2, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
Seq.concat(scalaxb.toXML[String](__obj.label, Some("urn:partner.soap.sforce.com"), Some("label"), __scope, false),
scalaxb.toXML[String](__obj.labelPlural, Some("urn:partner.soap.sforce.com"), Some("labelPlural"), __scope, false),
scalaxb.toXML[Boolean](__obj.layoutable, Some("urn:partner.soap.sforce.com"), Some("layoutable"), __scope, false),
scalaxb.toXML[Boolean](__obj.mergeable, Some("urn:partner.soap.sforce.com"), Some("mergeable"), __scope, false),
scalaxb.toXML[String](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false),
scalaxb.toXML[Boolean](__obj.queryable, Some("urn:partner.soap.sforce.com"), Some("queryable"), __scope, false),
__obj.recordTypeInfos flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.RecordTypeInfo](_, Some("urn:partner.soap.sforce.com"), Some("recordTypeInfos"), __scope, false) },
scalaxb.toXML[Boolean](__obj.replicateable, Some("urn:partner.soap.sforce.com"), Some("replicateable"), __scope, false),
scalaxb.toXML[Boolean](__obj.retrieveable, Some("urn:partner.soap.sforce.com"), Some("retrieveable"), __scope, false),
scalaxb.toXML[Boolean](__obj.searchable, Some("urn:partner.soap.sforce.com"), Some("searchable"), __scope, false))
}
trait DefaultGeneratedDescribeSObjectResultSequence3Format extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence3] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence3] = Left("don't call me.")
def writes(__obj: com.drdnc.service.salesforce.generated.DescribeSObjectResultSequence3, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
Seq.concat(__obj.triggerable map { scalaxb.toXML[Boolean](_, Some("urn:partner.soap.sforce.com"), Some("triggerable"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[Boolean](__obj.undeletable, Some("urn:partner.soap.sforce.com"), Some("undeletable"), __scope, false),
scalaxb.toXML[Boolean](__obj.updateable, Some("urn:partner.soap.sforce.com"), Some("updateable"), __scope, false),
scalaxb.toXML[Option[String]](__obj.urlDetail, Some("urn:partner.soap.sforce.com"), Some("urlDetail"), __scope, false),
scalaxb.toXML[Option[String]](__obj.urlEdit, Some("urn:partner.soap.sforce.com"), Some("urlEdit"), __scope, false),
scalaxb.toXML[Option[String]](__obj.urlNew, Some("urn:partner.soap.sforce.com"), Some("urlNew"), __scope, false))
}
trait DefaultGeneratedDescribeGlobalSObjectResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeGlobalSObjectResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeGlobalSObjectResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeGlobalSObjectResult] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "activateable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "createable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "custom")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "customSetting")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "deletable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "deprecatedAndHidden")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "feedEnabled")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "keyPrefix")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "label")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "labelPlural")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "layoutable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "mergeable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "queryable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "replicateable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "retrieveable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "searchable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "triggerable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "undeletable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "updateable")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 ~ p8 ~ p9 ~ p10 ~ p11 ~ p12 ~ p13 ~ p14 ~ p15 ~ p16 ~ p17 ~ p18 ~ p19 ~ p20 =>
com.drdnc.service.salesforce.generated.DescribeGlobalSObjectResult(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p4, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p5, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p6, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p7, scalaxb.ElemName(node) :: stack),
p8.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[String](p9, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p10, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p11, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p12, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p13, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p14, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p15, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p16, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p17, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p18, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p19, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p20, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeGlobalSObjectResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Boolean](__obj.activateable, Some("urn:partner.soap.sforce.com"), Some("activateable"), __scope, false),
scalaxb.toXML[Boolean](__obj.createable, Some("urn:partner.soap.sforce.com"), Some("createable"), __scope, false),
scalaxb.toXML[Boolean](__obj.custom, Some("urn:partner.soap.sforce.com"), Some("custom"), __scope, false),
scalaxb.toXML[Boolean](__obj.customSetting, Some("urn:partner.soap.sforce.com"), Some("customSetting"), __scope, false),
scalaxb.toXML[Boolean](__obj.deletable, Some("urn:partner.soap.sforce.com"), Some("deletable"), __scope, false),
scalaxb.toXML[Boolean](__obj.deprecatedAndHidden, Some("urn:partner.soap.sforce.com"), Some("deprecatedAndHidden"), __scope, false),
scalaxb.toXML[Boolean](__obj.feedEnabled, Some("urn:partner.soap.sforce.com"), Some("feedEnabled"), __scope, false),
scalaxb.toXML[Option[String]](__obj.keyPrefix, Some("urn:partner.soap.sforce.com"), Some("keyPrefix"), __scope, false),
scalaxb.toXML[String](__obj.label, Some("urn:partner.soap.sforce.com"), Some("label"), __scope, false),
scalaxb.toXML[String](__obj.labelPlural, Some("urn:partner.soap.sforce.com"), Some("labelPlural"), __scope, false),
scalaxb.toXML[Boolean](__obj.layoutable, Some("urn:partner.soap.sforce.com"), Some("layoutable"), __scope, false),
scalaxb.toXML[Boolean](__obj.mergeable, Some("urn:partner.soap.sforce.com"), Some("mergeable"), __scope, false),
scalaxb.toXML[String](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false),
scalaxb.toXML[Boolean](__obj.queryable, Some("urn:partner.soap.sforce.com"), Some("queryable"), __scope, false),
scalaxb.toXML[Boolean](__obj.replicateable, Some("urn:partner.soap.sforce.com"), Some("replicateable"), __scope, false),
scalaxb.toXML[Boolean](__obj.retrieveable, Some("urn:partner.soap.sforce.com"), Some("retrieveable"), __scope, false),
scalaxb.toXML[Boolean](__obj.searchable, Some("urn:partner.soap.sforce.com"), Some("searchable"), __scope, false),
scalaxb.toXML[Boolean](__obj.triggerable, Some("urn:partner.soap.sforce.com"), Some("triggerable"), __scope, false),
scalaxb.toXML[Boolean](__obj.undeletable, Some("urn:partner.soap.sforce.com"), Some("undeletable"), __scope, false),
scalaxb.toXML[Boolean](__obj.updateable, Some("urn:partner.soap.sforce.com"), Some("updateable"), __scope, false))
}
trait DefaultGeneratedChildRelationshipFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.ChildRelationship] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("ChildRelationship")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.ChildRelationship] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "cascadeDelete")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "childSObject")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "deprecatedAndHidden")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "field")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "relationshipName")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 =>
com.drdnc.service.salesforce.generated.ChildRelationship(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p4, scalaxb.ElemName(node) :: stack),
p5.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.ChildRelationship, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Boolean](__obj.cascadeDelete, Some("urn:partner.soap.sforce.com"), Some("cascadeDelete"), __scope, false),
scalaxb.toXML[String](__obj.childSObject, Some("urn:partner.soap.sforce.com"), Some("childSObject"), __scope, false),
scalaxb.toXML[Boolean](__obj.deprecatedAndHidden, Some("urn:partner.soap.sforce.com"), Some("deprecatedAndHidden"), __scope, false),
scalaxb.toXML[String](__obj.field, Some("urn:partner.soap.sforce.com"), Some("field"), __scope, false),
__obj.relationshipName map { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("relationshipName"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedDescribeGlobalResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeGlobalResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeGlobalResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeGlobalResult] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "encoding")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "maxBatchSize")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sobjects")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.DescribeGlobalResult(p1.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Int](p2, scalaxb.ElemName(node) :: stack),
p3.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeGlobalSObjectResult](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeGlobalResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Option[String]](__obj.encoding, Some("urn:partner.soap.sforce.com"), Some("encoding"), __scope, false),
scalaxb.toXML[Int](__obj.maxBatchSize, Some("urn:partner.soap.sforce.com"), Some("maxBatchSize"), __scope, false),
__obj.sobjects flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeGlobalSObjectResult](_, Some("urn:partner.soap.sforce.com"), Some("sobjects"), __scope, false) })
}
def buildGeneratedFieldTypeTypeFormat = new DefaultGeneratedFieldTypeTypeFormat {}
trait DefaultGeneratedFieldTypeTypeFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.FieldTypeType] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.FieldTypeType] =
Right(com.drdnc.service.salesforce.generated.FieldTypeType.fromString(seq.text))
def writes(__obj: com.drdnc.service.salesforce.generated.FieldTypeType, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
scala.xml.Elem(scalaxb.Helper.getPrefix(__namespace, __scope).orNull,
__elementLabel getOrElse { error("missing element label.") },
scala.xml.Null, __scope, scala.xml.Text(__obj.toString))
}
def buildGeneratedSoapTypeFormat = new DefaultGeneratedSoapTypeFormat {}
trait DefaultGeneratedSoapTypeFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.SoapType] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.SoapType] =
Right(com.drdnc.service.salesforce.generated.SoapType.fromString(seq.text))
def writes(__obj: com.drdnc.service.salesforce.generated.SoapType, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
scala.xml.Elem(scalaxb.Helper.getPrefix(__namespace, __scope).orNull,
__elementLabel getOrElse { error("missing element label.") },
scala.xml.Null, __scope, scala.xml.Text(__obj.toString))
}
trait DefaultGeneratedFieldTypeFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.FieldType] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("Field")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.FieldType] =
(((scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "autoNumber")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "byteLength")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "calculated")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "calculatedFormula")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "caseSensitive")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "controllerName")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "createable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "custom")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "defaultValueFormula")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "defaultedOnCreate"))) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 ~ p8 ~ p9 ~ p10 => com.drdnc.service.salesforce.generated.FieldTypeSequence1(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack),
p4.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p5, scalaxb.ElemName(node) :: stack),
p6.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p7, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p8, scalaxb.ElemName(node) :: stack),
p9.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p10, scalaxb.ElemName(node) :: stack)) }) ~
((opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "dependentPicklist")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "deprecatedAndHidden")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "digits")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "externalId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "filterable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "groupable")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "htmlFormatted")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "idLookup")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "inlineHelpText")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "label"))) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 ~ p8 ~ p9 ~ p10 => com.drdnc.service.salesforce.generated.FieldTypeSequence2(p1.headOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p3, scalaxb.ElemName(node) :: stack),
p4.headOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p5, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p6, scalaxb.ElemName(node) :: stack),
p7.headOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p8, scalaxb.ElemName(node) :: stack),
p9.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[String](p10, scalaxb.ElemName(node) :: stack)) }) ~
(((scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "length")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "nameField")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "namePointing")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "nillable")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "picklistValues")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "precision")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "referenceTo")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "relationshipName")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "relationshipOrder"))) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 ~ p8 ~ p9 ~ p10 => com.drdnc.service.salesforce.generated.FieldTypeSequence3(scalaxb.fromXML[Int](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack),
p4.headOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p5, scalaxb.ElemName(node) :: stack),
p6.toSeq map { _.nilOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.PicklistEntry](_, scalaxb.ElemName(node) :: stack) }},
scalaxb.fromXML[Int](p7, scalaxb.ElemName(node) :: stack),
p8.toSeq map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
p9.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p10.headOption map { scalaxb.fromXML[Int](_, scalaxb.ElemName(node) :: stack) }) }) ~
(((scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "restrictedPicklist")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "scale")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "soapType")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sortable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "type")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "unique")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "updateable")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "writeRequiresMasterRead"))) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 ~ p8 => com.drdnc.service.salesforce.generated.FieldTypeSequence4(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[com.drdnc.service.salesforce.generated.SoapType](p3, scalaxb.ElemName(node) :: stack),
p4.headOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[com.drdnc.service.salesforce.generated.FieldTypeType](p5, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p6, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p7, scalaxb.ElemName(node) :: stack),
p8.headOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) }) }) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
com.drdnc.service.salesforce.generated.FieldType(p1,
p2,
p3,
p4) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.FieldType, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[com.drdnc.service.salesforce.generated.FieldTypeSequence1](__obj.fieldtypesequence1, None, Some("fieldtypesequence1"), __scope, false),
scalaxb.toXML[com.drdnc.service.salesforce.generated.FieldTypeSequence2](__obj.fieldtypesequence2, None, Some("fieldtypesequence2"), __scope, false),
scalaxb.toXML[com.drdnc.service.salesforce.generated.FieldTypeSequence3](__obj.fieldtypesequence3, None, Some("fieldtypesequence3"), __scope, false),
scalaxb.toXML[com.drdnc.service.salesforce.generated.FieldTypeSequence4](__obj.fieldtypesequence4, None, Some("fieldtypesequence4"), __scope, false))
}
trait DefaultGeneratedFieldTypeSequence1Format extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.FieldTypeSequence1] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.FieldTypeSequence1] = Left("don't call me.")
def writes(__obj: com.drdnc.service.salesforce.generated.FieldTypeSequence1, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
Seq.concat(scalaxb.toXML[Boolean](__obj.autoNumber, Some("urn:partner.soap.sforce.com"), Some("autoNumber"), __scope, false),
scalaxb.toXML[Int](__obj.byteLength, Some("urn:partner.soap.sforce.com"), Some("byteLength"), __scope, false),
scalaxb.toXML[Boolean](__obj.calculated, Some("urn:partner.soap.sforce.com"), Some("calculated"), __scope, false),
__obj.calculatedFormula map { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("calculatedFormula"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[Boolean](__obj.caseSensitive, Some("urn:partner.soap.sforce.com"), Some("caseSensitive"), __scope, false),
__obj.controllerName map { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("controllerName"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[Boolean](__obj.createable, Some("urn:partner.soap.sforce.com"), Some("createable"), __scope, false),
scalaxb.toXML[Boolean](__obj.custom, Some("urn:partner.soap.sforce.com"), Some("custom"), __scope, false),
__obj.defaultValueFormula map { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("defaultValueFormula"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[Boolean](__obj.defaultedOnCreate, Some("urn:partner.soap.sforce.com"), Some("defaultedOnCreate"), __scope, false))
}
trait DefaultGeneratedFieldTypeSequence2Format extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.FieldTypeSequence2] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.FieldTypeSequence2] = Left("don't call me.")
def writes(__obj: com.drdnc.service.salesforce.generated.FieldTypeSequence2, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
Seq.concat(__obj.dependentPicklist map { scalaxb.toXML[Boolean](_, Some("urn:partner.soap.sforce.com"), Some("dependentPicklist"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[Boolean](__obj.deprecatedAndHidden, Some("urn:partner.soap.sforce.com"), Some("deprecatedAndHidden"), __scope, false),
scalaxb.toXML[Int](__obj.digits, Some("urn:partner.soap.sforce.com"), Some("digits"), __scope, false),
__obj.externalId map { scalaxb.toXML[Boolean](_, Some("urn:partner.soap.sforce.com"), Some("externalId"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[Boolean](__obj.filterable, Some("urn:partner.soap.sforce.com"), Some("filterable"), __scope, false),
scalaxb.toXML[Boolean](__obj.groupable, Some("urn:partner.soap.sforce.com"), Some("groupable"), __scope, false),
__obj.htmlFormatted map { scalaxb.toXML[Boolean](_, Some("urn:partner.soap.sforce.com"), Some("htmlFormatted"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[Boolean](__obj.idLookup, Some("urn:partner.soap.sforce.com"), Some("idLookup"), __scope, false),
__obj.inlineHelpText map { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("inlineHelpText"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[String](__obj.label, Some("urn:partner.soap.sforce.com"), Some("label"), __scope, false))
}
trait DefaultGeneratedFieldTypeSequence3Format extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.FieldTypeSequence3] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.FieldTypeSequence3] = Left("don't call me.")
def writes(__obj: com.drdnc.service.salesforce.generated.FieldTypeSequence3, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
Seq.concat(scalaxb.toXML[Int](__obj.length, Some("urn:partner.soap.sforce.com"), Some("length"), __scope, false),
scalaxb.toXML[String](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false),
scalaxb.toXML[Boolean](__obj.nameField, Some("urn:partner.soap.sforce.com"), Some("nameField"), __scope, false),
__obj.namePointing map { scalaxb.toXML[Boolean](_, Some("urn:partner.soap.sforce.com"), Some("namePointing"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[Boolean](__obj.nillable, Some("urn:partner.soap.sforce.com"), Some("nillable"), __scope, false),
__obj.picklistValues flatMap { scalaxb.toXML[Option[com.drdnc.service.salesforce.generated.PicklistEntry]](_, Some("urn:partner.soap.sforce.com"), Some("picklistValues"), __scope, false) },
scalaxb.toXML[Int](__obj.precision, Some("urn:partner.soap.sforce.com"), Some("precision"), __scope, false),
__obj.referenceTo flatMap { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("referenceTo"), __scope, false) },
__obj.relationshipName map { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("relationshipName"), __scope, false) } getOrElse {Nil},
__obj.relationshipOrder map { scalaxb.toXML[Int](_, Some("urn:partner.soap.sforce.com"), Some("relationshipOrder"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedFieldTypeSequence4Format extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.FieldTypeSequence4] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.FieldTypeSequence4] = Left("don't call me.")
def writes(__obj: com.drdnc.service.salesforce.generated.FieldTypeSequence4, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
Seq.concat(scalaxb.toXML[Boolean](__obj.restrictedPicklist, Some("urn:partner.soap.sforce.com"), Some("restrictedPicklist"), __scope, false),
scalaxb.toXML[Int](__obj.scale, Some("urn:partner.soap.sforce.com"), Some("scale"), __scope, false),
scalaxb.toXML[com.drdnc.service.salesforce.generated.SoapType](__obj.soapType, Some("urn:partner.soap.sforce.com"), Some("soapType"), __scope, false),
__obj.sortable map { scalaxb.toXML[Boolean](_, Some("urn:partner.soap.sforce.com"), Some("sortable"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[com.drdnc.service.salesforce.generated.FieldTypeType](__obj.typeValue, Some("urn:partner.soap.sforce.com"), Some("type"), __scope, false),
scalaxb.toXML[Boolean](__obj.unique, Some("urn:partner.soap.sforce.com"), Some("unique"), __scope, false),
scalaxb.toXML[Boolean](__obj.updateable, Some("urn:partner.soap.sforce.com"), Some("updateable"), __scope, false),
__obj.writeRequiresMasterRead map { scalaxb.toXML[Boolean](_, Some("urn:partner.soap.sforce.com"), Some("writeRequiresMasterRead"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedPicklistEntryFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.PicklistEntry] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("PicklistEntry")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.PicklistEntry] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "active")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "defaultValue")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "label")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "validFor")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "value")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 =>
com.drdnc.service.salesforce.generated.PicklistEntry(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p2, scalaxb.ElemName(node) :: stack),
p3.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p4.headOption map { scalaxb.fromXML[scalaxb.Base64Binary](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[String](p5, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.PicklistEntry, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Boolean](__obj.active, Some("urn:partner.soap.sforce.com"), Some("active"), __scope, false),
scalaxb.toXML[Boolean](__obj.defaultValue, Some("urn:partner.soap.sforce.com"), Some("defaultValue"), __scope, false),
scalaxb.toXML[Option[String]](__obj.label, Some("urn:partner.soap.sforce.com"), Some("label"), __scope, false),
__obj.validFor map { scalaxb.toXML[scalaxb.Base64Binary](_, Some("urn:partner.soap.sforce.com"), Some("validFor"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[String](__obj.value, Some("urn:partner.soap.sforce.com"), Some("value"), __scope, false))
}
trait DefaultGeneratedDescribeDataCategoryGroupResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeDataCategoryGroupResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupResult] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "categoryCount")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "description")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "label")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sobject")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 =>
com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupResult(scalaxb.fromXML[Int](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p4, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p5, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Int](__obj.categoryCount, Some("urn:partner.soap.sforce.com"), Some("categoryCount"), __scope, false),
scalaxb.toXML[String](__obj.description, Some("urn:partner.soap.sforce.com"), Some("description"), __scope, false),
scalaxb.toXML[String](__obj.label, Some("urn:partner.soap.sforce.com"), Some("label"), __scope, false),
scalaxb.toXML[String](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false),
scalaxb.toXML[String](__obj.sobject, Some("urn:partner.soap.sforce.com"), Some("sobject"), __scope, false))
}
trait DefaultGeneratedDescribeDataCategoryGroupStructureResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructureResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeDataCategoryGroupStructureResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructureResult] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "description")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "label")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sobject")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "topCategories")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 =>
com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructureResult(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p4, scalaxb.ElemName(node) :: stack),
p5.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DataCategory](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructureResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.description, Some("urn:partner.soap.sforce.com"), Some("description"), __scope, false),
scalaxb.toXML[String](__obj.label, Some("urn:partner.soap.sforce.com"), Some("label"), __scope, false),
scalaxb.toXML[String](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false),
scalaxb.toXML[String](__obj.sobject, Some("urn:partner.soap.sforce.com"), Some("sobject"), __scope, false),
__obj.topCategories flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DataCategory](_, Some("urn:partner.soap.sforce.com"), Some("topCategories"), __scope, false) })
}
trait DefaultGeneratedDataCategoryGroupSobjectTypePairFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DataCategoryGroupSobjectTypePair] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DataCategoryGroupSobjectTypePair")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DataCategoryGroupSobjectTypePair] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "dataCategoryGroupName")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sobject")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.DataCategoryGroupSobjectTypePair(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DataCategoryGroupSobjectTypePair, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.dataCategoryGroupName, Some("urn:partner.soap.sforce.com"), Some("dataCategoryGroupName"), __scope, false),
scalaxb.toXML[String](__obj.sobject, Some("urn:partner.soap.sforce.com"), Some("sobject"), __scope, false))
}
trait DefaultGeneratedDataCategoryFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DataCategory] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DataCategory")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DataCategory] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "childCategories")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "label")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.DataCategory(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DataCategory](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DataCategory, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.childCategories flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DataCategory](_, Some("urn:partner.soap.sforce.com"), Some("childCategories"), __scope, false) },
scalaxb.toXML[String](__obj.label, Some("urn:partner.soap.sforce.com"), Some("label"), __scope, false),
scalaxb.toXML[String](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false))
}
trait DefaultGeneratedDescribeSoftphoneLayoutResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeSoftphoneLayoutResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutResult] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "callTypes")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "id")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutResult(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutCallType](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.callTypes flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutCallType](_, Some("urn:partner.soap.sforce.com"), Some("callTypes"), __scope, false) },
scalaxb.toXML[String](__obj.id, Some("urn:partner.soap.sforce.com"), Some("id"), __scope, false),
scalaxb.toXML[String](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false))
}
trait DefaultGeneratedDescribeSoftphoneLayoutCallTypeFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutCallType] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeSoftphoneLayoutCallType")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutCallType] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "infoFields")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "screenPopOptions")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "screenPopsOpenWithin")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sections")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 =>
com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutCallType(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutInfoField](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
p3.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeSoftphoneScreenPopOption](_, scalaxb.ElemName(node) :: stack) },
p4.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p5.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutSection](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutCallType, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.infoFields flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutInfoField](_, Some("urn:partner.soap.sforce.com"), Some("infoFields"), __scope, false) },
scalaxb.toXML[String](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false),
__obj.screenPopOptions flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeSoftphoneScreenPopOption](_, Some("urn:partner.soap.sforce.com"), Some("screenPopOptions"), __scope, false) },
__obj.screenPopsOpenWithin map { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("screenPopsOpenWithin"), __scope, false) } getOrElse {Nil},
__obj.sections flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutSection](_, Some("urn:partner.soap.sforce.com"), Some("sections"), __scope, false) })
}
trait DefaultGeneratedDescribeSoftphoneScreenPopOptionFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeSoftphoneScreenPopOption] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeSoftphoneScreenPopOption")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeSoftphoneScreenPopOption] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "matchType")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "screenPopData")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "screenPopType")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.DescribeSoftphoneScreenPopOption(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeSoftphoneScreenPopOption, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.matchType, Some("urn:partner.soap.sforce.com"), Some("matchType"), __scope, false),
scalaxb.toXML[String](__obj.screenPopData, Some("urn:partner.soap.sforce.com"), Some("screenPopData"), __scope, false),
scalaxb.toXML[String](__obj.screenPopType, Some("urn:partner.soap.sforce.com"), Some("screenPopType"), __scope, false))
}
trait DefaultGeneratedDescribeSoftphoneLayoutInfoFieldFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutInfoField] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeSoftphoneLayoutInfoField")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutInfoField] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutInfoField(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutInfoField, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[String](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false))
}
trait DefaultGeneratedDescribeSoftphoneLayoutSectionFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutSection] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeSoftphoneLayoutSection")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutSection] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "entityApiName")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "items")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutSection(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
p2.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutItem](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutSection, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.entityApiName, Some("urn:partner.soap.sforce.com"), Some("entityApiName"), __scope, false),
__obj.items flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutItem](_, Some("urn:partner.soap.sforce.com"), Some("items"), __scope, false) })
}
trait DefaultGeneratedDescribeSoftphoneLayoutItemFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutItem] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeSoftphoneLayoutItem")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutItem] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "itemApiName")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutItem(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutItem, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[String](__obj.itemApiName, Some("urn:partner.soap.sforce.com"), Some("itemApiName"), __scope, false))
}
trait DefaultGeneratedDescribeLayoutResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeLayoutResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeLayoutResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeLayoutResult] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "layouts")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "recordTypeMappings")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "recordTypeSelectorRequired")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.DescribeLayoutResult(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeLayoutType](_, scalaxb.ElemName(node) :: stack) },
p2.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.RecordTypeMapping](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeLayoutResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.layouts flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeLayoutType](_, Some("urn:partner.soap.sforce.com"), Some("layouts"), __scope, false) },
__obj.recordTypeMappings flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.RecordTypeMapping](_, Some("urn:partner.soap.sforce.com"), Some("recordTypeMappings"), __scope, false) },
scalaxb.toXML[Boolean](__obj.recordTypeSelectorRequired, Some("urn:partner.soap.sforce.com"), Some("recordTypeSelectorRequired"), __scope, false))
}
trait DefaultGeneratedDescribeLayoutTypeFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeLayoutType] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeLayout")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeLayoutType] =
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "buttonLayoutSection")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "detailLayoutSections")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "editLayoutSections")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "id")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "relatedLists")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 =>
com.drdnc.service.salesforce.generated.DescribeLayoutType(p1.headOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeLayoutButtonSection](_, scalaxb.ElemName(node) :: stack) },
p2.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeLayoutSection](_, scalaxb.ElemName(node) :: stack) },
p3.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeLayoutSection](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[String](p4, scalaxb.ElemName(node) :: stack),
p5.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.RelatedList](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeLayoutType, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.buttonLayoutSection map { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeLayoutButtonSection](_, Some("urn:partner.soap.sforce.com"), Some("buttonLayoutSection"), __scope, false) } getOrElse {Nil},
__obj.detailLayoutSections flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeLayoutSection](_, Some("urn:partner.soap.sforce.com"), Some("detailLayoutSections"), __scope, false) },
__obj.editLayoutSections flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeLayoutSection](_, Some("urn:partner.soap.sforce.com"), Some("editLayoutSections"), __scope, false) },
scalaxb.toXML[String](__obj.id, Some("urn:partner.soap.sforce.com"), Some("id"), __scope, false),
__obj.relatedLists flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.RelatedList](_, Some("urn:partner.soap.sforce.com"), Some("relatedLists"), __scope, false) })
}
trait DefaultGeneratedDescribeLayoutSectionFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeLayoutSection] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeLayoutSection")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeLayoutSection] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "columns")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "heading")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "layoutRows")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "rows")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "useCollapsibleSection")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "useHeading")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 =>
com.drdnc.service.salesforce.generated.DescribeLayoutSection(scalaxb.fromXML[Int](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
p3.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeLayoutRow](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Int](p4, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p5, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p6, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeLayoutSection, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Int](__obj.columns, Some("urn:partner.soap.sforce.com"), Some("columns"), __scope, false),
scalaxb.toXML[String](__obj.heading, Some("urn:partner.soap.sforce.com"), Some("heading"), __scope, false),
__obj.layoutRows flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeLayoutRow](_, Some("urn:partner.soap.sforce.com"), Some("layoutRows"), __scope, false) },
scalaxb.toXML[Int](__obj.rows, Some("urn:partner.soap.sforce.com"), Some("rows"), __scope, false),
scalaxb.toXML[Boolean](__obj.useCollapsibleSection, Some("urn:partner.soap.sforce.com"), Some("useCollapsibleSection"), __scope, false),
scalaxb.toXML[Boolean](__obj.useHeading, Some("urn:partner.soap.sforce.com"), Some("useHeading"), __scope, false))
}
trait DefaultGeneratedDescribeLayoutButtonSectionFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeLayoutButtonSection] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeLayoutButtonSection")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeLayoutButtonSection] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "detailButtons")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeLayoutButtonSection(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeLayoutButton](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeLayoutButtonSection, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.detailButtons flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeLayoutButton](_, Some("urn:partner.soap.sforce.com"), Some("detailButtons"), __scope, false) })
}
trait DefaultGeneratedDescribeLayoutRowFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeLayoutRow] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeLayoutRow")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeLayoutRow] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "layoutItems")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "numItems")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.DescribeLayoutRow(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeLayoutItem](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Int](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeLayoutRow, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.layoutItems flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeLayoutItem](_, Some("urn:partner.soap.sforce.com"), Some("layoutItems"), __scope, false) },
scalaxb.toXML[Int](__obj.numItems, Some("urn:partner.soap.sforce.com"), Some("numItems"), __scope, false))
}
trait DefaultGeneratedDescribeLayoutItemFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeLayoutItem] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeLayoutItem")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeLayoutItem] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "editable")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "label")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "layoutComponents")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "placeholder")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "required")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 =>
com.drdnc.service.salesforce.generated.DescribeLayoutItem(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p3.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeLayoutComponent](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p4, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p5, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeLayoutItem, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Boolean](__obj.editable, Some("urn:partner.soap.sforce.com"), Some("editable"), __scope, false),
scalaxb.toXML[Option[String]](__obj.label, Some("urn:partner.soap.sforce.com"), Some("label"), __scope, false),
__obj.layoutComponents flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeLayoutComponent](_, Some("urn:partner.soap.sforce.com"), Some("layoutComponents"), __scope, false) },
scalaxb.toXML[Boolean](__obj.placeholder, Some("urn:partner.soap.sforce.com"), Some("placeholder"), __scope, false),
scalaxb.toXML[Boolean](__obj.required, Some("urn:partner.soap.sforce.com"), Some("required"), __scope, false))
}
trait DefaultGeneratedDescribeLayoutButtonFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeLayoutButton] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeLayoutButton")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeLayoutButton] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "custom")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "label")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.DescribeLayoutButton(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p3.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeLayoutButton, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Boolean](__obj.custom, Some("urn:partner.soap.sforce.com"), Some("custom"), __scope, false),
scalaxb.toXML[Option[String]](__obj.label, Some("urn:partner.soap.sforce.com"), Some("label"), __scope, false),
scalaxb.toXML[Option[String]](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false))
}
trait DefaultGeneratedDescribeLayoutComponentFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeLayoutComponent] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeLayoutComponent")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeLayoutComponent] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "displayLines")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "tabOrder")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "type")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "value")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
com.drdnc.service.salesforce.generated.DescribeLayoutComponent(scalaxb.fromXML[Int](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[com.drdnc.service.salesforce.generated.LayoutComponentType](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p4, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeLayoutComponent, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Int](__obj.displayLines, Some("urn:partner.soap.sforce.com"), Some("displayLines"), __scope, false),
scalaxb.toXML[Int](__obj.tabOrder, Some("urn:partner.soap.sforce.com"), Some("tabOrder"), __scope, false),
scalaxb.toXML[com.drdnc.service.salesforce.generated.LayoutComponentType](__obj.typeValue, Some("urn:partner.soap.sforce.com"), Some("type"), __scope, false),
scalaxb.toXML[String](__obj.value, Some("urn:partner.soap.sforce.com"), Some("value"), __scope, false))
}
def buildGeneratedLayoutComponentTypeFormat = new DefaultGeneratedLayoutComponentTypeFormat {}
trait DefaultGeneratedLayoutComponentTypeFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.LayoutComponentType] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.LayoutComponentType] =
Right(com.drdnc.service.salesforce.generated.LayoutComponentType.fromString(seq.text))
def writes(__obj: com.drdnc.service.salesforce.generated.LayoutComponentType, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
scala.xml.Elem(scalaxb.Helper.getPrefix(__namespace, __scope).orNull,
__elementLabel getOrElse { error("missing element label.") },
scala.xml.Null, __scope, scala.xml.Text(__obj.toString))
}
trait DefaultGeneratedRecordTypeInfoFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.RecordTypeInfo] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("RecordTypeInfo")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.RecordTypeInfo] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "available")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "defaultRecordTypeMapping")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "recordTypeId")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
com.drdnc.service.salesforce.generated.RecordTypeInfo(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack),
p4.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.RecordTypeInfo, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Boolean](__obj.available, Some("urn:partner.soap.sforce.com"), Some("available"), __scope, false),
scalaxb.toXML[Boolean](__obj.defaultRecordTypeMapping, Some("urn:partner.soap.sforce.com"), Some("defaultRecordTypeMapping"), __scope, false),
scalaxb.toXML[String](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false),
scalaxb.toXML[Option[String]](__obj.recordTypeId, Some("urn:partner.soap.sforce.com"), Some("recordTypeId"), __scope, false))
}
trait DefaultGeneratedRecordTypeMappingFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.RecordTypeMapping] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("RecordTypeMapping")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.RecordTypeMapping] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "available")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "defaultRecordTypeMapping")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "layoutId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "picklistsForRecordType")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "recordTypeId")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 =>
com.drdnc.service.salesforce.generated.RecordTypeMapping(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p4, scalaxb.ElemName(node) :: stack),
p5.toSeq map { _.nilOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.PicklistForRecordType](_, scalaxb.ElemName(node) :: stack) }},
p6.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.RecordTypeMapping, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Boolean](__obj.available, Some("urn:partner.soap.sforce.com"), Some("available"), __scope, false),
scalaxb.toXML[Boolean](__obj.defaultRecordTypeMapping, Some("urn:partner.soap.sforce.com"), Some("defaultRecordTypeMapping"), __scope, false),
scalaxb.toXML[String](__obj.layoutId, Some("urn:partner.soap.sforce.com"), Some("layoutId"), __scope, false),
scalaxb.toXML[String](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false),
__obj.picklistsForRecordType flatMap { scalaxb.toXML[Option[com.drdnc.service.salesforce.generated.PicklistForRecordType]](_, Some("urn:partner.soap.sforce.com"), Some("picklistsForRecordType"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.recordTypeId, Some("urn:partner.soap.sforce.com"), Some("recordTypeId"), __scope, false))
}
trait DefaultGeneratedPicklistForRecordTypeFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.PicklistForRecordType] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("PicklistForRecordType")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.PicklistForRecordType] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "picklistName")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "picklistValues")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.PicklistForRecordType(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
p2.toSeq map { _.nilOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.PicklistEntry](_, scalaxb.ElemName(node) :: stack) }}) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.PicklistForRecordType, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.picklistName, Some("urn:partner.soap.sforce.com"), Some("picklistName"), __scope, false),
__obj.picklistValues flatMap { scalaxb.toXML[Option[com.drdnc.service.salesforce.generated.PicklistEntry]](_, Some("urn:partner.soap.sforce.com"), Some("picklistValues"), __scope, false) })
}
trait DefaultGeneratedRelatedListFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.RelatedList] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("RelatedList")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.RelatedList] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "columns")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "custom")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "field")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "label")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "limitRows")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sobject")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sort")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 ~ p8 =>
com.drdnc.service.salesforce.generated.RelatedList(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.RelatedListColumn](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p2, scalaxb.ElemName(node) :: stack),
p3.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[String](p4, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p5, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p6, scalaxb.ElemName(node) :: stack),
p7.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p8.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.RelatedListSort](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.RelatedList, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.columns flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.RelatedListColumn](_, Some("urn:partner.soap.sforce.com"), Some("columns"), __scope, false) },
scalaxb.toXML[Boolean](__obj.custom, Some("urn:partner.soap.sforce.com"), Some("custom"), __scope, false),
scalaxb.toXML[Option[String]](__obj.field, Some("urn:partner.soap.sforce.com"), Some("field"), __scope, false),
scalaxb.toXML[String](__obj.label, Some("urn:partner.soap.sforce.com"), Some("label"), __scope, false),
scalaxb.toXML[Int](__obj.limitRows, Some("urn:partner.soap.sforce.com"), Some("limitRows"), __scope, false),
scalaxb.toXML[String](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false),
scalaxb.toXML[Option[String]](__obj.sobject, Some("urn:partner.soap.sforce.com"), Some("sobject"), __scope, false),
__obj.sort flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.RelatedListSort](_, Some("urn:partner.soap.sforce.com"), Some("sort"), __scope, false) })
}
trait DefaultGeneratedRelatedListColumnFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.RelatedListColumn] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("RelatedListColumn")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.RelatedListColumn] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "field")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "format")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "label")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "name")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
com.drdnc.service.salesforce.generated.RelatedListColumn(p1.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p4, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.RelatedListColumn, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Option[String]](__obj.field, Some("urn:partner.soap.sforce.com"), Some("field"), __scope, false),
scalaxb.toXML[Option[String]](__obj.format, Some("urn:partner.soap.sforce.com"), Some("format"), __scope, false),
scalaxb.toXML[String](__obj.label, Some("urn:partner.soap.sforce.com"), Some("label"), __scope, false),
scalaxb.toXML[String](__obj.name, Some("urn:partner.soap.sforce.com"), Some("name"), __scope, false))
}
trait DefaultGeneratedRelatedListSortFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.RelatedListSort] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("RelatedListSort")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.RelatedListSort] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "ascending")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "column")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.RelatedListSort(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.RelatedListSort, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Boolean](__obj.ascending, Some("urn:partner.soap.sforce.com"), Some("ascending"), __scope, false),
scalaxb.toXML[String](__obj.column, Some("urn:partner.soap.sforce.com"), Some("column"), __scope, false))
}
trait DefaultGeneratedEmailFileAttachmentFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.EmailFileAttachment] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("EmailFileAttachment")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.EmailFileAttachment] =
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "body")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "contentType")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "fileName")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "inline")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
com.drdnc.service.salesforce.generated.EmailFileAttachment(p1.headOption map { _.nilOption map { scalaxb.fromXML[scalaxb.Base64Binary](_, scalaxb.ElemName(node) :: stack) }},
p2.headOption map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack),
p4.headOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.EmailFileAttachment, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.body map { scalaxb.toXML[Option[scalaxb.Base64Binary]](_, Some("urn:partner.soap.sforce.com"), Some("body"), __scope, false) } getOrElse {Nil},
__obj.contentType map { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("contentType"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[String](__obj.fileName, Some("urn:partner.soap.sforce.com"), Some("fileName"), __scope, false),
__obj.inline map { scalaxb.toXML[Boolean](_, Some("urn:partner.soap.sforce.com"), Some("inline"), __scope, false) } getOrElse {Nil})
}
def buildGeneratedEmailPriorityFormat = new DefaultGeneratedEmailPriorityFormat {}
trait DefaultGeneratedEmailPriorityFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.EmailPriority] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.EmailPriority] =
Right(com.drdnc.service.salesforce.generated.EmailPriority.fromString(seq.text))
def writes(__obj: com.drdnc.service.salesforce.generated.EmailPriority, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
scala.xml.Elem(scalaxb.Helper.getPrefix(__namespace, __scope).orNull,
__elementLabel getOrElse { error("missing element label.") },
scala.xml.Null, __scope, scala.xml.Text(__obj.toString))
}
trait DefaultGeneratedEmailableFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Emailable] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.Emailable] = seq match {
case node: scala.xml.Node =>
scalaxb.Helper.instanceType(node) match {
case (Some("urn:partner.soap.sforce.com"), Some("MassEmailMessage")) => Right(scalaxb.fromXML[com.drdnc.service.salesforce.generated.MassEmailMessage](node, stack))
case (Some("urn:partner.soap.sforce.com"), Some("SingleEmailMessage")) => Right(scalaxb.fromXML[com.drdnc.service.salesforce.generated.SingleEmailMessage](node, stack))
case _ => Right(scalaxb.fromXML[com.drdnc.service.salesforce.generated.Email](node, stack))
}
case _ => Left("reads failed: seq must be scala.xml.Node")
}
def writes(__obj: com.drdnc.service.salesforce.generated.Emailable, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq = __obj match {
case x: com.drdnc.service.salesforce.generated.MassEmailMessage => scalaxb.toXML[com.drdnc.service.salesforce.generated.MassEmailMessage](x, __namespace, __elementLabel, __scope, true)
case x: com.drdnc.service.salesforce.generated.SingleEmailMessage => scalaxb.toXML[com.drdnc.service.salesforce.generated.SingleEmailMessage](x, __namespace, __elementLabel, __scope, true)
case x: com.drdnc.service.salesforce.generated.Email => scalaxb.toXML[com.drdnc.service.salesforce.generated.Email](x, __namespace, __elementLabel, __scope, false)
}
}
trait DefaultGeneratedEmailFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.Email] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("Email")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.Email] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "bccSender")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "emailPriority")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "replyTo")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "saveAsActivity")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "senderDisplayName")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "subject")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "useSignature")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 =>
com.drdnc.service.salesforce.generated.Email(p1.nilOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
p2.nilOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.EmailPriority](_, scalaxb.ElemName(node) :: stack) },
p3.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p4.nilOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
p5.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p6.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p7.nilOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Email, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Option[Boolean]](__obj.bccSender, Some("urn:partner.soap.sforce.com"), Some("bccSender"), __scope, false),
scalaxb.toXML[Option[com.drdnc.service.salesforce.generated.EmailPriority]](__obj.emailPriority, Some("urn:partner.soap.sforce.com"), Some("emailPriority"), __scope, false),
scalaxb.toXML[Option[String]](__obj.replyTo, Some("urn:partner.soap.sforce.com"), Some("replyTo"), __scope, false),
scalaxb.toXML[Option[Boolean]](__obj.saveAsActivity, Some("urn:partner.soap.sforce.com"), Some("saveAsActivity"), __scope, false),
scalaxb.toXML[Option[String]](__obj.senderDisplayName, Some("urn:partner.soap.sforce.com"), Some("senderDisplayName"), __scope, false),
scalaxb.toXML[Option[String]](__obj.subject, Some("urn:partner.soap.sforce.com"), Some("subject"), __scope, false),
scalaxb.toXML[Option[Boolean]](__obj.useSignature, Some("urn:partner.soap.sforce.com"), Some("useSignature"), __scope, false))
}
trait DefaultGeneratedMassEmailMessageFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.MassEmailMessage] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("MassEmailMessage")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.MassEmailMessage] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "bccSender")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "emailPriority")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "replyTo")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "saveAsActivity")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "senderDisplayName")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "subject")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "useSignature")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "description")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "targetObjectIds")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "templateId")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "whatIds")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 ~ p8 ~ p9 ~ p10 ~ p11 =>
com.drdnc.service.salesforce.generated.MassEmailMessage(p1.nilOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
p2.nilOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.EmailPriority](_, scalaxb.ElemName(node) :: stack) },
p3.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p4.nilOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
p5.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p6.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p7.nilOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
p8.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p9.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[String](p10, scalaxb.ElemName(node) :: stack),
p11.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.MassEmailMessage, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Option[Boolean]](__obj.bccSender, Some("urn:partner.soap.sforce.com"), Some("bccSender"), __scope, false),
scalaxb.toXML[Option[com.drdnc.service.salesforce.generated.EmailPriority]](__obj.emailPriority, Some("urn:partner.soap.sforce.com"), Some("emailPriority"), __scope, false),
scalaxb.toXML[Option[String]](__obj.replyTo, Some("urn:partner.soap.sforce.com"), Some("replyTo"), __scope, false),
scalaxb.toXML[Option[Boolean]](__obj.saveAsActivity, Some("urn:partner.soap.sforce.com"), Some("saveAsActivity"), __scope, false),
scalaxb.toXML[Option[String]](__obj.senderDisplayName, Some("urn:partner.soap.sforce.com"), Some("senderDisplayName"), __scope, false),
scalaxb.toXML[Option[String]](__obj.subject, Some("urn:partner.soap.sforce.com"), Some("subject"), __scope, false),
scalaxb.toXML[Option[Boolean]](__obj.useSignature, Some("urn:partner.soap.sforce.com"), Some("useSignature"), __scope, false),
scalaxb.toXML[Option[String]](__obj.description, Some("urn:partner.soap.sforce.com"), Some("description"), __scope, false),
__obj.targetObjectIds flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("targetObjectIds"), __scope, false) },
scalaxb.toXML[String](__obj.templateId, Some("urn:partner.soap.sforce.com"), Some("templateId"), __scope, false),
__obj.whatIds flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("whatIds"), __scope, false) })
}
trait DefaultGeneratedSingleEmailMessageFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.SingleEmailMessage] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("SingleEmailMessage")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.SingleEmailMessage] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "bccSender")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "emailPriority")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "replyTo")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "saveAsActivity")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "senderDisplayName")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "subject")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "useSignature")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "bccAddresses")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "ccAddresses")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "charset")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "documentAttachments")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "htmlBody")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "inReplyTo")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "fileAttachments")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "orgWideEmailAddressId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "plainTextBody")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "references")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "targetObjectId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "templateId")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "toAddresses")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "whatId")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 ~ p7 ~ p8 ~ p9 ~ p10 ~ p11 ~ p12 ~ p13 ~ p14 ~ p15 ~ p16 ~ p17 ~ p18 ~ p19 ~ p20 ~ p21 =>
com.drdnc.service.salesforce.generated.SingleEmailMessage(p1.nilOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
p2.nilOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.EmailPriority](_, scalaxb.ElemName(node) :: stack) },
p3.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p4.nilOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
p5.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p6.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p7.nilOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) },
p8.toSeq map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
p9.toSeq map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
p10.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p11.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p12.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p13.headOption map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
p14.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.EmailFileAttachment](_, scalaxb.ElemName(node) :: stack) },
p15.headOption map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
p16.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p17.headOption map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
p18.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p19.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p20.toSeq map { _.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }},
p21.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.SingleEmailMessage, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Option[Boolean]](__obj.bccSender, Some("urn:partner.soap.sforce.com"), Some("bccSender"), __scope, false),
scalaxb.toXML[Option[com.drdnc.service.salesforce.generated.EmailPriority]](__obj.emailPriority, Some("urn:partner.soap.sforce.com"), Some("emailPriority"), __scope, false),
scalaxb.toXML[Option[String]](__obj.replyTo, Some("urn:partner.soap.sforce.com"), Some("replyTo"), __scope, false),
scalaxb.toXML[Option[Boolean]](__obj.saveAsActivity, Some("urn:partner.soap.sforce.com"), Some("saveAsActivity"), __scope, false),
scalaxb.toXML[Option[String]](__obj.senderDisplayName, Some("urn:partner.soap.sforce.com"), Some("senderDisplayName"), __scope, false),
scalaxb.toXML[Option[String]](__obj.subject, Some("urn:partner.soap.sforce.com"), Some("subject"), __scope, false),
scalaxb.toXML[Option[Boolean]](__obj.useSignature, Some("urn:partner.soap.sforce.com"), Some("useSignature"), __scope, false),
__obj.bccAddresses flatMap { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("bccAddresses"), __scope, false) },
__obj.ccAddresses flatMap { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("ccAddresses"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.charset, Some("urn:partner.soap.sforce.com"), Some("charset"), __scope, false),
__obj.documentAttachments flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("documentAttachments"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.htmlBody, Some("urn:partner.soap.sforce.com"), Some("htmlBody"), __scope, false),
__obj.inReplyTo map { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("inReplyTo"), __scope, false) } getOrElse {Nil},
__obj.fileAttachments flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.EmailFileAttachment](_, Some("urn:partner.soap.sforce.com"), Some("fileAttachments"), __scope, false) },
__obj.orgWideEmailAddressId map { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("orgWideEmailAddressId"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[Option[String]](__obj.plainTextBody, Some("urn:partner.soap.sforce.com"), Some("plainTextBody"), __scope, false),
__obj.references map { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("references"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[Option[String]](__obj.targetObjectId, Some("urn:partner.soap.sforce.com"), Some("targetObjectId"), __scope, false),
scalaxb.toXML[Option[String]](__obj.templateId, Some("urn:partner.soap.sforce.com"), Some("templateId"), __scope, false),
__obj.toAddresses flatMap { scalaxb.toXML[Option[String]](_, Some("urn:partner.soap.sforce.com"), Some("toAddresses"), __scope, false) },
scalaxb.toXML[Option[String]](__obj.whatId, Some("urn:partner.soap.sforce.com"), Some("whatId"), __scope, false))
}
trait DefaultGeneratedSendEmailResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.SendEmailResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("SendEmailResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.SendEmailResult] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "errors")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "success")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.SendEmailResult(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.SendEmailError](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.SendEmailResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.errors flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.SendEmailError](_, Some("urn:partner.soap.sforce.com"), Some("errors"), __scope, false) },
scalaxb.toXML[Boolean](__obj.success, Some("urn:partner.soap.sforce.com"), Some("success"), __scope, false))
}
trait DefaultGeneratedDescribeTabSetResultFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeTabSetResult] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeTabSetResult")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeTabSetResult] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "label")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "logoUrl")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "namespace")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "selected")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "tabs")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 =>
com.drdnc.service.salesforce.generated.DescribeTabSetResult(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
p3.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p4, scalaxb.ElemName(node) :: stack),
p5.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeTab](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeTabSetResult, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.label, Some("urn:partner.soap.sforce.com"), Some("label"), __scope, false),
scalaxb.toXML[String](__obj.logoUrl, Some("urn:partner.soap.sforce.com"), Some("logoUrl"), __scope, false),
__obj.namespace map { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("namespace"), __scope, false) } getOrElse {Nil},
scalaxb.toXML[Boolean](__obj.selected, Some("urn:partner.soap.sforce.com"), Some("selected"), __scope, false),
__obj.tabs flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeTab](_, Some("urn:partner.soap.sforce.com"), Some("tabs"), __scope, false) })
}
trait DefaultGeneratedDescribeTabFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeTab] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("DescribeTab")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeTab] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "custom")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "iconUrl")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "label")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "miniIconUrl")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sobjectName")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "url")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 ~ p5 ~ p6 =>
com.drdnc.service.salesforce.generated.DescribeTab(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p4, scalaxb.ElemName(node) :: stack),
p5.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[String](p6, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeTab, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Boolean](__obj.custom, Some("urn:partner.soap.sforce.com"), Some("custom"), __scope, false),
scalaxb.toXML[String](__obj.iconUrl, Some("urn:partner.soap.sforce.com"), Some("iconUrl"), __scope, false),
scalaxb.toXML[String](__obj.label, Some("urn:partner.soap.sforce.com"), Some("label"), __scope, false),
scalaxb.toXML[String](__obj.miniIconUrl, Some("urn:partner.soap.sforce.com"), Some("miniIconUrl"), __scope, false),
scalaxb.toXML[Option[String]](__obj.sobjectName, Some("urn:partner.soap.sforce.com"), Some("sobjectName"), __scope, false),
scalaxb.toXML[String](__obj.url, Some("urn:partner.soap.sforce.com"), Some("url"), __scope, false))
}
trait DefaultGeneratedLoginFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.Login] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.Login] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "username")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "password")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.Login(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Login, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.username, Some("urn:partner.soap.sforce.com"), Some("username"), __scope, false),
scalaxb.toXML[String](__obj.password, Some("urn:partner.soap.sforce.com"), Some("password"), __scope, false))
}
trait DefaultGeneratedLoginResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.LoginResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.LoginResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.LoginResponse(scalaxb.fromXML[com.drdnc.service.salesforce.generated.LoginResult](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.LoginResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[com.drdnc.service.salesforce.generated.LoginResult](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedDescribeSObjectFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeSObject] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeSObject] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sObjectType")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeSObject(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeSObject, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[String](__obj.sObjectType, Some("urn:partner.soap.sforce.com"), Some("sObjectType"), __scope, false))
}
trait DefaultGeneratedDescribeSObjectResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeSObjectResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeSObjectResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeSObjectResponse(p1.nilOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeSObjectResult](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeSObjectResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[Option[com.drdnc.service.salesforce.generated.DescribeSObjectResult]](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedDescribeSObjectsFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeSObjects] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeSObjects] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sObjectType")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeSObjects(p1.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeSObjects, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.sObjectType flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("sObjectType"), __scope, false) })
}
trait DefaultGeneratedDescribeSObjectsResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeSObjectsResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeSObjectsResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeSObjectsResponse(p1.toSeq map { _.nilOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeSObjectResult](_, scalaxb.ElemName(node) :: stack) }}: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeSObjectsResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[Option[com.drdnc.service.salesforce.generated.DescribeSObjectResult]](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedDescribeGlobalFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeGlobal] with scalaxb.CanWriteChildNodes[com.drdnc.service.salesforce.generated.DescribeGlobal] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.DescribeGlobal] = seq match {
case node: scala.xml.Node => Right(com.drdnc.service.salesforce.generated.DescribeGlobal())
case _ => Left("reads failed: seq must be scala.xml.Node")
}
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeGlobal, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Nil
}
trait DefaultGeneratedDescribeGlobalResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeGlobalResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeGlobalResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeGlobalResponse(scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeGlobalResult](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeGlobalResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeGlobalResult](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedDescribeDataCategoryGroupsFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroups] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroups] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sObjectType")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeDataCategoryGroups(p1.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeDataCategoryGroups, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.sObjectType flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("sObjectType"), __scope, false) })
}
trait DefaultGeneratedDescribeDataCategoryGroupsResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupsResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupsResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupsResponse(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupResult](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupsResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupResult](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedDescribeDataCategoryGroupStructuresFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructures] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructures] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "pairs")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "topCategoriesOnly")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructures(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DataCategoryGroupSobjectTypePair](_, scalaxb.ElemName(node) :: stack) },
scalaxb.fromXML[Boolean](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructures, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(__obj.pairs flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DataCategoryGroupSobjectTypePair](_, Some("urn:partner.soap.sforce.com"), Some("pairs"), __scope, false) },
scalaxb.toXML[Boolean](__obj.topCategoriesOnly, Some("urn:partner.soap.sforce.com"), Some("topCategoriesOnly"), __scope, false))
}
trait DefaultGeneratedDescribeDataCategoryGroupStructuresResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructuresResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructuresResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructuresResponse(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructureResult](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructuresResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructureResult](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedDescribeLayoutFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeLayout] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeLayout] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sObjectType")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "recordTypeIds")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.DescribeLayout(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
p2.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeLayout, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.sObjectType, Some("urn:partner.soap.sforce.com"), Some("sObjectType"), __scope, false),
__obj.recordTypeIds flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("recordTypeIds"), __scope, false) })
}
trait DefaultGeneratedDescribeLayoutResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeLayoutResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeLayoutResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeLayoutResponse(p1.nilOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeLayoutResult](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeLayoutResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[Option[com.drdnc.service.salesforce.generated.DescribeLayoutResult]](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedDescribeSoftphoneLayoutFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayout] with scalaxb.CanWriteChildNodes[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayout] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.DescribeSoftphoneLayout] = seq match {
case node: scala.xml.Node => Right(com.drdnc.service.salesforce.generated.DescribeSoftphoneLayout())
case _ => Left("reads failed: seq must be scala.xml.Node")
}
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeSoftphoneLayout, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Nil
}
trait DefaultGeneratedDescribeSoftphoneLayoutResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutResponse(p1.nilOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutResult](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[Option[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutResult]](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedDescribeTabsFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DescribeTabs] with scalaxb.CanWriteChildNodes[com.drdnc.service.salesforce.generated.DescribeTabs] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.DescribeTabs] = seq match {
case node: scala.xml.Node => Right(com.drdnc.service.salesforce.generated.DescribeTabs())
case _ => Left("reads failed: seq must be scala.xml.Node")
}
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeTabs, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Nil
}
trait DefaultGeneratedDescribeTabsResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DescribeTabsResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DescribeTabsResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DescribeTabsResponse(p1.toSeq map { _.nilOption map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DescribeTabSetResult](_, scalaxb.ElemName(node) :: stack) }}: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DescribeTabsResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[Option[com.drdnc.service.salesforce.generated.DescribeTabSetResult]](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedCreateFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.Create] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.Create] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sObjects")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.Create(p1.toSeq map { scalaxb.fromXML[generated.SObject](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Create, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.sObjects flatMap { scalaxb.toXML[generated.SObject](_, Some("urn:partner.soap.sforce.com"), Some("sObjects"), __scope, false) })
}
trait DefaultGeneratedCreateResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.CreateResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.CreateResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.CreateResponse(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.SaveResult](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.CreateResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.SaveResult](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedSendEmailFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.SendEmail] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.SendEmail] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "messages")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.SendEmail(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.Emailable](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.SendEmail, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.messages flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.Emailable](_, Some("urn:partner.soap.sforce.com"), Some("messages"), __scope, false) })
}
trait DefaultGeneratedSendEmailResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.SendEmailResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.SendEmailResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.SendEmailResponse(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.SendEmailResult](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.SendEmailResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.SendEmailResult](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedUpdateFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.Update] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.Update] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sObjects")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.Update(p1.toSeq map { scalaxb.fromXML[generated.SObject](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Update, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.sObjects flatMap { scalaxb.toXML[generated.SObject](_, Some("urn:partner.soap.sforce.com"), Some("sObjects"), __scope, false) })
}
trait DefaultGeneratedUpdateResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.UpdateResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.UpdateResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.UpdateResponse(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.SaveResult](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.UpdateResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.SaveResult](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedUpsertFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.Upsert] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.Upsert] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "externalIDFieldName")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sObjects")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.Upsert(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
p2.toSeq map { scalaxb.fromXML[generated.SObject](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Upsert, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.externalIDFieldName, Some("urn:partner.soap.sforce.com"), Some("externalIDFieldName"), __scope, false),
__obj.sObjects flatMap { scalaxb.toXML[generated.SObject](_, Some("urn:partner.soap.sforce.com"), Some("sObjects"), __scope, false) })
}
trait DefaultGeneratedUpsertResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.UpsertResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.UpsertResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.UpsertResponse(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.UpsertResult](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.UpsertResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.UpsertResult](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedMergeFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.Merge] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.Merge] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "request")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.Merge(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.MergeRequest](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Merge, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.request flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.MergeRequest](_, Some("urn:partner.soap.sforce.com"), Some("request"), __scope, false) })
}
trait DefaultGeneratedMergeResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.MergeResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.MergeResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.MergeResponse(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.MergeResult](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.MergeResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.MergeResult](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedDeleteFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.Delete] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.Delete] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "ids")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.Delete(p1.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Delete, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.ids flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("ids"), __scope, false) })
}
trait DefaultGeneratedDeleteResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DeleteResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DeleteResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DeleteResponse(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.DeleteResult](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DeleteResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.DeleteResult](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedUndeleteFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.Undelete] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.Undelete] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "ids")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.Undelete(p1.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Undelete, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.ids flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("ids"), __scope, false) })
}
trait DefaultGeneratedUndeleteResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.UndeleteResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.UndeleteResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.UndeleteResponse(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.UndeleteResult](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.UndeleteResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.UndeleteResult](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedEmptyRecycleBinFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.EmptyRecycleBin] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.EmptyRecycleBin] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "ids")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.EmptyRecycleBin(p1.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.EmptyRecycleBin, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.ids flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("ids"), __scope, false) })
}
trait DefaultGeneratedEmptyRecycleBinResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.EmptyRecycleBinResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.EmptyRecycleBinResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.EmptyRecycleBinResponse(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.EmptyRecycleBinResult](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.EmptyRecycleBinResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.EmptyRecycleBinResult](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedProcessFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.Process] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.Process] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "actions")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.Process(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.ProcessRequestable](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Process, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.actions flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.ProcessRequestable](_, Some("urn:partner.soap.sforce.com"), Some("actions"), __scope, false) })
}
trait DefaultGeneratedProcessResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.ProcessResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.ProcessResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.ProcessResponse(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.ProcessResult](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.ProcessResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.ProcessResult](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedRetrieveFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.Retrieve] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.Retrieve] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "fieldList")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sObjectType")) ~
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "ids")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.Retrieve(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
p3.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Retrieve, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.fieldList, Some("urn:partner.soap.sforce.com"), Some("fieldList"), __scope, false),
scalaxb.toXML[String](__obj.sObjectType, Some("urn:partner.soap.sforce.com"), Some("sObjectType"), __scope, false),
__obj.ids flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("ids"), __scope, false) })
}
trait DefaultGeneratedRetrieveResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.RetrieveResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.RetrieveResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.RetrieveResponse(p1.toSeq map { _.nilOption map { scalaxb.fromXML[generated.SObject](_, scalaxb.ElemName(node) :: stack) }}: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.RetrieveResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[Option[generated.SObject]](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedConvertLeadFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.ConvertLead] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.ConvertLead] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "leadConverts")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.ConvertLead(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.LeadConvert](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.ConvertLead, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.leadConverts flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.LeadConvert](_, Some("urn:partner.soap.sforce.com"), Some("leadConverts"), __scope, false) })
}
trait DefaultGeneratedConvertLeadResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.ConvertLeadResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.ConvertLeadResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.ConvertLeadResponse(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.LeadConvertResult](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.ConvertLeadResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.LeadConvertResult](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedGetUpdatedFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.GetUpdated] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.GetUpdated] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sObjectType")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "startDate")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "endDate")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.GetUpdated(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[javax.xml.datatype.XMLGregorianCalendar](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[javax.xml.datatype.XMLGregorianCalendar](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.GetUpdated, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.sObjectType, Some("urn:partner.soap.sforce.com"), Some("sObjectType"), __scope, false),
scalaxb.toXML[javax.xml.datatype.XMLGregorianCalendar](__obj.startDate, Some("urn:partner.soap.sforce.com"), Some("startDate"), __scope, false),
scalaxb.toXML[javax.xml.datatype.XMLGregorianCalendar](__obj.endDate, Some("urn:partner.soap.sforce.com"), Some("endDate"), __scope, false))
}
trait DefaultGeneratedGetUpdatedResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.GetUpdatedResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.GetUpdatedResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.GetUpdatedResponse(scalaxb.fromXML[com.drdnc.service.salesforce.generated.GetUpdatedResult](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.GetUpdatedResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[com.drdnc.service.salesforce.generated.GetUpdatedResult](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedGetDeletedFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.GetDeleted] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.GetDeleted] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sObjectType")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "startDate")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "endDate")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.GetDeleted(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[javax.xml.datatype.XMLGregorianCalendar](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[javax.xml.datatype.XMLGregorianCalendar](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.GetDeleted, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.sObjectType, Some("urn:partner.soap.sforce.com"), Some("sObjectType"), __scope, false),
scalaxb.toXML[javax.xml.datatype.XMLGregorianCalendar](__obj.startDate, Some("urn:partner.soap.sforce.com"), Some("startDate"), __scope, false),
scalaxb.toXML[javax.xml.datatype.XMLGregorianCalendar](__obj.endDate, Some("urn:partner.soap.sforce.com"), Some("endDate"), __scope, false))
}
trait DefaultGeneratedGetDeletedResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.GetDeletedResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.GetDeletedResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.GetDeletedResponse(scalaxb.fromXML[com.drdnc.service.salesforce.generated.GetDeletedResult](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.GetDeletedResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[com.drdnc.service.salesforce.generated.GetDeletedResult](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedLogoutFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.Logout] with scalaxb.CanWriteChildNodes[com.drdnc.service.salesforce.generated.Logout] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.Logout] = seq match {
case node: scala.xml.Node => Right(com.drdnc.service.salesforce.generated.Logout())
case _ => Left("reads failed: seq must be scala.xml.Node")
}
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Logout, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Nil
}
trait DefaultGeneratedLogoutResponseFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.LogoutResponse] with scalaxb.CanWriteChildNodes[com.drdnc.service.salesforce.generated.LogoutResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.LogoutResponse] = seq match {
case node: scala.xml.Node => Right(com.drdnc.service.salesforce.generated.LogoutResponse())
case _ => Left("reads failed: seq must be scala.xml.Node")
}
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.LogoutResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Nil
}
trait DefaultGeneratedInvalidateSessionsFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.InvalidateSessions] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.InvalidateSessions] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sessionIds")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.InvalidateSessions(p1.toSeq map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.InvalidateSessions, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.sessionIds flatMap { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("sessionIds"), __scope, false) })
}
trait DefaultGeneratedInvalidateSessionsResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.InvalidateSessionsResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.InvalidateSessionsResponse] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.InvalidateSessionsResponse(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.InvalidateSessionsResult](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.InvalidateSessionsResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.result flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.InvalidateSessionsResult](_, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false) })
}
trait DefaultGeneratedQueryFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.Query] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.Query] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "queryString")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.Query(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Query, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[String](__obj.queryString, Some("urn:partner.soap.sforce.com"), Some("queryString"), __scope, false))
}
trait DefaultGeneratedQueryResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.QueryResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.QueryResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.QueryResponse(scalaxb.fromXML[com.drdnc.service.salesforce.generated.QueryResult](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.QueryResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[com.drdnc.service.salesforce.generated.QueryResult](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedQueryAllFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.QueryAll] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.QueryAll] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "queryString")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.QueryAll(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.QueryAll, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[String](__obj.queryString, Some("urn:partner.soap.sforce.com"), Some("queryString"), __scope, false))
}
trait DefaultGeneratedQueryAllResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.QueryAllResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.QueryAllResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.QueryAllResponse(scalaxb.fromXML[com.drdnc.service.salesforce.generated.QueryResult](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.QueryAllResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[com.drdnc.service.salesforce.generated.QueryResult](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedQueryMoreFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.QueryMore] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.QueryMore] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "queryLocator")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.QueryMore(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.QueryMore, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[String](__obj.queryLocator, Some("urn:partner.soap.sforce.com"), Some("queryLocator"), __scope, false))
}
trait DefaultGeneratedQueryMoreResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.QueryMoreResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.QueryMoreResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.QueryMoreResponse(scalaxb.fromXML[com.drdnc.service.salesforce.generated.QueryResult](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.QueryMoreResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[com.drdnc.service.salesforce.generated.QueryResult](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedSearchFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.Search] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.Search] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "searchString")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.Search(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.Search, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[String](__obj.searchString, Some("urn:partner.soap.sforce.com"), Some("searchString"), __scope, false))
}
trait DefaultGeneratedSearchResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.SearchResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.SearchResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.SearchResponse(scalaxb.fromXML[com.drdnc.service.salesforce.generated.SearchResult](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.SearchResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[com.drdnc.service.salesforce.generated.SearchResult](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedGetServerTimestampFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetServerTimestamp] with scalaxb.CanWriteChildNodes[com.drdnc.service.salesforce.generated.GetServerTimestamp] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.GetServerTimestamp] = seq match {
case node: scala.xml.Node => Right(com.drdnc.service.salesforce.generated.GetServerTimestamp())
case _ => Left("reads failed: seq must be scala.xml.Node")
}
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.GetServerTimestamp, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Nil
}
trait DefaultGeneratedGetServerTimestampResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.GetServerTimestampResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.GetServerTimestampResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.GetServerTimestampResponse(scalaxb.fromXML[com.drdnc.service.salesforce.generated.GetServerTimestampResult](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.GetServerTimestampResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[com.drdnc.service.salesforce.generated.GetServerTimestampResult](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedSetPasswordFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.SetPassword] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.SetPassword] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "password")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.SetPassword(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.SetPassword, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.userId, Some("urn:partner.soap.sforce.com"), Some("userId"), __scope, false),
scalaxb.toXML[String](__obj.password, Some("urn:partner.soap.sforce.com"), Some("password"), __scope, false))
}
trait DefaultGeneratedSetPasswordResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.SetPasswordResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.SetPasswordResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.SetPasswordResponse(scalaxb.fromXML[com.drdnc.service.salesforce.generated.SetPasswordResult](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.SetPasswordResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[com.drdnc.service.salesforce.generated.SetPasswordResult](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedResetPasswordFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.ResetPassword] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.ResetPassword] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "userId")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.ResetPassword(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.ResetPassword, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[String](__obj.userId, Some("urn:partner.soap.sforce.com"), Some("userId"), __scope, false))
}
trait DefaultGeneratedResetPasswordResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.ResetPasswordResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.ResetPasswordResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.ResetPasswordResponse(scalaxb.fromXML[com.drdnc.service.salesforce.generated.ResetPasswordResult](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.ResetPasswordResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[com.drdnc.service.salesforce.generated.ResetPasswordResult](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedGetUserInfoFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.GetUserInfo] with scalaxb.CanWriteChildNodes[com.drdnc.service.salesforce.generated.GetUserInfo] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.GetUserInfo] = seq match {
case node: scala.xml.Node => Right(com.drdnc.service.salesforce.generated.GetUserInfo())
case _ => Left("reads failed: seq must be scala.xml.Node")
}
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.GetUserInfo, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Nil
}
trait DefaultGeneratedGetUserInfoResponseFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.GetUserInfoResponse] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.GetUserInfoResponse] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "result")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.GetUserInfoResponse(scalaxb.fromXML[com.drdnc.service.salesforce.generated.GetUserInfoResult](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.GetUserInfoResponse, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[com.drdnc.service.salesforce.generated.GetUserInfoResult](__obj.result, Some("urn:partner.soap.sforce.com"), Some("result"), __scope, false))
}
trait DefaultGeneratedSessionHeaderFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.SessionHeader] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.SessionHeader] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "sessionId")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.SessionHeader(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.SessionHeader, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[String](__obj.sessionId, Some("urn:partner.soap.sforce.com"), Some("sessionId"), __scope, false))
}
trait DefaultGeneratedLoginScopeHeaderFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.LoginScopeHeader] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.LoginScopeHeader] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "organizationId")) ~
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "portalId")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.LoginScopeHeader(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack),
p2.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.LoginScopeHeader, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[String](__obj.organizationId, Some("urn:partner.soap.sforce.com"), Some("organizationId"), __scope, false),
__obj.portalId map { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("portalId"), __scope, false) } getOrElse {Nil})
}
trait DefaultGeneratedCallOptionsFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.CallOptions] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.CallOptions] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "client")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "defaultNamespace")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.CallOptions(p1.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p2.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.CallOptions, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Option[String]](__obj.client, Some("urn:partner.soap.sforce.com"), Some("client"), __scope, false),
scalaxb.toXML[Option[String]](__obj.defaultNamespace, Some("urn:partner.soap.sforce.com"), Some("defaultNamespace"), __scope, false))
}
trait DefaultGeneratedQueryOptionsFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.QueryOptions] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.QueryOptions] =
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "batchSize")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.QueryOptions(p1.headOption map { scalaxb.fromXML[Int](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.QueryOptions, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.batchSize map { scalaxb.toXML[Int](_, Some("urn:partner.soap.sforce.com"), Some("batchSize"), __scope, false) } getOrElse {Nil})
}
def buildGeneratedDebugLevelFormat = new DefaultGeneratedDebugLevelFormat {}
trait DefaultGeneratedDebugLevelFormat extends scalaxb.XMLFormat[com.drdnc.service.salesforce.generated.DebugLevel] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, com.drdnc.service.salesforce.generated.DebugLevel] =
Right(com.drdnc.service.salesforce.generated.DebugLevel.fromString(seq.text))
def writes(__obj: com.drdnc.service.salesforce.generated.DebugLevel, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
scala.xml.Elem(scalaxb.Helper.getPrefix(__namespace, __scope).orNull,
__elementLabel getOrElse { error("missing element label.") },
scala.xml.Null, __scope, scala.xml.Text(__obj.toString))
}
trait DefaultGeneratedDebuggingHeaderFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DebuggingHeader] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DebuggingHeader] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "debugLevel")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DebuggingHeader(scalaxb.fromXML[com.drdnc.service.salesforce.generated.DebugLevel](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DebuggingHeader, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[com.drdnc.service.salesforce.generated.DebugLevel](__obj.debugLevel, Some("urn:partner.soap.sforce.com"), Some("debugLevel"), __scope, false))
}
trait DefaultGeneratedDebuggingInfoFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DebuggingInfo] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DebuggingInfo] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "debugLog")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DebuggingInfo(scalaxb.fromXML[String](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DebuggingInfo, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[String](__obj.debugLog, Some("urn:partner.soap.sforce.com"), Some("debugLog"), __scope, false))
}
trait DefaultGeneratedPackageVersionFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.PackageVersion] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
override def typeName: Option[String] = Some("PackageVersion")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.PackageVersion] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "majorNumber")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "minorNumber")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "namespace")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.PackageVersion(scalaxb.fromXML[Int](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.PackageVersion, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Int](__obj.majorNumber, Some("urn:partner.soap.sforce.com"), Some("majorNumber"), __scope, false),
scalaxb.toXML[Int](__obj.minorNumber, Some("urn:partner.soap.sforce.com"), Some("minorNumber"), __scope, false),
scalaxb.toXML[String](__obj.namespace, Some("urn:partner.soap.sforce.com"), Some("namespace"), __scope, false))
}
trait DefaultGeneratedPackageVersionHeaderFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.PackageVersionHeader] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.PackageVersionHeader] =
rep(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "packageVersions")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.PackageVersionHeader(p1.toSeq map { scalaxb.fromXML[com.drdnc.service.salesforce.generated.PackageVersion](_, scalaxb.ElemName(node) :: stack) }: _*) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.PackageVersionHeader, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.packageVersions flatMap { scalaxb.toXML[com.drdnc.service.salesforce.generated.PackageVersion](_, Some("urn:partner.soap.sforce.com"), Some("packageVersions"), __scope, false) })
}
trait DefaultGeneratedAllowFieldTruncationHeaderFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.AllowFieldTruncationHeader] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.AllowFieldTruncationHeader] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "allowFieldTruncation")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.AllowFieldTruncationHeader(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.AllowFieldTruncationHeader, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[Boolean](__obj.allowFieldTruncation, Some("urn:partner.soap.sforce.com"), Some("allowFieldTruncation"), __scope, false))
}
trait DefaultGeneratedDisableFeedTrackingHeaderFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.DisableFeedTrackingHeader] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.DisableFeedTrackingHeader] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "disableFeedTracking")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.DisableFeedTrackingHeader(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.DisableFeedTrackingHeader, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[Boolean](__obj.disableFeedTracking, Some("urn:partner.soap.sforce.com"), Some("disableFeedTracking"), __scope, false))
}
trait DefaultGeneratedAllOrNoneHeaderFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.AllOrNoneHeader] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.AllOrNoneHeader] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "allOrNone")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.AllOrNoneHeader(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.AllOrNoneHeader, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[Boolean](__obj.allOrNone, Some("urn:partner.soap.sforce.com"), Some("allOrNone"), __scope, false))
}
trait DefaultGeneratedMruHeaderFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.MruHeader] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.MruHeader] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "updateMru")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.MruHeader(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.MruHeader, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[Boolean](__obj.updateMru, Some("urn:partner.soap.sforce.com"), Some("updateMru"), __scope, false))
}
trait DefaultGeneratedEmailHeaderFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.EmailHeader] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.EmailHeader] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "triggerAutoResponseEmail")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "triggerOtherEmail")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "triggerUserEmail")) ^^
{ case p1 ~ p2 ~ p3 =>
com.drdnc.service.salesforce.generated.EmailHeader(scalaxb.fromXML[Boolean](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Boolean](p3, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.EmailHeader, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Boolean](__obj.triggerAutoResponseEmail, Some("urn:partner.soap.sforce.com"), Some("triggerAutoResponseEmail"), __scope, false),
scalaxb.toXML[Boolean](__obj.triggerOtherEmail, Some("urn:partner.soap.sforce.com"), Some("triggerOtherEmail"), __scope, false),
scalaxb.toXML[Boolean](__obj.triggerUserEmail, Some("urn:partner.soap.sforce.com"), Some("triggerUserEmail"), __scope, false))
}
trait DefaultGeneratedAssignmentRuleHeaderFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.AssignmentRuleHeader] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.AssignmentRuleHeader] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "assignmentRuleId")) ~
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "useDefaultRule")) ^^
{ case p1 ~ p2 =>
com.drdnc.service.salesforce.generated.AssignmentRuleHeader(p1.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
p2.nilOption map { scalaxb.fromXML[Boolean](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.AssignmentRuleHeader, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[Option[String]](__obj.assignmentRuleId, Some("urn:partner.soap.sforce.com"), Some("assignmentRuleId"), __scope, false),
scalaxb.toXML[Option[Boolean]](__obj.useDefaultRule, Some("urn:partner.soap.sforce.com"), Some("useDefaultRule"), __scope, false))
}
trait DefaultGeneratedUserTerritoryDeleteHeaderFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.UserTerritoryDeleteHeader] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.UserTerritoryDeleteHeader] =
(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "transferToUserId")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.UserTerritoryDeleteHeader(p1.nilOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.UserTerritoryDeleteHeader, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(scalaxb.toXML[Option[String]](__obj.transferToUserId, Some("urn:partner.soap.sforce.com"), Some("transferToUserId"), __scope, false))
}
trait DefaultGeneratedLocaleOptionsFormat extends scalaxb.ElemNameParser[com.drdnc.service.salesforce.generated.LocaleOptions] {
val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[com.drdnc.service.salesforce.generated.LocaleOptions] =
opt(scalaxb.ElemName(Some("urn:partner.soap.sforce.com"), "language")) ^^
{ case p1 =>
com.drdnc.service.salesforce.generated.LocaleOptions(p1.headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) }
def writesChildNodes(__obj: com.drdnc.service.salesforce.generated.LocaleOptions, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
(__obj.language map { scalaxb.toXML[String](_, Some("urn:partner.soap.sforce.com"), Some("language"), __scope, false) } getOrElse {Nil})
}
def buildGeneratedExceptionCodeFormat = new DefaultGeneratedExceptionCodeFormat {}
trait DefaultGeneratedExceptionCodeFormat extends scalaxb.XMLFormat[generated.ExceptionCode] {
val targetNamespace: Option[String] = Some("urn:fault.partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, generated.ExceptionCode] =
Right(generated.ExceptionCode.fromString(seq.text))
def writes(__obj: generated.ExceptionCode, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
scala.xml.Elem(scalaxb.Helper.getPrefix(__namespace, __scope).orNull,
__elementLabel getOrElse { error("missing element label.") },
scala.xml.Null, __scope, scala.xml.Text(__obj.toString))
}
def buildGeneratedFaultCodeFormat = new DefaultGeneratedFaultCodeFormat {}
trait DefaultGeneratedFaultCodeFormat extends scalaxb.XMLFormat[generated.FaultCode] {
val targetNamespace: Option[String] = Some("urn:fault.partner.soap.sforce.com")
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, generated.FaultCode] =
Right(generated.FaultCode.fromString(seq.text))
def writes(__obj: generated.FaultCode, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
scala.xml.Elem(scalaxb.Helper.getPrefix(__namespace, __scope).orNull,
__elementLabel getOrElse { error("missing element label.") },
scala.xml.Null, __scope, scala.xml.Text(__obj.toString))
}
trait DefaultGeneratedApiFaultableFormat extends scalaxb.XMLFormat[generated.ApiFaultable] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, generated.ApiFaultable] = seq match {
case node: scala.xml.Node =>
scalaxb.Helper.instanceType(node) match {
case (Some("urn:fault.partner.soap.sforce.com"), Some("ApiQueryFault")) => Right(scalaxb.fromXML[generated.ApiQueryFaultable](node, stack))
case (Some("urn:fault.partner.soap.sforce.com"), Some("LoginFault")) => Right(scalaxb.fromXML[generated.LoginFault](node, stack))
case (Some("urn:fault.partner.soap.sforce.com"), Some("InvalidQueryLocatorFault")) => Right(scalaxb.fromXML[generated.InvalidQueryLocatorFault](node, stack))
case (Some("urn:fault.partner.soap.sforce.com"), Some("InvalidNewPasswordFault")) => Right(scalaxb.fromXML[generated.InvalidNewPasswordFault](node, stack))
case (Some("urn:fault.partner.soap.sforce.com"), Some("InvalidIdFault")) => Right(scalaxb.fromXML[generated.InvalidIdFault](node, stack))
case (Some("urn:fault.partner.soap.sforce.com"), Some("UnexpectedErrorFault")) => Right(scalaxb.fromXML[generated.UnexpectedErrorFault](node, stack))
case _ => Right(scalaxb.fromXML[generated.ApiFault](node, stack))
}
case _ => Left("reads failed: seq must be scala.xml.Node")
}
def writes(__obj: generated.ApiFaultable, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq = __obj match {
case x: generated.ApiQueryFaultable => scalaxb.toXML[generated.ApiQueryFaultable](x, __namespace, __elementLabel, __scope, true)
case x: generated.LoginFault => scalaxb.toXML[generated.LoginFault](x, __namespace, __elementLabel, __scope, true)
case x: generated.InvalidQueryLocatorFault => scalaxb.toXML[generated.InvalidQueryLocatorFault](x, __namespace, __elementLabel, __scope, true)
case x: generated.InvalidNewPasswordFault => scalaxb.toXML[generated.InvalidNewPasswordFault](x, __namespace, __elementLabel, __scope, true)
case x: generated.InvalidIdFault => scalaxb.toXML[generated.InvalidIdFault](x, __namespace, __elementLabel, __scope, true)
case x: generated.UnexpectedErrorFault => scalaxb.toXML[generated.UnexpectedErrorFault](x, __namespace, __elementLabel, __scope, true)
case x: generated.ApiFault => scalaxb.toXML[generated.ApiFault](x, __namespace, __elementLabel, __scope, false)
}
}
trait DefaultGeneratedApiFaultFormat extends scalaxb.ElemNameParser[generated.ApiFault] {
val targetNamespace: Option[String] = Some("urn:fault.partner.soap.sforce.com")
override def typeName: Option[String] = Some("ApiFault")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[generated.ApiFault] =
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionCode")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionMessage")) ^^
{ case p1 ~ p2 =>
generated.ApiFault(scalaxb.fromXML[generated.ExceptionCode](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: generated.ApiFault, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[generated.ExceptionCode](__obj.exceptionCode, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionCode"), __scope, false),
scalaxb.toXML[String](__obj.exceptionMessage, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionMessage"), __scope, false))
}
trait DefaultGeneratedApiQueryFaultableFormat extends scalaxb.XMLFormat[generated.ApiQueryFaultable] {
def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, generated.ApiQueryFaultable] = seq match {
case node: scala.xml.Node =>
scalaxb.Helper.instanceType(node) match {
case (Some("urn:fault.partner.soap.sforce.com"), Some("InvalidFieldFault")) => Right(scalaxb.fromXML[generated.InvalidFieldFault](node, stack))
case (Some("urn:fault.partner.soap.sforce.com"), Some("InvalidSObjectFault")) => Right(scalaxb.fromXML[generated.InvalidSObjectFault](node, stack))
case (Some("urn:fault.partner.soap.sforce.com"), Some("MalformedQueryFault")) => Right(scalaxb.fromXML[generated.MalformedQueryFault](node, stack))
case (Some("urn:fault.partner.soap.sforce.com"), Some("MalformedSearchFault")) => Right(scalaxb.fromXML[generated.MalformedSearchFault](node, stack))
case _ => Right(scalaxb.fromXML[generated.ApiQueryFault](node, stack))
}
case _ => Left("reads failed: seq must be scala.xml.Node")
}
def writes(__obj: generated.ApiQueryFaultable, __namespace: Option[String], __elementLabel: Option[String],
__scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq = __obj match {
case x: generated.InvalidFieldFault => scalaxb.toXML[generated.InvalidFieldFault](x, __namespace, __elementLabel, __scope, true)
case x: generated.InvalidSObjectFault => scalaxb.toXML[generated.InvalidSObjectFault](x, __namespace, __elementLabel, __scope, true)
case x: generated.MalformedQueryFault => scalaxb.toXML[generated.MalformedQueryFault](x, __namespace, __elementLabel, __scope, true)
case x: generated.MalformedSearchFault => scalaxb.toXML[generated.MalformedSearchFault](x, __namespace, __elementLabel, __scope, true)
case x: generated.ApiQueryFault => scalaxb.toXML[generated.ApiQueryFault](x, __namespace, __elementLabel, __scope, false)
}
}
trait DefaultGeneratedApiQueryFaultFormat extends scalaxb.ElemNameParser[generated.ApiQueryFault] {
val targetNamespace: Option[String] = Some("urn:fault.partner.soap.sforce.com")
override def typeName: Option[String] = Some("ApiQueryFault")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[generated.ApiQueryFault] =
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionCode")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionMessage")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "row")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "column")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
generated.ApiQueryFault(scalaxb.fromXML[generated.ExceptionCode](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p4, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: generated.ApiQueryFault, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[generated.ExceptionCode](__obj.exceptionCode, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionCode"), __scope, false),
scalaxb.toXML[String](__obj.exceptionMessage, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionMessage"), __scope, false),
scalaxb.toXML[Int](__obj.row, Some("urn:fault.partner.soap.sforce.com"), Some("row"), __scope, false),
scalaxb.toXML[Int](__obj.column, Some("urn:fault.partner.soap.sforce.com"), Some("column"), __scope, false))
}
trait DefaultGeneratedLoginFaultFormat extends scalaxb.ElemNameParser[generated.LoginFault] {
val targetNamespace: Option[String] = Some("urn:fault.partner.soap.sforce.com")
override def typeName: Option[String] = Some("LoginFault")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[generated.LoginFault] =
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionCode")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionMessage")) ^^
{ case p1 ~ p2 =>
generated.LoginFault(scalaxb.fromXML[generated.ExceptionCode](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: generated.LoginFault, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[generated.ExceptionCode](__obj.exceptionCode, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionCode"), __scope, false),
scalaxb.toXML[String](__obj.exceptionMessage, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionMessage"), __scope, false))
}
trait DefaultGeneratedInvalidQueryLocatorFaultFormat extends scalaxb.ElemNameParser[generated.InvalidQueryLocatorFault] {
val targetNamespace: Option[String] = Some("urn:fault.partner.soap.sforce.com")
override def typeName: Option[String] = Some("InvalidQueryLocatorFault")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[generated.InvalidQueryLocatorFault] =
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionCode")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionMessage")) ^^
{ case p1 ~ p2 =>
generated.InvalidQueryLocatorFault(scalaxb.fromXML[generated.ExceptionCode](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: generated.InvalidQueryLocatorFault, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[generated.ExceptionCode](__obj.exceptionCode, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionCode"), __scope, false),
scalaxb.toXML[String](__obj.exceptionMessage, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionMessage"), __scope, false))
}
trait DefaultGeneratedInvalidNewPasswordFaultFormat extends scalaxb.ElemNameParser[generated.InvalidNewPasswordFault] {
val targetNamespace: Option[String] = Some("urn:fault.partner.soap.sforce.com")
override def typeName: Option[String] = Some("InvalidNewPasswordFault")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[generated.InvalidNewPasswordFault] =
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionCode")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionMessage")) ^^
{ case p1 ~ p2 =>
generated.InvalidNewPasswordFault(scalaxb.fromXML[generated.ExceptionCode](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: generated.InvalidNewPasswordFault, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[generated.ExceptionCode](__obj.exceptionCode, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionCode"), __scope, false),
scalaxb.toXML[String](__obj.exceptionMessage, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionMessage"), __scope, false))
}
trait DefaultGeneratedInvalidIdFaultFormat extends scalaxb.ElemNameParser[generated.InvalidIdFault] {
val targetNamespace: Option[String] = Some("urn:fault.partner.soap.sforce.com")
override def typeName: Option[String] = Some("InvalidIdFault")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[generated.InvalidIdFault] =
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionCode")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionMessage")) ^^
{ case p1 ~ p2 =>
generated.InvalidIdFault(scalaxb.fromXML[generated.ExceptionCode](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: generated.InvalidIdFault, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[generated.ExceptionCode](__obj.exceptionCode, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionCode"), __scope, false),
scalaxb.toXML[String](__obj.exceptionMessage, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionMessage"), __scope, false))
}
trait DefaultGeneratedUnexpectedErrorFaultFormat extends scalaxb.ElemNameParser[generated.UnexpectedErrorFault] {
val targetNamespace: Option[String] = Some("urn:fault.partner.soap.sforce.com")
override def typeName: Option[String] = Some("UnexpectedErrorFault")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[generated.UnexpectedErrorFault] =
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionCode")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionMessage")) ^^
{ case p1 ~ p2 =>
generated.UnexpectedErrorFault(scalaxb.fromXML[generated.ExceptionCode](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: generated.UnexpectedErrorFault, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[generated.ExceptionCode](__obj.exceptionCode, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionCode"), __scope, false),
scalaxb.toXML[String](__obj.exceptionMessage, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionMessage"), __scope, false))
}
trait DefaultGeneratedInvalidFieldFaultFormat extends scalaxb.ElemNameParser[generated.InvalidFieldFault] {
val targetNamespace: Option[String] = Some("urn:fault.partner.soap.sforce.com")
override def typeName: Option[String] = Some("InvalidFieldFault")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[generated.InvalidFieldFault] =
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionCode")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionMessage")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "row")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "column")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
generated.InvalidFieldFault(scalaxb.fromXML[generated.ExceptionCode](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p4, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: generated.InvalidFieldFault, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[generated.ExceptionCode](__obj.exceptionCode, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionCode"), __scope, false),
scalaxb.toXML[String](__obj.exceptionMessage, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionMessage"), __scope, false),
scalaxb.toXML[Int](__obj.row, Some("urn:fault.partner.soap.sforce.com"), Some("row"), __scope, false),
scalaxb.toXML[Int](__obj.column, Some("urn:fault.partner.soap.sforce.com"), Some("column"), __scope, false))
}
trait DefaultGeneratedInvalidSObjectFaultFormat extends scalaxb.ElemNameParser[generated.InvalidSObjectFault] {
val targetNamespace: Option[String] = Some("urn:fault.partner.soap.sforce.com")
override def typeName: Option[String] = Some("InvalidSObjectFault")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[generated.InvalidSObjectFault] =
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionCode")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionMessage")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "row")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "column")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
generated.InvalidSObjectFault(scalaxb.fromXML[generated.ExceptionCode](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p4, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: generated.InvalidSObjectFault, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[generated.ExceptionCode](__obj.exceptionCode, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionCode"), __scope, false),
scalaxb.toXML[String](__obj.exceptionMessage, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionMessage"), __scope, false),
scalaxb.toXML[Int](__obj.row, Some("urn:fault.partner.soap.sforce.com"), Some("row"), __scope, false),
scalaxb.toXML[Int](__obj.column, Some("urn:fault.partner.soap.sforce.com"), Some("column"), __scope, false))
}
trait DefaultGeneratedMalformedQueryFaultFormat extends scalaxb.ElemNameParser[generated.MalformedQueryFault] {
val targetNamespace: Option[String] = Some("urn:fault.partner.soap.sforce.com")
override def typeName: Option[String] = Some("MalformedQueryFault")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[generated.MalformedQueryFault] =
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionCode")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionMessage")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "row")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "column")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
generated.MalformedQueryFault(scalaxb.fromXML[generated.ExceptionCode](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p4, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: generated.MalformedQueryFault, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[generated.ExceptionCode](__obj.exceptionCode, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionCode"), __scope, false),
scalaxb.toXML[String](__obj.exceptionMessage, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionMessage"), __scope, false),
scalaxb.toXML[Int](__obj.row, Some("urn:fault.partner.soap.sforce.com"), Some("row"), __scope, false),
scalaxb.toXML[Int](__obj.column, Some("urn:fault.partner.soap.sforce.com"), Some("column"), __scope, false))
}
trait DefaultGeneratedMalformedSearchFaultFormat extends scalaxb.ElemNameParser[generated.MalformedSearchFault] {
val targetNamespace: Option[String] = Some("urn:fault.partner.soap.sforce.com")
override def typeName: Option[String] = Some("MalformedSearchFault")
def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[generated.MalformedSearchFault] =
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionCode")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "exceptionMessage")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "row")) ~
(scalaxb.ElemName(Some("urn:fault.partner.soap.sforce.com"), "column")) ^^
{ case p1 ~ p2 ~ p3 ~ p4 =>
generated.MalformedSearchFault(scalaxb.fromXML[generated.ExceptionCode](p1, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[String](p2, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p3, scalaxb.ElemName(node) :: stack),
scalaxb.fromXML[Int](p4, scalaxb.ElemName(node) :: stack)) }
def writesChildNodes(__obj: generated.MalformedSearchFault, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
Seq.concat(scalaxb.toXML[generated.ExceptionCode](__obj.exceptionCode, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionCode"), __scope, false),
scalaxb.toXML[String](__obj.exceptionMessage, Some("urn:fault.partner.soap.sforce.com"), Some("exceptionMessage"), __scope, false),
scalaxb.toXML[Int](__obj.row, Some("urn:fault.partner.soap.sforce.com"), Some("row"), __scope, false),
scalaxb.toXML[Int](__obj.column, Some("urn:fault.partner.soap.sforce.com"), Some("column"), __scope, false))
}
trait SoapBindings { this: scalaxb.Soap11Clients =>
lazy val targetNamespace: Option[String] = Some("urn:partner.soap.sforce.com")
lazy val service: Soap = new SoapBinding {}
lazy val baseAddress = new java.net.URI("https://login.salesforce.com/services/Soap/u/23.0")
trait SoapBinding extends Soap {
def login(value: com.drdnc.service.salesforce.generated.Login, loginScopeHeader: com.drdnc.service.salesforce.generated.LoginScopeHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions): Either[scalaxb.Fault[generated.LoginFault], com.drdnc.service.salesforce.generated.LoginResult] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "login", defaultScope),
Seq.concat(scalaxb.toXML(loginScopeHeader, Some("urn:partner.soap.sforce.com"), "LoginScopeHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.LoginFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[LoginResponse](body.headOption getOrElse {body}).result)
}
def describeSObject(value: com.drdnc.service.salesforce.generated.DescribeSObject, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader, localeOptions: com.drdnc.service.salesforce.generated.LocaleOptions): Either[scalaxb.Fault[generated.InvalidSObjectFault], Option[com.drdnc.service.salesforce.generated.DescribeSObjectResult]] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "describeSObject", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope),
scalaxb.toXML(localeOptions, Some("urn:partner.soap.sforce.com"), "LocaleOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[DescribeSObjectResponse](body.headOption getOrElse {body}).result)
}
def describeSObjects(value: com.drdnc.service.salesforce.generated.DescribeSObjects, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader, localeOptions: com.drdnc.service.salesforce.generated.LocaleOptions): Either[scalaxb.Fault[generated.InvalidSObjectFault], DescribeSObjectsResponse] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "describeSObjects", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope),
scalaxb.toXML(localeOptions, Some("urn:partner.soap.sforce.com"), "LocaleOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[DescribeSObjectsResponse](body.headOption getOrElse {body}))
}
def describeGlobal(value: com.drdnc.service.salesforce.generated.DescribeGlobal, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader): Either[scalaxb.Fault[generated.UnexpectedErrorFault], com.drdnc.service.salesforce.generated.DescribeGlobalResult] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "describeGlobal", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.UnexpectedErrorFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[DescribeGlobalResponse](body.headOption getOrElse {body}).result)
}
def describeDataCategoryGroups(value: com.drdnc.service.salesforce.generated.DescribeDataCategoryGroups, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader): Either[scalaxb.Fault[generated.InvalidSObjectFault], DescribeDataCategoryGroupsResponse] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "describeDataCategoryGroups", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[DescribeDataCategoryGroupsResponse](body.headOption getOrElse {body}))
}
def describeDataCategoryGroupStructures(value: com.drdnc.service.salesforce.generated.DescribeDataCategoryGroupStructures, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader): Either[scalaxb.Fault[generated.InvalidSObjectFault], DescribeDataCategoryGroupStructuresResponse] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "describeDataCategoryGroupStructures", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[DescribeDataCategoryGroupStructuresResponse](body.headOption getOrElse {body}))
}
def describeLayout(value: com.drdnc.service.salesforce.generated.DescribeLayout, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader): Either[scalaxb.Fault[generated.InvalidSObjectFault], Option[com.drdnc.service.salesforce.generated.DescribeLayoutResult]] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "describeLayout", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[DescribeLayoutResponse](body.headOption getOrElse {body}).result)
}
def describeSoftphoneLayout(value: com.drdnc.service.salesforce.generated.DescribeSoftphoneLayout, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader): Either[scalaxb.Fault[generated.UnexpectedErrorFault], Option[com.drdnc.service.salesforce.generated.DescribeSoftphoneLayoutResult]] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "describeSoftphoneLayout", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.UnexpectedErrorFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[DescribeSoftphoneLayoutResponse](body.headOption getOrElse {body}).result)
}
def describeTabs(value: com.drdnc.service.salesforce.generated.DescribeTabs, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader): Either[scalaxb.Fault[generated.UnexpectedErrorFault], DescribeTabsResponse] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "describeTabs", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.UnexpectedErrorFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[DescribeTabsResponse](body.headOption getOrElse {body}))
}
def create(value: com.drdnc.service.salesforce.generated.Create, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, assignmentRuleHeader: com.drdnc.service.salesforce.generated.AssignmentRuleHeader, mruHeader: com.drdnc.service.salesforce.generated.MruHeader, allowFieldTruncationHeader: com.drdnc.service.salesforce.generated.AllowFieldTruncationHeader, disableFeedTrackingHeader: com.drdnc.service.salesforce.generated.DisableFeedTrackingHeader, allOrNoneHeader: com.drdnc.service.salesforce.generated.AllOrNoneHeader, debuggingHeader: com.drdnc.service.salesforce.generated.DebuggingHeader, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader, emailHeader: com.drdnc.service.salesforce.generated.EmailHeader): Either[scalaxb.Fault[generated.InvalidSObjectFault], CreateOutput] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "create", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(assignmentRuleHeader, Some("urn:partner.soap.sforce.com"), "AssignmentRuleHeader", defaultScope),
scalaxb.toXML(mruHeader, Some("urn:partner.soap.sforce.com"), "MruHeader", defaultScope),
scalaxb.toXML(allowFieldTruncationHeader, Some("urn:partner.soap.sforce.com"), "AllowFieldTruncationHeader", defaultScope),
scalaxb.toXML(disableFeedTrackingHeader, Some("urn:partner.soap.sforce.com"), "DisableFeedTrackingHeader", defaultScope),
scalaxb.toXML(allOrNoneHeader, Some("urn:partner.soap.sforce.com"), "AllOrNoneHeader", defaultScope),
scalaxb.toXML(debuggingHeader, Some("urn:partner.soap.sforce.com"), "DebuggingHeader", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope),
scalaxb.toXML(emailHeader, Some("urn:partner.soap.sforce.com"), "EmailHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(CreateOutput(scalaxb.fromXML[CreateResponse](body.headOption getOrElse {body}),
scalaxb.fromXML[DebuggingInfo]((header \ "DebuggingInfo").head)))
}
def update(value: com.drdnc.service.salesforce.generated.Update, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, assignmentRuleHeader: com.drdnc.service.salesforce.generated.AssignmentRuleHeader, mruHeader: com.drdnc.service.salesforce.generated.MruHeader, allowFieldTruncationHeader: com.drdnc.service.salesforce.generated.AllowFieldTruncationHeader, disableFeedTrackingHeader: com.drdnc.service.salesforce.generated.DisableFeedTrackingHeader, allOrNoneHeader: com.drdnc.service.salesforce.generated.AllOrNoneHeader, debuggingHeader: com.drdnc.service.salesforce.generated.DebuggingHeader, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader, emailHeader: com.drdnc.service.salesforce.generated.EmailHeader): Either[scalaxb.Fault[generated.InvalidSObjectFault], UpdateOutput] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "update", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(assignmentRuleHeader, Some("urn:partner.soap.sforce.com"), "AssignmentRuleHeader", defaultScope),
scalaxb.toXML(mruHeader, Some("urn:partner.soap.sforce.com"), "MruHeader", defaultScope),
scalaxb.toXML(allowFieldTruncationHeader, Some("urn:partner.soap.sforce.com"), "AllowFieldTruncationHeader", defaultScope),
scalaxb.toXML(disableFeedTrackingHeader, Some("urn:partner.soap.sforce.com"), "DisableFeedTrackingHeader", defaultScope),
scalaxb.toXML(allOrNoneHeader, Some("urn:partner.soap.sforce.com"), "AllOrNoneHeader", defaultScope),
scalaxb.toXML(debuggingHeader, Some("urn:partner.soap.sforce.com"), "DebuggingHeader", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope),
scalaxb.toXML(emailHeader, Some("urn:partner.soap.sforce.com"), "EmailHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(UpdateOutput(scalaxb.fromXML[UpdateResponse](body.headOption getOrElse {body}),
scalaxb.fromXML[DebuggingInfo]((header \ "DebuggingInfo").head)))
}
def upsert(value: com.drdnc.service.salesforce.generated.Upsert, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, assignmentRuleHeader: com.drdnc.service.salesforce.generated.AssignmentRuleHeader, mruHeader: com.drdnc.service.salesforce.generated.MruHeader, allowFieldTruncationHeader: com.drdnc.service.salesforce.generated.AllowFieldTruncationHeader, disableFeedTrackingHeader: com.drdnc.service.salesforce.generated.DisableFeedTrackingHeader, allOrNoneHeader: com.drdnc.service.salesforce.generated.AllOrNoneHeader, debuggingHeader: com.drdnc.service.salesforce.generated.DebuggingHeader, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader, emailHeader: com.drdnc.service.salesforce.generated.EmailHeader): Either[scalaxb.Fault[generated.InvalidSObjectFault], UpsertOutput] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "upsert", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(assignmentRuleHeader, Some("urn:partner.soap.sforce.com"), "AssignmentRuleHeader", defaultScope),
scalaxb.toXML(mruHeader, Some("urn:partner.soap.sforce.com"), "MruHeader", defaultScope),
scalaxb.toXML(allowFieldTruncationHeader, Some("urn:partner.soap.sforce.com"), "AllowFieldTruncationHeader", defaultScope),
scalaxb.toXML(disableFeedTrackingHeader, Some("urn:partner.soap.sforce.com"), "DisableFeedTrackingHeader", defaultScope),
scalaxb.toXML(allOrNoneHeader, Some("urn:partner.soap.sforce.com"), "AllOrNoneHeader", defaultScope),
scalaxb.toXML(debuggingHeader, Some("urn:partner.soap.sforce.com"), "DebuggingHeader", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope),
scalaxb.toXML(emailHeader, Some("urn:partner.soap.sforce.com"), "EmailHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(UpsertOutput(scalaxb.fromXML[UpsertResponse](body.headOption getOrElse {body}),
scalaxb.fromXML[DebuggingInfo]((header \ "DebuggingInfo").head)))
}
def merge(value: com.drdnc.service.salesforce.generated.Merge, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, assignmentRuleHeader: com.drdnc.service.salesforce.generated.AssignmentRuleHeader, mruHeader: com.drdnc.service.salesforce.generated.MruHeader, allowFieldTruncationHeader: com.drdnc.service.salesforce.generated.AllowFieldTruncationHeader, disableFeedTrackingHeader: com.drdnc.service.salesforce.generated.DisableFeedTrackingHeader, debuggingHeader: com.drdnc.service.salesforce.generated.DebuggingHeader, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader, emailHeader: com.drdnc.service.salesforce.generated.EmailHeader): Either[scalaxb.Fault[generated.InvalidSObjectFault], MergeOutput] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "merge", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(assignmentRuleHeader, Some("urn:partner.soap.sforce.com"), "AssignmentRuleHeader", defaultScope),
scalaxb.toXML(mruHeader, Some("urn:partner.soap.sforce.com"), "MruHeader", defaultScope),
scalaxb.toXML(allowFieldTruncationHeader, Some("urn:partner.soap.sforce.com"), "AllowFieldTruncationHeader", defaultScope),
scalaxb.toXML(disableFeedTrackingHeader, Some("urn:partner.soap.sforce.com"), "DisableFeedTrackingHeader", defaultScope),
scalaxb.toXML(debuggingHeader, Some("urn:partner.soap.sforce.com"), "DebuggingHeader", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope),
scalaxb.toXML(emailHeader, Some("urn:partner.soap.sforce.com"), "EmailHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(MergeOutput(scalaxb.fromXML[MergeResponse](body.headOption getOrElse {body}),
scalaxb.fromXML[DebuggingInfo]((header \ "DebuggingInfo").head)))
}
def delete(value: com.drdnc.service.salesforce.generated.Delete, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader, userTerritoryDeleteHeader: com.drdnc.service.salesforce.generated.UserTerritoryDeleteHeader, emailHeader: com.drdnc.service.salesforce.generated.EmailHeader, allowFieldTruncationHeader: com.drdnc.service.salesforce.generated.AllowFieldTruncationHeader, disableFeedTrackingHeader: com.drdnc.service.salesforce.generated.DisableFeedTrackingHeader, allOrNoneHeader: com.drdnc.service.salesforce.generated.AllOrNoneHeader, debuggingHeader: com.drdnc.service.salesforce.generated.DebuggingHeader): Either[scalaxb.Fault[generated.UnexpectedErrorFault], DeleteOutput] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "delete", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope),
scalaxb.toXML(userTerritoryDeleteHeader, Some("urn:partner.soap.sforce.com"), "UserTerritoryDeleteHeader", defaultScope),
scalaxb.toXML(emailHeader, Some("urn:partner.soap.sforce.com"), "EmailHeader", defaultScope),
scalaxb.toXML(allowFieldTruncationHeader, Some("urn:partner.soap.sforce.com"), "AllowFieldTruncationHeader", defaultScope),
scalaxb.toXML(disableFeedTrackingHeader, Some("urn:partner.soap.sforce.com"), "DisableFeedTrackingHeader", defaultScope),
scalaxb.toXML(allOrNoneHeader, Some("urn:partner.soap.sforce.com"), "AllOrNoneHeader", defaultScope),
scalaxb.toXML(debuggingHeader, Some("urn:partner.soap.sforce.com"), "DebuggingHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.UnexpectedErrorFault])
case Right((header, body)) =>
Right(DeleteOutput(scalaxb.fromXML[DeleteResponse](body.headOption getOrElse {body}),
scalaxb.fromXML[DebuggingInfo]((header \ "DebuggingInfo").head)))
}
def undelete(value: com.drdnc.service.salesforce.generated.Undelete, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, allowFieldTruncationHeader: com.drdnc.service.salesforce.generated.AllowFieldTruncationHeader, disableFeedTrackingHeader: com.drdnc.service.salesforce.generated.DisableFeedTrackingHeader, allOrNoneHeader: com.drdnc.service.salesforce.generated.AllOrNoneHeader, debuggingHeader: com.drdnc.service.salesforce.generated.DebuggingHeader, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader): Either[scalaxb.Fault[generated.UnexpectedErrorFault], UndeleteOutput] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "undelete", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(allowFieldTruncationHeader, Some("urn:partner.soap.sforce.com"), "AllowFieldTruncationHeader", defaultScope),
scalaxb.toXML(disableFeedTrackingHeader, Some("urn:partner.soap.sforce.com"), "DisableFeedTrackingHeader", defaultScope),
scalaxb.toXML(allOrNoneHeader, Some("urn:partner.soap.sforce.com"), "AllOrNoneHeader", defaultScope),
scalaxb.toXML(debuggingHeader, Some("urn:partner.soap.sforce.com"), "DebuggingHeader", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.UnexpectedErrorFault])
case Right((header, body)) =>
Right(UndeleteOutput(scalaxb.fromXML[UndeleteResponse](body.headOption getOrElse {body}),
scalaxb.fromXML[DebuggingInfo]((header \ "DebuggingInfo").head)))
}
def emptyRecycleBin(value: com.drdnc.service.salesforce.generated.EmptyRecycleBin, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions): Either[scalaxb.Fault[generated.UnexpectedErrorFault], EmptyRecycleBinResponse] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "emptyRecycleBin", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.UnexpectedErrorFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[EmptyRecycleBinResponse](body.headOption getOrElse {body}))
}
def retrieve(value: com.drdnc.service.salesforce.generated.Retrieve, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, queryOptions: com.drdnc.service.salesforce.generated.QueryOptions, mruHeader: com.drdnc.service.salesforce.generated.MruHeader, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader): Either[scalaxb.Fault[generated.InvalidSObjectFault], RetrieveResponse] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "retrieve", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(queryOptions, Some("urn:partner.soap.sforce.com"), "QueryOptions", defaultScope),
scalaxb.toXML(mruHeader, Some("urn:partner.soap.sforce.com"), "MruHeader", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[RetrieveResponse](body.headOption getOrElse {body}))
}
def process(value: com.drdnc.service.salesforce.generated.Process, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, allowFieldTruncationHeader: com.drdnc.service.salesforce.generated.AllowFieldTruncationHeader, disableFeedTrackingHeader: com.drdnc.service.salesforce.generated.DisableFeedTrackingHeader, debuggingHeader: com.drdnc.service.salesforce.generated.DebuggingHeader, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader): Either[scalaxb.Fault[generated.UnexpectedErrorFault], ProcessOutput] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "process", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(allowFieldTruncationHeader, Some("urn:partner.soap.sforce.com"), "AllowFieldTruncationHeader", defaultScope),
scalaxb.toXML(disableFeedTrackingHeader, Some("urn:partner.soap.sforce.com"), "DisableFeedTrackingHeader", defaultScope),
scalaxb.toXML(debuggingHeader, Some("urn:partner.soap.sforce.com"), "DebuggingHeader", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.UnexpectedErrorFault])
case Right((header, body)) =>
Right(ProcessOutput(scalaxb.fromXML[ProcessResponse](body.headOption getOrElse {body}),
scalaxb.fromXML[DebuggingInfo]((header \ "DebuggingInfo").head)))
}
def convertLead(value: com.drdnc.service.salesforce.generated.ConvertLead, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, allowFieldTruncationHeader: com.drdnc.service.salesforce.generated.AllowFieldTruncationHeader, disableFeedTrackingHeader: com.drdnc.service.salesforce.generated.DisableFeedTrackingHeader, debuggingHeader: com.drdnc.service.salesforce.generated.DebuggingHeader, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader): Either[scalaxb.Fault[generated.UnexpectedErrorFault], ConvertLeadOutput] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "convertLead", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(allowFieldTruncationHeader, Some("urn:partner.soap.sforce.com"), "AllowFieldTruncationHeader", defaultScope),
scalaxb.toXML(disableFeedTrackingHeader, Some("urn:partner.soap.sforce.com"), "DisableFeedTrackingHeader", defaultScope),
scalaxb.toXML(debuggingHeader, Some("urn:partner.soap.sforce.com"), "DebuggingHeader", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.UnexpectedErrorFault])
case Right((header, body)) =>
Right(ConvertLeadOutput(scalaxb.fromXML[ConvertLeadResponse](body.headOption getOrElse {body}),
scalaxb.fromXML[DebuggingInfo]((header \ "DebuggingInfo").head)))
}
def logout(value: com.drdnc.service.salesforce.generated.Logout, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions): Either[scalaxb.Fault[generated.UnexpectedErrorFault], LogoutResponse] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "logout", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.UnexpectedErrorFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[LogoutResponse](body.headOption getOrElse {body}))
}
def invalidateSessions(value: com.drdnc.service.salesforce.generated.InvalidateSessions, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions): Either[scalaxb.Fault[generated.UnexpectedErrorFault], InvalidateSessionsResponse] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "invalidateSessions", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.UnexpectedErrorFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[InvalidateSessionsResponse](body.headOption getOrElse {body}))
}
def getDeleted(value: com.drdnc.service.salesforce.generated.GetDeleted, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions): Either[scalaxb.Fault[generated.InvalidSObjectFault], com.drdnc.service.salesforce.generated.GetDeletedResult] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "getDeleted", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[GetDeletedResponse](body.headOption getOrElse {body}).result)
}
def getUpdated(value: com.drdnc.service.salesforce.generated.GetUpdated, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions): Either[scalaxb.Fault[generated.InvalidSObjectFault], com.drdnc.service.salesforce.generated.GetUpdatedResult] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "getUpdated", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[GetUpdatedResponse](body.headOption getOrElse {body}).result)
}
def query(value: com.drdnc.service.salesforce.generated.Query, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, queryOptions: com.drdnc.service.salesforce.generated.QueryOptions, mruHeader: com.drdnc.service.salesforce.generated.MruHeader, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader): Either[scalaxb.Fault[generated.InvalidSObjectFault], com.drdnc.service.salesforce.generated.QueryResult] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "query", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(queryOptions, Some("urn:partner.soap.sforce.com"), "QueryOptions", defaultScope),
scalaxb.toXML(mruHeader, Some("urn:partner.soap.sforce.com"), "MruHeader", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[QueryResponse](body.headOption getOrElse {body}).result)
}
def queryAll(value: com.drdnc.service.salesforce.generated.QueryAll, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, queryOptions: com.drdnc.service.salesforce.generated.QueryOptions): Either[scalaxb.Fault[generated.InvalidSObjectFault], com.drdnc.service.salesforce.generated.QueryResult] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "queryAll", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(queryOptions, Some("urn:partner.soap.sforce.com"), "QueryOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[QueryAllResponse](body.headOption getOrElse {body}).result)
}
def queryMore(value: com.drdnc.service.salesforce.generated.QueryMore, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, queryOptions: com.drdnc.service.salesforce.generated.QueryOptions): Either[scalaxb.Fault[generated.InvalidQueryLocatorFault], com.drdnc.service.salesforce.generated.QueryResult] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "queryMore", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(queryOptions, Some("urn:partner.soap.sforce.com"), "QueryOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidQueryLocatorFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[QueryMoreResponse](body.headOption getOrElse {body}).result)
}
def search(value: com.drdnc.service.salesforce.generated.Search, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, packageVersionHeader: com.drdnc.service.salesforce.generated.PackageVersionHeader): Either[scalaxb.Fault[generated.InvalidSObjectFault], com.drdnc.service.salesforce.generated.SearchResult] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "search", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(packageVersionHeader, Some("urn:partner.soap.sforce.com"), "PackageVersionHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidSObjectFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[SearchResponse](body.headOption getOrElse {body}).result)
}
def getServerTimestamp(value: com.drdnc.service.salesforce.generated.GetServerTimestamp, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions): Either[scalaxb.Fault[generated.UnexpectedErrorFault], com.drdnc.service.salesforce.generated.GetServerTimestampResult] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "getServerTimestamp", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.UnexpectedErrorFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[GetServerTimestampResponse](body.headOption getOrElse {body}).result)
}
def setPassword(value: com.drdnc.service.salesforce.generated.SetPassword, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions): Either[scalaxb.Fault[generated.InvalidIdFault], com.drdnc.service.salesforce.generated.SetPasswordResult] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "setPassword", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidIdFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[SetPasswordResponse](body.headOption getOrElse {body}).result)
}
def resetPassword(value: com.drdnc.service.salesforce.generated.ResetPassword, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions, emailHeader: com.drdnc.service.salesforce.generated.EmailHeader): Either[scalaxb.Fault[generated.InvalidIdFault], com.drdnc.service.salesforce.generated.ResetPasswordResult] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "resetPassword", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope),
scalaxb.toXML(emailHeader, Some("urn:partner.soap.sforce.com"), "EmailHeader", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.InvalidIdFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[ResetPasswordResponse](body.headOption getOrElse {body}).result)
}
def getUserInfo(value: com.drdnc.service.salesforce.generated.GetUserInfo, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions): Either[scalaxb.Fault[generated.UnexpectedErrorFault], com.drdnc.service.salesforce.generated.GetUserInfoResult] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "getUserInfo", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.UnexpectedErrorFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[GetUserInfoResponse](body.headOption getOrElse {body}).result)
}
def sendEmail(value: com.drdnc.service.salesforce.generated.SendEmail, sessionHeader: com.drdnc.service.salesforce.generated.SessionHeader, callOptions: com.drdnc.service.salesforce.generated.CallOptions): Either[scalaxb.Fault[generated.UnexpectedErrorFault], SendEmailResponse] =
soapClient.requestResponse(scalaxb.toXML(value, Some("urn:partner.soap.sforce.com"), "sendEmail", defaultScope),
Seq.concat(scalaxb.toXML(sessionHeader, Some("urn:partner.soap.sforce.com"), "SessionHeader", defaultScope),
scalaxb.toXML(callOptions, Some("urn:partner.soap.sforce.com"), "CallOptions", defaultScope)), defaultScope, baseAddress, "POST", Some(new java.net.URI(""))) match {
case Left(x) => Left(x.asFault[generated.UnexpectedErrorFault])
case Right((header, body)) =>
Right(scalaxb.fromXML[SendEmailResponse](body.headOption getOrElse {body}))
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment