chinab / bocket

Automatically exported from code.google.com/p/bocket
0 stars 0 forks source link

provide "last call" activity interface #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

Original issue reported on code.google.com by leon...@gmail.com on 30 Jun 2009 at 6:50

GoogleCodeExporter commented 9 years ago
LastCall property for BP

[{"CardCode":"C20000","CardName":"Norm 
Thompson","CardType":"cCustomer","PhoneNum":"(610) 565-
9000","Email":"info@norm.com","Country":"US&t=h&z=19","State":"PA","City":"Haver
town","
Street":"300 Billings Drive","ZipCode":"19083","ContactPerson":"Norm 
Thompson","LastCall":"2009-05-08 13:50"}]

Original comment by jayjich...@gmail.com on 1 Jul 2009 at 8:20

GoogleCodeExporter commented 9 years ago
New Interface:

AddPhoneCallActivities(string cardCode, string contactDate, string startTime, 
int 
minutes, string remarks)

Sample:
AddPhoneCallActivities("C40000", "2008-2-3" "8:50", 25, "Talked about the 
contact")

Original comment by jayjich...@gmail.com on 1 Jul 2009 at 9:07

GoogleCodeExporter commented 9 years ago
For now, let's hardcode minutes as 1, and remarks as ""

SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown 
need 
to be replaced with actual values.

POST /Bocket/Service1.asmx HTTP/1.1
Host: 10.59.38.227
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/AddPhoneCallActivities"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AddPhoneCallActivities xmlns="http://tempuri.org/">
      <cardCode>string</cardCode>
      <contactDate>string</contactDate>
      <startTime>string</startTime>
      <minutes>int</minutes>
      <remarks>string</remarks>
    </AddPhoneCallActivities>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AddPhoneCallActivitiesResponse xmlns="http://tempuri.org/">
      <AddPhoneCallActivitiesResult>string</AddPhoneCallActivitiesResult>
    </AddPhoneCallActivitiesResponse>
  </soap:Body>
</soap:Envelope>

HTTP POST
The following is a sample HTTP POST request and response. The placeholders 
shown need 
to be replaced with actual values.

POST /Bocket/Service1.asmx/AddPhoneCallActivities HTTP/1.1
Host: 10.59.38.227
Content-Type: application/x-www-form-urlencoded
Content-Length: length

cardCode=string&contactDate=string&startTime=string&minutes=string&remarks=strin
g
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">string</string>

Original comment by jayjich...@gmail.com on 3 Jul 2009 at 4:24

GoogleCodeExporter commented 9 years ago

Original comment by leon...@gmail.com on 6 Jul 2009 at 12:03