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.