0 Replies Latest reply: Jun 7, 2011 12:08 PM by 856967 RSS

    integrating CRM On Demand- accountQueryPage (Unknown Source)

    856967
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <html>
      <head>
      <meta name="generator" content="HTML Tidy for Java (vers. 26 Sep 2004), see www.w3.org">
      <title></title>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Welcome to Oracle CRM On Demand</title>
      <link rel="stylesheet" href="/OnDemand/1.12.0.1220.0.05/enu/themes/classic/css/main.css" type="text/css">
      <link rel="shortcut icon" href="/OnDemand/1.12.0.1220.0.05/base/icons/favicon.ico">
      </head>
      <body bgcolor="white" link="black">
      .....................................................................;C:\Java\jdk160_21\src.zip integration.IntegrationService Got the connection to the database overrided the logon method got the URL from the properties file opened the connection using httpurlconnection class set the username using the GET method HTTPis 200 cookie is sun.net.www.protocol.https.DelegateHttpsURLConnection:https://secure-ausomxapa.crmondemand.com/Services/Integration?command=login the sessionID from cookie ise23b8f1c0441de304de609fa3ec53f1953791e6416765eb44180a4fdb2ad3c60.e3iRbxqLaNb0ax4NaNeRbN4Pby0 the record count is........................1 Jun 7, 2011 12:55:37 PM oracle.j2ee.ws.common.jaxws.JAXWSMessages log WARNING: Could not find service "{urn:crmondemand/ws/account/10/2004}Account"; Using first service in WSDL instead. the session binding provider is.................https://secure-ausomxapa.crmondemand.com/OnDemand/user/Homepage?j_home=Ye23b8f1c0441de304de609fa3ec53f1953791e6416765eb44180a4fdb2ad3c60.e3iRbxqLaNb0ax4NaNeRbN4Pby0 Jun 7, 2011 12:55:50 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration SEVERE: java.io.FileNotFoundException: C:\JDeveloper\mywork\AREA_CODE_006\CRM\.\config\jps-config.xml (The system cannot find the path specified) Jun 7, 2011 12:55:50 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration SEVERE: java.io.FileNotFoundException: C:\JDeveloper\mywork\AREA_CODE_006\CRM\.\config\jps-config.xml (The system cannot find the path specified) INFO: WSM-09004 Component auditing cannot be initialized. SEVERE: java.io.FileNotFoundException: C:\JDeveloper\mywork\AREA_CODE_006\CRM\.\config\jps-config.xml (The system cannot find the path specified) INFO: WSM-09004 Component auditing cannot be initialized. Content-Type = text/html; charset=UTF-8 Cache-Control = no-cache Cache-Control = no-store P3P = CP="CAO CUR ADM DEV TAI PSA PSD IVDi CONi TELi OUR IND PHY ONL UNI PUR FIN COM NAV INT CNT STA PRE" Expires = Thu Expires = 01 Jan 1970 00:00:00 GMT Server = Oracle-Application-Server-10g Date = Tue Date = 07 Jun 2011 16:55:56 GMT Vary = Accept-Encoding Vary = User-Agent Content-Location = https://secure-ausomxapa.crmondemand.com/OnDemand/logon.jsp?reason=logon&lang=enu&type=normal Pragma = no-cache <script type="text/javascript">
      function checkEnterLogon (event){   var code;   if (document.layers) {      code = event.which;   } else {      code = event.keyCode;   } if (code == 13) {      checkPreSubmit (document.logonForm);      return false;   } else {      return true;   }}function checkEnterTrialSignup (event){   var code;   if (document.layers) {      code = event.which;   } else {      code = event.keyCode;   } if (code == 13) {      checkPreSubmit (document.trialSignupForm);      return false;   } else {      return true;   }}function checkPreSubmit(oForm){  oForm.submit();}function loaded(){   document.logonForm.j_username.focus();}
      </script>
      <div class="mode" title="Click to hide banner">CTE - Leading Environment</div>
      <table border="0" style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
      <tr>
      <td valign="top">
      <table border="0" width="100%" cellpadding="0" cellspacing="0">
      <tr>
      <td height="45" class="logonCell">
      <center><img src="1.12.0.1220.0.05/base/themes/classic/images/logo_oracle_siebel_ondemand.gif">
      </center>
      </td>
      </tr>
      </table>
      <br>
      <br>

      <center>
      <table border="0" width="570" cellpadding="0" cellspacing="0">
      <tr>
      <td><br>

      <br>

      <br>

      <br>

      <br>

      </td>
      </tr>
      <tr>
      <td align="center"><br>
      <form name="logonForm" action="https://sso.crmondemand.com/router/authenticate" method="post">
      <table border="0" cellpadding="1" cellspacing="3">
      <tr>
      <td align="right"><span style="vertical-align:middle;" class="logonFont">User Sign In ID</span></td>
      <td style="padding-right:2px"><input name="j_username" maxlength="50" size="40" type="text" style="height:22px;width:300px;" autocomplete="off" value="">
      </td>
      </tr>
      <tr>
      <td align="right"><span style="vertical-align: middle;" class="logonFont">Password</span></td>
      <td style="padding-right:2px"><input name="j_password" maxlength="32" size="40" type="password" style="height:22px;width:300px;" autocomplete="off">
      </td>
      </tr>
      <tr>
      <td></td>
      <td style="padding-right:1px">
      <table border="0" width="300px" cellpadding="0" cellspacing="0">
      <tr>
      <td style="width:22px"><input name="rememberMe" type="checkbox">
      </td>
      <td class="logonFont">Remember My User ID</td>
      <td align="right">
      <table border="0" cellpadding="0" cellspacing="0">
      <tr>
      <td class="logonScreenButtonTD">Sign In</td>
      </tr>
      </table>
      </td>
      </tr>
      </table>
      </td>
      </tr>
      </table>
      <input name="langCode" type="hidden" value="enu">
      </form>
      </td>
      </tr>
      <tr>
      <td style="padding-top:8px" align="center">
      <form name="cantAccessAccountForm" action="CantAccessAccount" method="get">
      <table>
      <tr>
      <td>Can't access your account?</td>
      </tr>
      </table>
      <input name="lang" type="hidden" value="enu">
      </form>
      </td>
      </tr>
      </table>
      </center>
      </td>
      </tr>
      <tr>
      <td style="height:100px" align="center">
      <table border="0" width="435" cellpadding="0" cellspacing="0">
      <tr>
      <td align="center"><span class="unauthorizedWarningFont"><br>
      <br>
      Unauthorized use of this site is prohibited and may be subject to civil and criminal prosecution.</span></td>
      </tr>
      </table>
      </td>
      </tr>
      </table>
      javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; charset=UTF-8 at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:837) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:235) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:106) at oracle.j2ee.ws.client.jaxws.WsClientProxyInvocationHandler.invoke(WsClientProxyInvocationHandler.java:224) at $Proxy23.accountQueryPage(Unknown Source) at client.AccountClient.find(AccountClient.java:112) at integration.IntegrationService.integrateAccounts(IntegrationService.java:114) at integration.IntegrationService.main(IntegrationService.java:199) Caused by: javax.xml.soap.SOAPException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; charset=UTF-8 at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:231) at oracle.j2ee.ws.common.transport.HttpTransport.transmit(HttpTransport.java:75) at oracle.j2ee.ws.common.async.MessageSender.call(MessageSender.java:64) at oracle.j2ee.ws.common.async.Transmitter.transmitSync(Transmitter.java:134) at oracle.j2ee.ws.common.async.Transmitter.transmit(Transmitter.java:90) at oracle.j2ee.ws.common.async.RequestorImpl.transmit(RequestorImpl.java:273) at oracle.j2ee.ws.common.async.RequestorImpl.invoke(RequestorImpl.java:94) at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:794) ... 7 more Caused by: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; charset=UTF-8 at oracle.j2ee.ws.saaj.soap.MessageFactoryImpl.createVersionedMessage(MessageFactoryImpl.java:281) at oracle.j2ee.ws.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:173) at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.getHttpResponseMessage(HttpSOAPConnection.java:763) at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post2(HttpSOAPConnection.java:534) at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PrivilegedPost.run(HttpSOAPConnection.java:1261) at java.security.AccessController.doPrivileged(Native Method) at oracl