`
jiava9900
  • 浏览: 82820 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论

CRMOD Integration Development Tips

    博客分类:
  • java
阅读更多
    1. 任何record type的owner字段是可以被更新的; 但insert一条record的时候, 如果不指定owner字段, 那么owner就是默认的creator, 否则就是指定的user. 这里的user可以是crmod里面的任何user.

2. stateless web service request header的格式是:
<soapenv:header>   <wsse:security soapenv:mustunderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">      <wsse:usernametoken>         <wsse:username>myusername</wsse:username>         <wsse:password type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#passwordtext">mypassword</wsse:password>      </wsse:usernametoken>   </wsse:security></soapenv:header>


3. 无状态的web service call就是指把session交给oracle server端来维护, 客户端不用频繁的去login然后取到session然后进行其他的操作。 crmod(当前为r19)会为每个用户维护的两个session, 如果这两个session没有过期(10分钟不活动视为过期), 那么crmod就会自动为client端的请求分配session; 直到session过期没有可用的session的时候才会再次login获取session并维护起来。

4. 查询的时候格式是: user.userid = "='xxx-yyy'", 如果要求查询不区分大小写则可以用"~'xxx-yyy'"

5. insertorupdate对parent和child操作是注意, child的id一定要指定, 不管这个id存不存在。
   如果childid在parent的childlist里面存在则是update, 如果不存在则是insert.

6. 在使用stateless web service的时候要把company profile页面上的“r16 compatibility mode” 钩去掉. 原话是这样的:
to perform a stateless transaction, the web services r16 compatibility mode check box must be cleared in the company profile page and the username and passwordtext tokens must be provided in the request. 
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics