• kpicha
  • NEWBIE
  • 0 Points
  • Member since 2004

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies

here is the soap message that I sent:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/ XMLSchema-instance">
 <soapenv:Header>
  <ns1:SessionHeader soapenv:mustUnderstand="0" xmlns:ns1="SoapService">
   <ns2:sessionId xmlns:ns2="urn:enterprise.soap.sforce.com">0kGvdc1oBLNSNwZYAad2z9KdIs_lIgFRIzhnzK6Tp.a2s5ZHXqHEkbo.fAWCNvmYlNiKBwpEXJ3SNDM6LQ6h_vbtzKggVlhL</ns2:sessionId>
  </ns1:SessionHeader>
 </soapenv:Header>
 <soapenv:Body>
  <create xmlns="urn:enterprise.soap.sforce.com">
   <sObjects xsi:type="ns3:Account" xmlns:ns3="urn:sobject.enterprise.soap.sforce.com">
    <ns3:Name>test08261045</ns3:Name>
    <ns3:BillingStreet>test08261045</ns3:BillingStreet>
    <ns3:BillingCity>test08261045</ns3:BillingCity>
    <ns3:BillingState>test08261045</ns3:BillingState>
    <ns3:BillingPostalCode>test08261045</ns3:BillingPostalCode>
    <ns3:BillingCountry>test08261045</ns3:BillingCountry>
    <ns3:ShippingStreet>test08261045</ns3:ShippingStreet>
    <ns3:ShippingCity>test08261045</ns3:ShippingCity>
    <ns3:ShippingState>test08261045</ns3:ShippingState>
    <ns3:ShippingPostalCode>test08261045</ns3:ShippingPostalCode>
    <ns3:ShippingCountry>test08261045</ns3:ShippingCountry>
    <ns3hone>test08261045</ns3hone>
    <ns3:Fax>test08261045</ns3:Fax>
    <ns3:AccountNumber>test08261045</ns3:AccountNumber>
    <ns3:Website>test08261045</ns3:Website>
    <ns3:Sic>test08261045</ns3:Sic>
    <ns3:TickerSymbol>test08261045</ns3:TickerSymbol>
    <ns3escription>test08261045</ns3escription>
    <ns3:Site>test08261045</ns3:Site>
   </sObjects>
  </create>
 </soapenv:Body>
</soapenv:Envelope>

 

here is the response that I received:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>common.exception.ApiException: Must send a concrete entity type.</faultstring>
   <detail>
    <sf:fault xsi:type="sf:InvalidSObjectFault" xmlns:sf="urn:fault.enterprise.soap.sforce.com">
     <sf:exceptionCode>INVALID_TYPE</sf:exceptionCode>
     <sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage>
    </sf:fault>
   </detail>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

 

 

what did I do wrong here?

  • August 26, 2004
  • Like
  • 0

I am trying to interface our vc++ based app server to sforce.

because I am in vc7, I don't have access to webservices through the typical interfaces of C#, VB.NET, java, etc. I have tried to use raw socket calls (i.e. connect,send, recv, etc. ) and also using higher level functions such as CInternetSession.

 

The latest C# samples from sforce show the login url to be

https://www.salesforce.com/services/Soap/c/4.0 , so that's what I'm using

 

The C# example runs from my machine, so I know that the login ID and password that I'm using is valid

 

If I construct the headers and soap body with bogus login ID and password and send it off, I get a soap response back telling me that I've got the wrong ID .... so I think I'm getting to the right place

 

when I construct the headers and soap body with the correct login ID and password and send it off,  I get:

 

ns1:Server.NoService The AXIS engine could not find a target service to invoke! targetService is c/4.0

Since I'm no longer getting the invalid login message, I must be getting past that point, but something else is wrong

I must be constructing the headers or the soap body incorrectly!!!!

 

anybody got any ideas??

 

  • August 18, 2004
  • Like
  • 0

here is the soap message that I sent:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/ XMLSchema-instance">
 <soapenv:Header>
  <ns1:SessionHeader soapenv:mustUnderstand="0" xmlns:ns1="SoapService">
   <ns2:sessionId xmlns:ns2="urn:enterprise.soap.sforce.com">0kGvdc1oBLNSNwZYAad2z9KdIs_lIgFRIzhnzK6Tp.a2s5ZHXqHEkbo.fAWCNvmYlNiKBwpEXJ3SNDM6LQ6h_vbtzKggVlhL</ns2:sessionId>
  </ns1:SessionHeader>
 </soapenv:Header>
 <soapenv:Body>
  <create xmlns="urn:enterprise.soap.sforce.com">
   <sObjects xsi:type="ns3:Account" xmlns:ns3="urn:sobject.enterprise.soap.sforce.com">
    <ns3:Name>test08261045</ns3:Name>
    <ns3:BillingStreet>test08261045</ns3:BillingStreet>
    <ns3:BillingCity>test08261045</ns3:BillingCity>
    <ns3:BillingState>test08261045</ns3:BillingState>
    <ns3:BillingPostalCode>test08261045</ns3:BillingPostalCode>
    <ns3:BillingCountry>test08261045</ns3:BillingCountry>
    <ns3:ShippingStreet>test08261045</ns3:ShippingStreet>
    <ns3:ShippingCity>test08261045</ns3:ShippingCity>
    <ns3:ShippingState>test08261045</ns3:ShippingState>
    <ns3:ShippingPostalCode>test08261045</ns3:ShippingPostalCode>
    <ns3:ShippingCountry>test08261045</ns3:ShippingCountry>
    <ns3hone>test08261045</ns3hone>
    <ns3:Fax>test08261045</ns3:Fax>
    <ns3:AccountNumber>test08261045</ns3:AccountNumber>
    <ns3:Website>test08261045</ns3:Website>
    <ns3:Sic>test08261045</ns3:Sic>
    <ns3:TickerSymbol>test08261045</ns3:TickerSymbol>
    <ns3escription>test08261045</ns3escription>
    <ns3:Site>test08261045</ns3:Site>
   </sObjects>
  </create>
 </soapenv:Body>
</soapenv:Envelope>

 

here is the response that I received:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>common.exception.ApiException: Must send a concrete entity type.</faultstring>
   <detail>
    <sf:fault xsi:type="sf:InvalidSObjectFault" xmlns:sf="urn:fault.enterprise.soap.sforce.com">
     <sf:exceptionCode>INVALID_TYPE</sf:exceptionCode>
     <sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage>
    </sf:fault>
   </detail>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

 

 

what did I do wrong here?

  • August 26, 2004
  • Like
  • 0

I am trying to interface our vc++ based app server to sforce.

because I am in vc7, I don't have access to webservices through the typical interfaces of C#, VB.NET, java, etc. I have tried to use raw socket calls (i.e. connect,send, recv, etc. ) and also using higher level functions such as CInternetSession.

 

The latest C# samples from sforce show the login url to be

https://www.salesforce.com/services/Soap/c/4.0 , so that's what I'm using

 

The C# example runs from my machine, so I know that the login ID and password that I'm using is valid

 

If I construct the headers and soap body with bogus login ID and password and send it off, I get a soap response back telling me that I've got the wrong ID .... so I think I'm getting to the right place

 

when I construct the headers and soap body with the correct login ID and password and send it off,  I get:

 

ns1:Server.NoService The AXIS engine could not find a target service to invoke! targetService is c/4.0

Since I'm no longer getting the invalid login message, I must be getting past that point, but something else is wrong

I must be constructing the headers or the soap body incorrectly!!!!

 

anybody got any ideas??

 

  • August 18, 2004
  • Like
  • 0