• sekki
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies

I am  trying to upsert a salesforce by web service.

but I get the following error

UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService

 

Any ideas?

 

Detail Below

 
【Binding Operation Property】
<implementation xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" type="Invoke">
  <serverUri>※I wrote return message by login </serverUri>
  <soapaction>""</soapaction>
  <authenticationType>Anonymous</authenticationType>
  <userId>※ Iwrote userId</userId>
  <password>※ Iwrote password</password>
  <host>×.×.×.×</host>
  <port>80</port>
  <charset>UTF-8</charset>
</implementation>


【Soap Request】

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SOAP:Header>
    <DebuggingHeader xmlns="urn:enterprise.soap.sforce.com">
      <debugLevel>none</debugLevel>
    </DebuggingHeader>
    <DisableFeedTrackingHeader xmlns="urn:enterprise.soap.sforce.com">
      <disableFeedTracking>0</disableFeedTracking>
    </DisableFeedTrackingHeader>
    <PackageVersionHeader xmlns="urn:enterprise.soap.sforce.com">
      <packageVersions>
        <majorNumber>0</majorNumber>
        <minorNumber>0</minorNumber>
        <namespace></namespace>
      </packageVersions>
    </PackageVersionHeader>
    <AssignmentRuleHeader xmlns="urn:enterprise.soap.sforce.com">
      <assignmentRuleId></assignmentRuleId>
      <useDefaultRule>0</useDefaultRule>
    </AssignmentRuleHeader>
    <EmailHeader xmlns="urn:enterprise.soap.sforce.com">
      <triggerAutoResponseEmail>0</triggerAutoResponseEmail>
      <triggerOtherEmail>0</triggerOtherEmail>
      <triggerUserEmail>0</triggerUserEmail>
    </EmailHeader>
    <SessionHeader xmlns="urn:enterprise.soap.sforce.com">
      <sessionId>※I wrote return message by login </sessionId>
    </SessionHeader>
    <AllOrNoneHeader xmlns="urn:enterprise.soap.sforce.com">
      <allOrNone>1</allOrNone>
    </AllOrNoneHeader>
    <AllowFieldTruncationHeader xmlns="urn:enterprise.soap.sforce.com">
      <allowFieldTruncation>1</allowFieldTruncation>
    </AllowFieldTruncationHeader>
    <MruHeader xmlns="urn:enterprise.soap.sforce.com">
      <updateMru>false</updateMru>
    </MruHeader>
  </SOAP:Header>
  <SOAP:Body>
    <upsert xmlns="urn:enterprise.soap.sforce.com">
      <externalIDFieldName>Id</externalIDFieldName>
      <sObjects xsi:type="Account">
  <Fax>03-1111-1111</Fax>
  <Name>AAA</Name>
  <Phone></Phone>
  <Id></Id>
      </sObjects>
    </upsert>
  </SOAP:Body>
</SOAP:Envelope>

 

 

【Response Message】

 <data>
 <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" >
<faultcode xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" >ns0:Server</faultcode>
<faultstring xml:lang="en-US" >UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService.</faultstring>
<faultactor>urn:enterprise.soap.sforce.com</faultactor>
 <detail>
 <cordys:FaultDetails xmlns:cordys="http://schemas.cordys.com/General/1.0/" >
 <cordys:LocalizableMessage xmlns:cordys="http://schemas.cordys.com/General/1.0/" >
<cordys:MessageCode xmlns:cordys="http://schemas.cordys.com/General/1.0/" >Cordys.UDDI.Messages.generalException</cordys:MessageCode>
<cordys:Insertion xmlns:cordys="http://schemas.cordys.com/General/1.0/" >UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService</cordys:Insertion>
</cordys:LocalizableMessage>
</cordys:FaultDetails>
<externalFaultCode>UNKNOWN_EXCEPTION</externalFaultCode>
 <sf:UnexpectedErrorFault xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:fault.enterprise.soap.sforce.com" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xsi:type="sf:UnexpectedErrorFault" >
<sf:exceptionCode>UNKNOWN_EXCEPTION</sf:exceptionCode>
<sf:exceptionMessage>Destination URL not reset. The URL returned from login must be set in the SforceService</sf:exceptionMessage>
</sf:UnexpectedErrorFault>
</detail>
</SOAP:Fault>
</data>
 
 
Thanks.
  • August 25, 2011
  • Like
  • 0

I am  trying to upsert a salesforce by web service.

but I get the following error

UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService

 

Any ideas?

 

Detail Below

 
【Binding Operation Property】
<implementation xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" type="Invoke">
  <serverUri>※I wrote return message by login </serverUri>
  <soapaction>""</soapaction>
  <authenticationType>Anonymous</authenticationType>
  <userId>※ Iwrote userId</userId>
  <password>※ Iwrote password</password>
  <host>×.×.×.×</host>
  <port>80</port>
  <charset>UTF-8</charset>
</implementation>


【Soap Request】

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SOAP:Header>
    <DebuggingHeader xmlns="urn:enterprise.soap.sforce.com">
      <debugLevel>none</debugLevel>
    </DebuggingHeader>
    <DisableFeedTrackingHeader xmlns="urn:enterprise.soap.sforce.com">
      <disableFeedTracking>0</disableFeedTracking>
    </DisableFeedTrackingHeader>
    <PackageVersionHeader xmlns="urn:enterprise.soap.sforce.com">
      <packageVersions>
        <majorNumber>0</majorNumber>
        <minorNumber>0</minorNumber>
        <namespace></namespace>
      </packageVersions>
    </PackageVersionHeader>
    <AssignmentRuleHeader xmlns="urn:enterprise.soap.sforce.com">
      <assignmentRuleId></assignmentRuleId>
      <useDefaultRule>0</useDefaultRule>
    </AssignmentRuleHeader>
    <EmailHeader xmlns="urn:enterprise.soap.sforce.com">
      <triggerAutoResponseEmail>0</triggerAutoResponseEmail>
      <triggerOtherEmail>0</triggerOtherEmail>
      <triggerUserEmail>0</triggerUserEmail>
    </EmailHeader>
    <SessionHeader xmlns="urn:enterprise.soap.sforce.com">
      <sessionId>※I wrote return message by login </sessionId>
    </SessionHeader>
    <AllOrNoneHeader xmlns="urn:enterprise.soap.sforce.com">
      <allOrNone>1</allOrNone>
    </AllOrNoneHeader>
    <AllowFieldTruncationHeader xmlns="urn:enterprise.soap.sforce.com">
      <allowFieldTruncation>1</allowFieldTruncation>
    </AllowFieldTruncationHeader>
    <MruHeader xmlns="urn:enterprise.soap.sforce.com">
      <updateMru>false</updateMru>
    </MruHeader>
  </SOAP:Header>
  <SOAP:Body>
    <upsert xmlns="urn:enterprise.soap.sforce.com">
      <externalIDFieldName>Id</externalIDFieldName>
      <sObjects xsi:type="Account">
  <Fax>03-1111-1111</Fax>
  <Name>AAA</Name>
  <Phone></Phone>
  <Id></Id>
      </sObjects>
    </upsert>
  </SOAP:Body>
</SOAP:Envelope>

 

 

【Response Message】

 <data>
 <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" >
<faultcode xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" >ns0:Server</faultcode>
<faultstring xml:lang="en-US" >UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService.</faultstring>
<faultactor>urn:enterprise.soap.sforce.com</faultactor>
 <detail>
 <cordys:FaultDetails xmlns:cordys="http://schemas.cordys.com/General/1.0/" >
 <cordys:LocalizableMessage xmlns:cordys="http://schemas.cordys.com/General/1.0/" >
<cordys:MessageCode xmlns:cordys="http://schemas.cordys.com/General/1.0/" >Cordys.UDDI.Messages.generalException</cordys:MessageCode>
<cordys:Insertion xmlns:cordys="http://schemas.cordys.com/General/1.0/" >UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService</cordys:Insertion>
</cordys:LocalizableMessage>
</cordys:FaultDetails>
<externalFaultCode>UNKNOWN_EXCEPTION</externalFaultCode>
 <sf:UnexpectedErrorFault xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:fault.enterprise.soap.sforce.com" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xsi:type="sf:UnexpectedErrorFault" >
<sf:exceptionCode>UNKNOWN_EXCEPTION</sf:exceptionCode>
<sf:exceptionMessage>Destination URL not reset. The URL returned from login must be set in the SforceService</sf:exceptionMessage>
</sf:UnexpectedErrorFault>
</detail>
</SOAP:Fault>
</data>
 
 
Thanks.
  • August 25, 2011
  • Like
  • 0