function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nagma KhanNagma Khan 

how to save the SOAP API value sourse to destination both side in both salesfroce orgs?

hi
 i am new so please any one support me that i have a provle because i have done SOPA API and used both salesfroce developer org and save the vale sourse org but not save the value Destionation org pelase support how to save both side same value

this is my code
its my Class
public class apexServForm {

    public PageReference Save() {
    // Established the connection
            partnerSoapSforceCom.Soap   myPatnerSoap= new partnerSoapSforceCom.Soap();  
            
        partnerSoapSforceCom.LoginResult partnerLoginResult=myPatnerSoap.login('xx@gmail.com','its my passwordand sessionid');
                    
                    system.debug('aklim ----------'+partnerLoginResult);
                    system.debug('this is login session'+partnerLoginResult.sessionId);
                    
                   // pass parameters (name,phone,city)
                    String sessionId=partnerLoginResult.sessionId;
     soapSforceComSchemasClassServiceacc.SessionHeader_element  webserivceSessionHeader=new soapSforceComSchemasClassServiceacc.SessionHeader_element();
             webserivceSessionHeader.sessionId=sessionId;               
                    soapSforceComSchemasClassServiceacc.ServiceAccount   objA1 = new soapSforceComSchemasClassServiceacc.ServiceAccount();
        
                    objA1.SessionHeader=webserivceSessionHeader;
                    String status = objA1.createCustomer(objA.Name,objA.Phone,objA.BillingCity); // invoke sourse method
                    if(status == 'success'){
                        insert objA;
                        
                    }
                    if(objA.Id !=NULL){
                        statusMsg='customer create successfuly... !';
                    }
        return null;
    }

 public Account objA{get;set;}
 public String statusMsg{get;set;}
    public apexServForm (){
        objA=new Account();
                   
        statusMsg='';
    }
}
// its my visualforce page           
<apex:page controller="apexServForm" tabStyle="Account">
  <apex:form >
      <apex:outputtext value="{!statusMsg}" style="clolor:green;font-size:20px;font-weight:bold;"></apex:outputtext>
          <apex:pageblock title="New Customer">
              <apex:pageblockSection title="personal Information" columns="1">
                  <apex:inputField value="{!objA.Name}"></apex:inputField>
                      <apex:inputField value="{!objA.Phone}"></apex:inputField>
             
              </apex:pageblockSection>
            <apex:pageblockSection title="Address Infromation"  columns="1">
                 
                  <apex:inputField value="{!objA.BillingCity}"></apex:inputField>
              
              </apex:pageblockSection>

                
                  <apex:pageblockButtons >
                      <apex:commandButton action="{!Save}" value="Save"/>
                  
                  </apex:pageblockButtons>
          
          </apex:pageblock>
 
 
  </apex:form>
</apex:page>
Please solve my problem because only one side sourse side data store sourse side
how to store both side data ??pealse slove




Thanks
Nagma