Please note: i modified the server names, ip addresses and token values
I am trying to use the ContextRegistryService to get a token and reuse it for multiple calls. This is needed to reduce the number of sessions being created on the documentum server (we are running out of sessions).
I can request a token and receive it successfully. When i try to use the token in subsequent calls, I get error messages. I tried the ContextRegistryService lookup() but receive a SAOP fault.
<faultcode>S:Server</faultcode>
<faultstring>Invalid lookup request from IP: "10.92.121.14".</faultstring> (this is my server ip, same as where token was requested from)
The unregister() call succeeds the first time (as expected) and fails the second time (as expected). So, i am guessing it found the token and unregistered it.
When I use the token in a ObjectService call passing it as SOAP WS-SECURITY header, i get an invalid token error. (see at the end of post)..
Trying to figure out how to get past this error... We currently pass the ServiceContext with every call and that works fine..
[E_SERVICE_AUTHORIZATION_FAILED_NO_IDENTITIES] Authorization failed, could not find identities in service context with token "docserver1/10.92.157.120-1472229003494-9289b13d-5e3c-4d1f-9d01-21b25a3f8219-33"
REQUEST
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.rt.fs.documentum.emc.com/" xmlns:con="http://context.core.datamodel.fs.documentum.emc.com/" xmlns:prop="http://properties.core.datamodel.fs.documentum.emc.com/">
<soapenv:Header/>
<soapenv:Body>
<ser:register>
<!--Optional:-->
<context >
<Identities password="mypwd" repositoryName="myrepo" userName="myuser" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RepositoryIdentity"></Identities>
<Profiles filterMode="ALL" isProcessIncludedUnknown="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:PropertyProfile"></Profiles><Profiles allowAsyncContentTransfer="false" allowCachedContentTransfer="false" isProcessOLELinks="false" transferMode="BASE_64" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:ContentTransferProfile"></Profiles>
</context>
<!--Optional:-->
<host>mylocalserver</host>
</ser:register>
</soapenv:Body>
</soapenv:Envelope>
RESPONSE
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns4:registerResponse xmlns:ns2="http://context.core.datamodel.fs.documentum.emc.com/" xmlns:ns3="http://properties.core.datamodel.fs.documentum.emc.com/" xmlns:ns4="http://services.rt.fs.documentum.emc.com/" xmlns:ns5="http://profiles.core.datamodel.fs.documentum.emc.com/" xmlns:ns6="http://query.core.datamodel.fs.documentum.emc.com/" xmlns:ns7="http://content.core.datamodel.fs.documentum.emc.com/" xmlns:ns8="http://core.datamodel.fs.documentum.emc.com/">
<return>docserver1/10.92.199.121-1473582475942-5c2d2521-9e25-4224-a4c5-c23a03256545-44</return>
</ns4:registerResponse>
</S:Body>
</S:Envelope>
REQUEST
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.rt.fs.documentum.emc.com/">
<soapenv:Header/>
<soapenv:Body>
<ser:lookup>
<token>same as above returned token value</token>
</ser:lookup>
</soapenv:Body>
</soapenv:Envelope>
RESPONSE
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">
<faultcode>S:Server</faultcode>
<faultstring>Invalid lookup request from IP: "10.92.121.14".</faultstring>
</S:Fault>
</S:Body>
</S:Envelope>
Error message from ObjectService (assume the token is the same as obtained from register)...
<causeCode>[E_SERVICE_AUTHORIZATION_FAILED_NO_IDENTITIES] Authorization failed, could not find identities in service context with token "docserver1/10.92.157.120-1472229003494-9289b13d-5e3c-4d1f-9d01-21b25a3f8219-33"</causeCode><exceptionBean><attribute><name>messageId</name><type>java.lang.String</type>