User 73ad691ca3
07-08-2012 12:07:33
Hi,
We are getting the below error while "creating relation tree" using "Relational Data Management Web Service" of Jchem webservices.
Error:
-----------------------------------------------------------------------------------------------------------------------------------------------
Schema not found ---> System.ServiceModel.FaultException: Schema not found Server stack trace: at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at RelAdminWS.RelAdminWSPortType.addToRelationTree(addToRelationTreeRequest request) at RelAdminWS.RelAdminWSPortTypeClient.RelAdminWS.RelAdminWSPortType.addToRelationTree(addToRelationTreeRequest request) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\dotnetnuke_community_06.02.00_install\4b65239a\61aec3b4\App_WebReferences.nrz77wce.1.cs:line 719 at RelAdminWS.RelAdminWSPortTypeClient.addToRelationTree(String connectionHandlerId, String relationTreeLabel, String relationType, String tableName1, String relationField1, String tableName2, String primaryField2, String relationField2, String fieldNameList2, String fieldTypeList2) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\dotnetnuke_community_06.02.00_install\4b65239a\61aec3b4\App_WebReferences.nrz77wce.1.cs:line 734
---------------------------------------------------------------------------------------------------------------------------------------------------------
We are using "Oracle" as database, Jchem webservice, jchem manager: 5.10.0, JChem Web Services 5.10.0,JVM: Oracle Corporation 1.7.0_05.
We are planning to search structure from "jchem structure table", and we want to export the structure from 'jchem structure table(called structure_1)' and the corresponding data from 'other table(called batch_1)'.
To do this, we are using the jchem webservice called "Relational Data Management Web Service" to create the relationtree. When i call the webservice method "createRelationTree" to create the relationtree, i was getting the above mentioned error. But in the database, the IJC tables were created, without any data.
Below is the c# code, which i am using to create the relation tree:
------------------------code----------------------------------------------------------------------------------------------------------------
//here i am calling the webservice to create relation tree
protected void btnCreateRelationTree_Click1(object sender, EventArgs e)
{
try
{
RelAdminWS.RelAdminWSPortTypeClient ra = new RelAdminWS.RelAdminWSPortTypeClient("RelAdminWSHttpSoap11Endpoint");
string connectionHandlerId = GetConnectionHandlerId();
string relationTreeLabel = "tr1";
string tableName = "structure_1";
string primaryField = "cd_id";
string fieldNameList = "";
string fieldTypeList = "";
string result = ra.createRelationTree(connectionHandlerId, relationTreeLabel, tableName, primaryField, fieldNameList, fieldTypeList); //ra.createRelationTree(GetConnectionHandlerId(), "relationTree1", "structure_1", "cd_id", "cd_id cd_molweight cd_timestamp", "integer float auto");
DisplayMessage(result);
}
catch (System.Exception exc)
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}
//to get connectionhandler id(this is working)
private string GetConnectionHandlerId()
{
try
{
//jchem webservice will use below parameters to connect to jchem database
string server = "180.190.20.10";
string port = "1521";
string databaseName = "jcmdb";
string username = "jcm";
string password = "jcm";
string propertyTable = "JCHEMPROPERTIES";
string driver = "oracle.jdbc.driver.OracleDriver";
string jdbcUrl = "jdbc:oracle:thin:@{0}:{1}:{2}";
jdbcUrl = string.Format(jdbcUrl, server, port, databaseName);
ConnectionWS.ConnectionWSPortTypeClient conWS = new ConnectionWS.ConnectionWSPortTypeClient("ConnectionWSHttpSoap11Endpoint");
string connectionResult = conWS.getConnection(driver, jdbcUrl, username, password, propertyTable);
return ExtractConnectionHandlerId(connectionResult);
}
catch (System.Exception exc)
{
throw exc;
}
}
private static string ExtractConnectionHandlerId(string connectionResult)
{
//Xml linq to get 'connectionHandlerId value' from 'ConnectionHandlerId Element' in the xml
var connectionHandlerId = (XDocument.Parse(connectionResult).Element("ConnectionHandlerId")).Value;
return connectionHandlerId;
}
--------------------------------------------------------------------------------------------------------------------------------------------
Is there any settings need to be done, or do we need to give any privilege?
Please help us on this?
Please let us know, if you need any information regarding this issue?
Please reply me asap.........
Thanks,
D. Senthil Vijai.