Home > database >  Webservice interface session, for help
Webservice interface session, for help

Time:09-22

Recently to do a web service interface, the other party said pb's support for the session is very poor, can't keep, each operation will reset the session, so can't use, want to consult the problem exists in the 11.5? Can you solve? My qq37733570, this thing is try so hard, everybody can give directions?

The other side of the interface that is simple
Below is a part of the login method description
Interface to provide WebService way, return the result in the form of two dimensional character array, the array first element for the wrong information, is empty, indicates the interface call is successful, not empty, then answer the call fails, the content of the reasons for failure; The second element array as Json string form of business data,
A, the user login
1.1 the method name:
Public string [] the Login (string loginName and string loginPass, string key)
Description: used for authentication, other operation only after the authentication by operating
1.2 the request parameters are as follows:
Field name field type can empty description
Whether loginName login name String
Whether loginPass password String
Key interface to the user identification String whether this Key for interface caller identity, assigned by ran the company
1.3 the response data is as follows:
Field name field type can empty description
UserId lander ID Long n
Whether LoginName login name String
RealName real name String
EntityID enterprise corresponding ID Long n
EntityCode user registration number String in the enterprise whether
EntityName users in the enterprise name String n
StepCode node code String whether can need not

1.4 instance
String [] rev=Login (" infozr ", "99221004", "74 d589e056bf0b2af726d87614fa5a4c")
Rev [0]="error message";
Rev [1]={" UserId ": 21," LoginName ":" infozr ", "RealName" : "Yang Changlin", "EntityId:" 61, "EntityCode" : "10000000000001", "EntityName" : "jean valjean in information industry co., LTD.", "EntityManager" : "wang jing", "EntityTel" : "0551-2839988", "EntityAddress" : "the Yangtze river middle road, CBD central plaza, 365, hefei, 2-1804", "BillsPrefix" : "551", "EntityType:" 0, "JobNumber", null, "LastLoginTime" : "\/Date (1299562895000 + 0800) \/", "LoginCount" : 1777, "StepCode" : "01011409", "LoginIp" : "127.0.0.1"}

CodePudding user response:

Haven't contact with these things, before a famished

CodePudding user response:

http://dns4.infozr.com/PZTIF/ThirdInterface.asmx? WSDL
This is the address WDSL

CodePudding user response:

Pb's support for the session and other web, it's not a bad place;
The session is for each client session, webservice itself is based on HTTP protocol, HTTP is a stateless protocol, so it is essentially does not support the state to maintain;
You can see the so-called stateful keep are generally in the application server layer use cookies and so on to achieve with the client;
Do not step by step, it's no bother

CodePudding user response:

This interface, have I done before pb11.5 seems can be solved

CodePudding user response:

Thank you and have people who care about pb,
Use, has not put pb, most can effectively solve the matters of the database, even if it is a good tool,
Pb himself for the web service client response processing may be flawed, estimation is not well with cookies, session cannot track, so can't keep the same session id, also can see from the log,
To cooperate with other tools

CodePudding user response:

Pb9, pb11.5 pb12 are tried, all is same, so we have to give up using pb own webservice proxy
  • Related