Need idea : Integration of CRM On Demand web services with Oracle SOA 10g
Hi Al,
Can anyone have any idea on integration of CRM on Demand Web service with Oracle SOA 10g specially BPEL 10g.
If you have any idea please share with us. Or if you know any good link on the same... please let me know.....
Thanks in advance
Debarshi
AFAIK there is no such mapping available, however you may want to take a look at this Support Community thread that discusses the migration and even gives some samples.
Jani Rautiainen
Fusion Applications Developer Relations
https://blogs.oracle.com/fadevrel/
Similar Messages
-
Need help integrating the crm on demand in android
HI i am trying to consume the Oracle CRM on demand web services in android
I am doing this with ksoap android but confused with the urls to to declared
right now i am using
private final String NAMESPACE = "document/urn:crmondemand/ws/ecbs/account/10/2004" ;
private final String URL = "https://secure-slsomxvka.crmondemand.com/Services/Account/Query" ;;
private final String SOAP_ACTION = "document/urn:crmondemand/ws/ecbs/account/10/2004:AccountQueryPage";
private final String METHOD_NAME = "AccountQueryPage";
and for login
public static final String ONDEMAND_WS_URL = "https://secure-slsomxvka.crmondemand.com/Services/Integration?command=login";
i can log in and get get session but not sure about how to call the account info data or contact data
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("Userid", "XXX");
request.addProperty("Password","XXXX");
request.addProperty("ViewMode", "organization");
request.addProperty("BookName", "");
request.addProperty("jsessionid", JSESSIONID);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
try {
androidHttpTransport.call(SOAP_ACTION, envelope);
SoapPrimitive response = (SoapPrimitive) envelope.getResponse();
} catch (Exception e) {
Log.e(TAG, "Error"+e)Hi Prabhu,
Thanks for your reply.
But, I am using the Logo as a Standard text and then using that Logo in the window and I was not able to see the Logo on the Print preview page.
So kindly give inputs on this.
Regards,
Vishnu. -
Error while calling siebel crm on demand web service
Hi.
Has anyone encounter this problem before while trying to invoke the Siebel crm on demand web services? Please help.
Also, do I have to set up the SSL Trust Key and trust file to include the Siebel crm SSL cert?
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultString: com.ibm.wsspi.channel.framework.exception.ChannelException: com.ibm.wsspi.channel.framework.exception.ChannelException: Invalid trust file name of null
faultActor: null
faultDetail:Hi, yes I only use jax-ws to generate client artifacts for On Demand. I can imagine for first time user you have really big problems to generate the client code... The reason for this is in most cases the size of the wsdl files.
What you can do is.
1. Think about what you really need of the selected wsdl. eg. if it is account do you need all related objects like PlanAccount etc?
2. If you know what you need start to delete the not needed definitions from the wsdl and try the generation of client afterwards.
Best Regards
SL -
"Cipher not initialized" when trying to invoke CRM On Demand web service
Hi,
I'm try to invoke CRM On Demand web service for which there is a pre-req to get a session ID by making an https request. I've the below java embedded code which does that. It works fine if I run the below code in my desktop as a java program, but when I deploy it on SOA 11g I get "Caused by: java.lang.IllegalStateException: Cipher not initialized" error (find below the stack trace). Please let me know what's going wrong here?
String sessionString = "FAIL";
String wsLocation =
"https://secure-********.crmondemand.com/Services/Integration";
String headerName;
try {
// create an HTTPS connection to the OnDemand webservices
java.net.URL wsURL =
new java.net.URL(wsLocation + "?command=login");
java.net.HttpURLConnection wsConnection =
(java.net.HttpURLConnection)wsURL.openConnection();
// disable caching
wsConnection.setUseCaches(false);
// set some http headers to indicate the username and password we are using to logon
wsConnection.setRequestProperty("UserName",
wsConnection.setRequestProperty("Password", "***********");
wsConnection.setRequestMethod("GET");
// see if we got a successful response
if (wsConnection.getResponseCode() ==
java.net.HttpURLConnection.HTTP_OK) {
// get the session id from the cookie setting
for (int i = 0; ; i++) {
headerName = wsConnection.getHeaderFieldKey(i);
if (headerName != null &&
headerName.equals("Set-Cookie")) {
// found the Set-Cookie header (code assumes only one cookie is being set)
sessionString = wsConnection.getHeaderField(i);
if (sessionString != null ||
sessionString.startsWith("JSESSIONID")) {
break;
String formattedID =
sessionString.substring(sessionString.indexOf("=") + 1,
sessionString.indexOf(";"));
setVariableData("SessionID", formattedID);
//System.out.println("Session ID: " + sessionString);
} catch (Exception e) {
e.printStackTrace();
setVariableData("SessionID", e.getMessage());
System.out.println("Logon Exception generated :: " + e);
throw new RuntimeException(e);
Caused by: java.lang.IllegalStateException: Cipher not initialized
at javax.crypto.Cipher.c(DashoA13*..)
at javax.crypto.Cipher.update(DashoA13*..)
at com.certicom.tls.provider.Cipher.update(Unknown Source)
at com.certicom.tls.record.MessageEncryptor.compressEncryptSend(Unknown Source)
at com.certicom.tls.record.MessageEncryptor.compressEncryptSend(Unknown Source)
at com.certicom.tls.record.MessageFragmentor.write(Unknown Source)
at com.certicom.tls.record.WriteHandler.write(Unknown Source)
at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSent(Unknown Source)
at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown Source)
at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown Source)
at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown Source)
at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown Source)
at com.certicom.tls.record.MessageInterpreter.interpretContent(Unknown Source)
at com.certicom.tls.record.MessageInterpreter.decryptMessage(Unknown Source)
at com.certicom.tls.record.ReadHandler.processRecord(Unknown Source)
at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown Source)
at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown Source)
at com.certicom.tls.record.WriteHandler.write(Unknown Source)
at com.certicom.io.OutputSSLIOStreamWrapper.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
at weblogic.net.http.HttpURLConnection.writeRequests(HttpURLConnection.java:158)
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:363)
at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:37)
at weblogic.net.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:952)
at orabpel.productquerybpelprocess.ExecLetBxExe0.execute(ExecLetBxExe0.java:93)
Thanks!Same question...did you ever got this resolved...for me, even the simple java program, when run on JDev 11g is ALSO not working. I am getting this.
Using JDev 10g on the same machine (or for that matter SOA 10g) works perfectly.
Have posted this thread too - Getting SSLHandshakeException when trying to login to OCOD using Jdev 11g
Thanks,
Amit -
How to call web services from oracle database 10g
Hi all ,
How can i call web services from oracle database 10g ?
thanks ...abdou123 wrote:
but how can i get complex result
for example
i pass input parameter like National Id Number
and get the person details ( name , age , date of birth , ............ ) .Basic approach to web services using UTL_HTTP explained in {message:id=10448611}.
An example of using a pipeline table function as a data transformation process (turning web data into rows and columns) in {message:id=10158148}. -
Calling web service from oracle forms 10g
Problem Description:
I'm following the steps as per the doc:
http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
WSDL for external web service used is http://gend:83/DesignService.svc?wsdl
The service was developed by us.
Calling the web service using JDeveloper works fine but when I complie in Oracle Forms it returns wrong number of types of arguments in call SENDHELLO.
The code from oracle form to call web service is as below:
DECLARE
jo ora_java.jobject;
xo ora_java.jobject;
rv varchar2(2000);
ex ora_java.jobject;
str varchar2(100);
BEGIN
jo := GendServiceClient.new;
rv := GendServiceClient.sendHello('Nora');
EXCEPTION
WHEN ORA_JAVA.JAVA_ERROR then
message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
WHEN ORA_JAVA.EXCEPTION_THROWN then
ex := ORA_JAVA.LAST_EXCEPTION;
message(Exception_.toString(ex));
END;
Any help/ideas on this is greatly appreciated. Thanks.
Edited by: KE Nora Loera on Jun 1, 2012 1:24 PMMy primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
Thanks -
CRM On Demand Web Services Release 18 from JDeveloper 10g (10.1.3.5)
Hello,
I have tried to do a query over an account with QueryPage method in JDeveloper 10.1.3.5 but i have the following error:
javax.xml.rpc.soap.SOAPFaultException: Server
* at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:566)*
* at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:401)*
* at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:114)*
* at crm.outlook.proxy.runtime.Account_Stub.accountQueryPage(Account_Stub.java:76)*
* at crm.outlook.proxy.AccountClient.accountQueryPage(AccountClient.java:108)*
* at crm.outlook.proxy.AccountClient.main(AccountClient.java:73)*
And the URL format to connect is:
https://secure-ausomx[ENV].crmondemand.com/Services/Integration;jsessionid=4d60be775d680584e919a0b2fd6bb4260a4be9df6c10ab607eef3e1f167be64b.e3iRbxmMax50bxaNchyRa3yMe0
The principal part of my source code is the following:
input.setViewMode("Broadest");
input.setLOVLanguageMode("LIC");
listQuery.setPagesize(BigInteger.valueOf(100));
listQuery.setStartrownum(BigInteger.valueOf(0));
listQuery.setRecordcountneeded(true);
id.set_value("AHKA-1ME4Z2");
name.set_value("");
externalID.set_value("");
integrationID.set_value("");
//I have changed the value of the query. With different possibilities, i.e.:
//id.set_value("= 'AHKA-1ME4Z2' ");
//and I have tried with the following too:
//id.set_value(""); //to query all accounts
accountQuery.setId(id);
accountQuery.setAccountName(name);
accountQuery.setExternalSystemId(externalID);
accountQuery.setIntegrationId(integrationID);
listQuery.setAccount(accountQuery);
input.setListOfAccount(listQuery);
myPort.accountQueryPage(input);
I have tried with insert operation too, but the issue is the same.
NOTES:
- I haven't proxy.
- I have activated "Integration Web Services" privileges.
- I have activated "Web Services R16 Compatibility" in company profile. And I have tried unchecked it and the problem doesn't resolve.
The login is correct over CRM OD (in uses WS CRM OD page I can see them), but the WS doesn't do the operation (query an account). It seems can't send the message.
I have validate my environment [ENV] and it is correct.
"Oracle Web Services On Demand Guide (Release 18)" differences with WS Release 16 to do a QueryPage Operation:
- Obligatories fields --> ListOfEntity (in my case, ListOfAccount), ViewMode (I have specified, Broadest).
- QueryPage Syntax Release 18: [XML Tag] {Operator} {Value} (Page 86), with Release 16: QueryPage Syntax: {Operator} {Value}
- Release 18: it's necessary specify the searchspec option over AccountQuery Type.
So, I have the following:
accountQuery.searchspec ("[AccountName] = 'Gran Empresa, S.A.'");
// I have tried too: accountQuery.searchspec("= [AccountName] = 'Gran Empresa, S.A.'");
// accountQuery.searchspec("= '[AccountName]' = 'Gran Empresa, S.A.'"); listQuery.setAccount(accountQuery); input.setListOfAccount(listQuery);
output = myPort.accountQueryPage(input);
But it isn't solve the issue...
Any idea what I'm doing wrong?
thanks in advance and regards.Hello Frank,
Thank you for your suggestion. I tried that and I got the same error. Looked more careful at it:
Exception java.io.IOException: /my/home/data/opt/jdeveloper/jdev/bin/ojc: cannot execute
I tried to execute it manually:
$ l /my/home/data/opt/jdeveloper/jdev/bin/ojc
-rw-rw-r-- 1 marius marius 1.9k Dec 2 19:20 /my/home/data/opt/jdeveloper/jdev/bin/ojc
$ /my/home/data/opt/jdeveloper/jdev/bin/ojc
bash: /my/home/data/opt/jdeveloper/jdev/bin/ojc: Permission denied
Did
$ chmod a+x /my/home/data/opt/jdeveloper/jdev/bin/ojc
which solved the execution. Now Hello word works.
I got jdeveloper as a .zip archive, which doesn't keep unix permissions. The Linux distribution should be in .tgz archive, it would have avoided this problem.
Thanks! -
Database Web Services with Oracle 10g
Forgive my lack of knowledge on this issue, but we are still researching our options and we have very little experience with these new technologies.
We have been using Oracle Database server for years and we are looking now into integrating or applications to offer farther solutions to our customer as well as to implement a b2b solution.
Our b2b solution consist of a relationship between Partners of our customer via a hub server that would reside on our quarters. In other words our customers servers would communicate with their partners via our server and vice versa.
We are planning to use Fusion to implement our Hub server and my question is:
"Should we deploy A J2EE container to our customer where 'client services' would run to maintain a runtime communication with our hub or can we skip the J2EE container by using Database Web Services?"
And a related question:
"What Oracle components are required for Database Web Services to work? How are they implemented?"
Thank you!After farther reading about Database Web Services, it seems that you still need at least OC4J on the customer side to run Database Web Services. Is that correct?
So if the best approach is to deploy OC4J to our customers, how difficult is to do so and how can I configure each one of my customers so my hub server can uniquely identify each one of them? -
Exception when calling web service from Oracle forms 10g
Hi All,
I am trying to integrate Oracle Forms 10g(V 10.1.2.0.2.) with Web Services.
There is a java class named 'authenticate' which is generated using Oracle JDeveloper.
This class is included in the forms application by using "Import Java Class" feature.
Forms built the following funtion based on that class:
-- Method: authenticate (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
FUNCTION authenticate(
obj ORA_JAVA.JOBJECT,
a0 VARCHAR2,
a1 VARCHAR2) RETURN VARCHAR2 IS
BEGIN
args := JNI.CREATE_ARG_LIST(2);
JNI.ADD_STRING_ARG(args, a0);
JNI.ADD_STRING_ARG(args, a1);
message('here1');
RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'mypackage/AuthenticatorWebServiceServiceStub',
'authenticate', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', args);
message('here2');
END;
However when the above code is invoked it shows the message 'here1' on the form and then throws the following exception: java.lang.Exception: java.lang.ClassCastException
Please suggest me what's wrong with the code. I appreciate your time and help.
Thanks,
Scott.My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
Thanks -
Digital Certificates and Web Services with Oracle APEX
Hi people,
I am working to implement Web Service communication using Oracle Apex. I need to create an application that calls an external public Web Service in Apex. So far, so good, and i am able to work with a public WS without any problems.
However, this particular WS I'm calling has two peculiarities:
1) It is SSL-Secured (HTTPS). This means i have to communicate using SSL and Public/Private Certificates.
2) The message i pass (payload) must be digitally signed using XMLDsig Standard (www.w3.org/TR/xmldsig-core/)
The first requirement i am still testing, but it will probably work if i import the public and private keys using Oracle Wallet and point to this Wallet, just as PayPal sample in OTN samples does, don't you think? Should i have any problems with this?
The second one is more complicated, all APIs i have seen for XML Digital Signing are Java-based or .NET-based, i have found nothing based in PL/SQL packages or such. Can you point me some other options to sign this XML?
Please bear in mind that, since the WS has more than one method, i am using plain old UTL_HTTP to call it (just like the PayPal sample in OTN). PayPal requests that all communication be SSL-enabled, but has no mention whatsoever for Digital Signatures.
Can anybody help me out with this? any help is highly appreciated.
Regards
ThiagoThiago:
You are correct in that there should be no problem interacting with a Web service that has an HTTPS endpoint as long as you create a wallet and specify it when you make your UTL_HTTP calls, like the PayPal example.
I am not aware of a PL/SQL utility to create a XMLDsig Standard message, but if you find some Java source out there that does it, you may be able to follow a technique I used for a similar use case:
http://jastraub.blogspot.com/2009/07/hmacsha256-in-plsql.html
Regards,
Jason -
Web Services with Oracle Forms 6.0.8
Hey ,
Does anyone have any how to guide / tutorials / examples for using web services on forms 6.0.8 ?
cheers
C.ODP.NET requires Oracle Client 9.2 or higher.
You can find additional information about ODP.NET from the FAQ:
http://www.oracle.com/technology/tech/windows/odpnet/faq.html
and the ODP.NET homepage:
http://www.oracle.com/technology/tech/windows/odpnet/index.html
Hope that helps,
Mark -
Security issue with Web Services on Oracle SOA suite? (Serious?)
Hi,
I have recently installed and set up the SOA 10.1.3 on my local machine.
I created a simple test web service and deployed - worked ok.
I then added simple plain text security to the service, and again opened it up for testing using the test service function.
Initially, it returns with the expected message 'missing soap header security'.
However if you refresh the page / or test the service again, it is then invoked - seemingly bypassing the security !!!
Oddly the 3rd attempt then shows the security message again, and it seems to alternate between allowing access to the service and imposing the security?!?!
Has anyone else experience this ?
Is it a bug ? (if so, its a pretty nasty one that could quite possibly catch alot of people out !)I have now created an independant client in Java to call the WS.
The security is still bypassed on ever other call?!?!
I have this over HTTPS also, and was hoping this would provide an adequate means of securing my web services.
How is everyone else securing web services that are exposed to general consumers? Maybe i should find a new approach ! -
hi,
could someone help me out in this error..
oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20010: Unable to get service configuration properties (IfsDefault)
Thanks
ArvindHi Mike,
yes ! i am trying to make XML/SOAP based Web services work with iFS
Let me give u the exact details of the what i am trying to achieve.
I have a stateless session bean method which i am exposing as a webservice.
This method invokes the IFS API.
I do something like this :
// inside the webservice method
callingIFS( );
=====================================================
public void callingIFS() {
LibraryService service = LibraryService.startService("IfsDefault", "ifssys");
CleartextCredential cred = new CleartextCredential("system","system");
====================================================
When it comes to the LibraryService it fails to start the service.
======================================================
oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20010: Unable to get service configuration properties (IfsDefault)
=========================================================
It is unable to locate the properties file.
Thanks'
Arvind -
How to access web services with Javascript
I want to create a XUL/Javascript form which uses CRM On Demand web services. At this time I cannot login (no sample code is given for javascript), therefore I generate my JSESSIONID separately, try and put it in the URL I call in my code, but the server answers back with the logon.jsp page.
function test()
var xmlToSend = "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:con='urn:crmondemand/ws/contact/' xmlns:con1='urn:/crmondemand/xml/contact'>";
xmlToSend += "<soapenv:Header/>";
xmlToSend += "<soapenv:Body>";
xmlToSend += "<con:ContactWS_ContactQueryPage_Input>";
xmlToSend += "<con1:ListOfContact>";
xmlToSend += "<con1:Contact>";
xmlToSend += "<con1:ContactId></con1:ContactId>";
xmlToSend += "<con1:AccountId></con1:AccountId>";
xmlToSend += "<con1:ContactEmail>= '[email protected]'</con1:ContactEmail>";
xmlToSend += "<con1:ContactFirstName></con1:ContactFirstName>";
xmlToSend += "<con1:ContactFullName></con1:ContactFullName>";
xmlToSend += "<con1:ContactLastName></con1:ContactLastName>";
xmlToSend += "<con1:AccountName></con1:AccountName>";
xmlToSend += "</con1:Contact>";
xmlToSend += "</con1:ListOfContact>";
xmlToSend += "</con:ContactWS_ContactQueryPage_Input";
xmlToSend += "</soapenv:Body>";
xmlToSend += "</soapenv:Envelope>";
var xmlhttp;
xmlhttp = new XMLHttpRequest();
xmlhttp.overrideMimeType('text/xml');
xmlhttp.onreadystatechange=DisplayContact;
xmlhttp.open("POST", "https://secure-ausomxdsa.crmondemand.com/", false);
xmlhttp.setRequestHeader('Man', 'POST /Services/Integration;JSESSIONID=blablabla HTTP/1.1');
xmlhttp.setRequestHeader('Content-Type', 'text/xml');
xmlhttp.setRequestHeader('Content-Length', xmlToSend.length);
xmlhttp.setRequestHeader('SOAPAction', 'document/urn:crmondemand/ws/contact/:ContactQueryPage');
function DisplayContact()
if (xmlhttp.readyState==4) {
if (xmlhttp.status==200) {
var response = xmlhttp.responseXML;
var responsetxt = (new XMLSerializer()).serializeToString(response);
document.write(responsetxt);
The result is: responsetxt always contains the HTML code of logon.jsp.
Anyone could help with a login code, or with the interrogation.
JeremyHi,
A JS Sample....
You can use this JS in a Web Applet
_____________________________________________ START OF FILE _____________________________________________
<html>
<head>
<script type="text/javascript">
var sso_token='%%%SSO Token%%%' // You can use an OCOD Variable in OCOD Web Applet
sso_token = sso_token.replace(/\+/g, "%2B");//re-Encondig SSO-Token
alert (sso_token);
//////////////////////////////////// getInnerText() ////////////////////////////////////////
function getInnerText(node) {
if (typeof node.textContent != 'undefined') {
return node.textContent;
else if (typeof node.innerText != 'undefined') {
return node.innerText;
else if (typeof node.text != 'undefined') {
return node.text;
else {
switch (node.nodeType) {
case 3:
case 4:
return node.nodeValue;
break;
case 1:
case 11:
var innerText = '';
for (var i = 0; i < node.childNodes.length; i++) {
innerText += getInnerText(node.childNodes);
return innerText;
break;
default:
return '';
//////////////////////////////////// sso_login() ////////////////////////////////////////
//https://server/Services/SSOTokenValidate?odSsoToken = "ssotoken value"
//https://server/Services/Integration?command=ssologin&odSsoToken="ssotoken value"
var ajax=null;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
ajax = new ActiveXObject("Microsoft.XMLHTTP");
}else{
ajax = new XMLHttpRequest();
function SSO_Login() {
//var url = 'https://secure-ausomxdsa.crmondemand.com/Services/SSOTokenValidate?odSsoToken='+sso_token; // Check SSO Token
var url = 'https://secure-ausomxdsa.crmondemand.com/Services/Integration?command=ssologin&odSsoToken='+sso_token;
ajax.open("HEAD", url, true);
ajax.onreadystatechange = getReponse;
ajax.send(null);
//////////////////////////////////// Login() ////////////////////////////////////////
var ajax=null;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
ajax = new ActiveXObject("Microsoft.XMLHTTP");
}else{
ajax = new XMLHttpRequest();
function Login() {
var url = 'https://secure-ausomxdsa.crmondemand.com/Services/Integration?command=login';
ajax.open("HEAD", url, true);
ajax.onreadystatechange = getReponse;
ajax.setRequestHeader('UserName','GLABADEN-FR13-15/WSUserName');
ajax.setRequestHeader('Password','OnDemandPassword');
ajax.send(null);
//////////////////////////////////// getReponse() ////////////////////////////////////////
function getReponse(){
switch(ajax.readyState){
case 0:
case 1:
//open com
break;
case 2:
//send query
break;
case 3:
//recieving data
break;
case 4:
//data received
//ajax.status contient 200, 404, ...
//ajax.statusText contient OK, NOT FOUND, ...
var reponseTexte= ajax.responseText;
var responseXml= ajax.responseXml;
alert(ajax.getResponseHeader("Set-Cookie"));
break;
//////////////////////////////////// Call_WS() ////////////////////////////////////////
function Call_WS(){
var xmlhttp =null;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}else{
xmlhttp = new XMLHttpRequest();
xmlhttp.open("POST", "https://secure-ausomxdsa.crmondemand.com/Services/Integration",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
rteNode = xmlhttp.responseXML.getElementsByTagName("ListOfContact").item(0);
alert(rteNode.childNodes.length);
for(var i=0; i<rteNode.childNodes.length; i++){
switch( rteNode.childNodes.item(i).tagName ){
case 'Contact':
var ContactId = rteNode.childNodes.item(i).childNodes.item(0).tagName;
var ContactIdValue = rteNode.childNodes.item(i).childNodes.item(0).text;
var ContactIdGetValue = getInnerText(rteNode.childNodes.item(i).childNodes.item(0));
alert(ContactId+" : "+ContactIdValue +" / "+ContactIdGetValue);
break;
case 'Other':
break;
default:
break;
xmlhttp.setRequestHeader("SOAPAction", "\"document/urn:crmondemand/ws/contact/10/2004:ContactQueryPage\"")
xmlhttp.setRequestHeader("MessageType", "CALL")
xmlhttp.setRequestHeader("Content-Type", "text/xml")
//xmlhttp.setRequestHeader("Content-Type", "text/xml;charset=UTF-8")
//xmlhttp.setRequestHeader("Content-Type", "text/xml;charset=ISO-8859-1")
var miSoap=
'<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:crmondemand/ws/contact/10/2004" xmlns:con="urn:/crmondemand/xml/contact"> \n' +
'<soapenv:Header/> \n' +
'<soapenv:Body> \n' +
'<ns:ContactWS_ContactQueryPage_Input> \n' +
'<ns:PageSize>10</ns:PageSize> \n' +
'<con:ListOfContact> \n' +
'<con:Contact> \n' +
'<con:ContactId></con:ContactId> \n' +
'</con:Contact> \n' +
'</con:ListOfContact> \n' +
'<ns:StartRowNum>0</ns:StartRowNum> \n' +
'</ns:ContactWS_ContactQueryPage_Input> \n' +
'</soapenv:Body> \n' +
'</soapenv:Envelope> \n' ;
alert(miSoap);
xmlhttp.send(miSoap);
//$(document).ready(function () {
alert("start");
$("table").each(function() {
alert("table");
var $table = $(this);
var str_id = $table.id;
alert(str_id);
</script>
<h1>Javascript WS</h1>
<input type="button" onclick="Login()" value="Login">
<input type="button" onclick="SSO_Login()" value="SSO_Login">
<input type="button" onclick="Call_WS()" value="Call_WS">
</body>
</html>
_____________________________________________ END OF FILE _____________________________________________
Best Regards,
Gerald -
Help Needed compile, deploy Web Service with Annotations on Web Logic 9.2
Hi,
I am new web logic and need some help in compiling, creating deployment file i.e. war, ear on Web Logic 9.2. I have the following sample web service with annotations code code but need help in compiling, creating deployment file (war,ear), creating proxy for testing etc. How to compile and create deployment files in WebLogic 9.2. Any help is really appreciated.
package sample_ws;
import java.rmi.RemoteException;
import javax.jws.*;
import javax.jws.soap.SOAPBinding;
import org.w3c.dom.Document;
@WebService
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle.BARE)
public class EchoService {
public EchoService() {
@WebMethod(action="echo")
@WebResult(targetNamespace="http://exa.org", name="echoResult")
public Document echo(@WebParam(targetNamespace = "http://exa.org",
name = "echoMsg")
Document doc) throws RemoteException{
return doc;
}ThanksI am using Oracle Jdeveloper as an IDE and created a war file and deployed on Oracle App. Server it works fine. Now if I deploy the same war on Web Logic it gives me the following error:
java.lang.IllegalStateException: could not find schema type named {{http}//exa.org}>>echoResult
Errors were encountered while performing this operation. Here is the code I have:
package webservice2 ;
import java.rmi.RemoteException;
import javax.jws.*;
import javax.jws.soap.SOAPBinding;
import org.w3c.dom.Document;
@WebService
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle.BARE)
public class EchoService {
public EchoService() {
@WebMethod(action="echo")
@WebResult(targetNamespace="http://exa.org", name="echoResult")
public Document echo(@WebParam(targetNamespace = "http://exa.org",
name = "echoMsg")
Document doc) throws RemoteException{
return doc;
}And here is the wsdl file I have:
<definitions
name="EchoServiceService"
targetNamespace="http://webservice2/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://webservice2/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:ns1="http://exa.org"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://exa.org" elementFormDefault="qualified"
xmlns:tns="http://exa.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/">
<element name="echoMsg" nillable="true">
<complexType>
<sequence>
<any/>
</sequence>
</complexType>
</element>
<element name="echoResult" nillable="true">
<complexType>
<sequence>
<any/>
</sequence>
</complexType>
</element>
</schema>
</types>
<message name="EchoServicePortType_echo">
<part name="echoMsg" element="ns1:echoMsg"/>
</message>
<message name="EchoServicePortType_echoResponse">
<part name="echoResult" element="ns1:echoResult"/>
</message>
<portType name="EchoService">
<operation name="echo">
<input message="tns:EchoServicePortType_echo"/>
<output message="tns:EchoServicePortType_echoResponse"/>
</operation>
</portType>
<binding name="EchoServiceSoapHttp" type="tns:EchoService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="echo">
<soap:operation soapAction="echo"/>
<input>
<soap:body use="literal" parts="echoMsg"/>
</input>
<output>
<soap:body use="literal" parts="echoResult"/>
</output>
</operation>
</binding>
<service name="EchoServiceService">
<port name="EchoServiceSoapHttpPort" binding="tns:EchoServiceSoapHttp">
<soap:address location="http://localhost:8888/EnableSrc-WebService2-context-root/EchoServiceSoapHttpPort"/>
</port>
</service>
</definitions>Any ideas what might be wrong.
Maybe you are looking for
-
Hello All! I am trying to load Infotypes 0000, 0001 and 0002. I will have to load some others too, but I am already having trouble to fill this ones that are the main Infotypes. I´m using the parameter DIALOG_MODE = '1' so I can see the error. and I
-
Is there a way to NOT add "_X4" to the pdf file name after batch processing conversion?
whenever i convert a pdf file to a certain profile in batch processing, the pdf file duplicates with the other one having an "_x4" in the filename. i already tried removing in fixups (preflight) but i can't. do you have any ideas? thanks!
-
Snow Leopard - english version
I live in Sweden and I want to buy english version of upgrade to Snow Leopard. But when I try to go to the Apple Store, it offers me only swedish version (it is not mentioned until I see application and there is upgrade-swe). Do I need to go direct t
-
Why is it that it is only the US itunes store that can purchase movies/musicvidoes ? When will this become available for people in Europe??
-
Reg PM Order Confirmation(IW41)
Hi, In PM Order internal Jobs time confirmation(IW41), i am in need to give the Personnel No. Can anyone please explain me where i have to configure the Personnel No in SPRO.? & How to link the personnel no field in IW41 page during time confirmati