Not able to access web service with axis and tomcat

Dear all
i am trying to access web service using axis in tomcat.
i downloaded axis-bin-1_4.zip, unzipped it and installed it properly in tomcat.
i had tested axis, its working fine.
i had created a simple java class(a sample class from book) and deployed it in axis. i also created a client(a java consol class) for accessing that web service. but its giving error. i have no idea why this is comming.
plz point me in right direction.
thanks in advance
The error is:
Exception in thread "main" AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (404)/axis/ArithmeticProcessor.jws
faultActor:
faultNode:
faultDetail:
        {}:return code:  404
<html><head><title>Apache Tomcat/6.0.14 - Error report</tit
le><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;ba
ckground-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;
color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Ari
al,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-f
amily:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-famil
y:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:
Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color :
black;}A.name {color : black;}HR {color : #525D76;}--></style> </hea
d><body><h1>HTTP Status 404 - /axis/ArithmeticProcessor.jws</h
1><HR size="1" noshade="noshade"><p><b>
type</b> Status report</p><p><b>message</b> <u&
gt;/axis/ArithmeticProcessor.jws</u></p><p><b>descriptio
n</b> <u>The requested resource (/axis/ArithmeticProcessor.jws) is n
ot available.</u></p><HR size="1" noshade="noshade
"><h3>Apache Tomcat/6.0.14</h3></body></html>
        {http://xml.apache.org/axis/}HttpErrorCode:404
(404)/axis/ArithmeticProcessor.jws
        at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
ava:744)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at ArithmeticClient.main(ArithmeticClient.java:50)

Hi ,
Please go through this link and check in this way only you created the webservice correctly or not. If not follow and do it definitely will get you the webservice access by iphone or any application.
www.scribd.com/doc/19255987/Web-Services-in-Abap

Similar Messages

  • Not able to access Web services

    Hi all,
    I am trying to access web services using the transaction WSADMIN.
    But when i give the authorization while generating the WSDL, the following error pops up:
    <b>Technical Details of Soap Core Exception
    Message Text: SRT: ASSERT failed: object reference not bound
    Class: CL_SOAP_REGISTRY
    Method: generate_wsdl
    LocationID: 6
    Program: CL_SOAP_REGISTRY==============CP
    Include: CL_SOAP_REGISTRY==============CM00J
    Line: 59</b>
    Can anyboby share his/her insights in this regard?
    Thanks,
    Ankit

    Hi Fernando,
    Thanks for this.
    I was able to activate and deactivate the services. But i was not able to test these services (HTTP 500 Internal server error).
    Also the services which are listed in the trnx SICF are not present in the trnx WSADMIN (I am using trnx WSADMIN to go to the home page of the web service and download the WSDL file of the service). What may be the reason?
    Is there some configuration setting which I am missing or is it some other problem?
    Regards,
    Ankit

  • Not able to access Web Service Navigator

    Hi Everyone,
    I just installed the SLIM edition of Sneak preview. Everything is running fine(WAS, NWDS, MAX DB) but i could not able to access the following paths:
    1.) http://<localhost>:50000/wsnavigator
    2.) http://<localhost>:50000/uddiclient
    Wheather i have to configure them any where or this feature is not avaialble with the slim sneak preview?
    Thank you
    Bhaskar

    Hi Bhaskar,
    Slim edition has some apps deactivated. You can deploy them with Visual Admin in the deployment service.
    regards,
    Benny

  • Error starting web service with netbeans and tomcat

    Hi i'm trying to test a web service connection with mysql i follow all the steps showed here:
    http://jaxenter.com/from-database-to-restful-web-service-to-html5-in-five-minutes-48908.html
    the log :
    Using CATALINA_BASE:   "D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base"
    Using CATALINA_HOME:   "C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.3"
    Using CATALINA_TMPDIR: "D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\temp"
    Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_11"
    Using CLASSPATH:       "C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.3\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.3\bin\tomcat-juli.jar"
    17-Sep-2014 10:48:22.880 INFO [main] org.apache.catalina.core.AprLifecycleListener.init La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path: C:\Program Files\Java\jdk1.8.0_11\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\Users\investigacion01\Desktop\adt-bundle-windows-x86_64-20140702\sdk\tools;D:\Users\investigacion01\Desktop\adt-bundle-windows-x86_64-20140702\sdk\platform-tools;C:\Windows\System32;C:\Program Files (x86)\nodejs;C:\Program Files (x86)\Git\bin;D:\Users\investigacion01\AppData\Roaming\npm;D:\Kony\ImageMagick;D:\Kony\Ant\bin;C:\Program Files\apache-ant-1.9.4\bin;C:\Program Files\Java\jdk1.8.0_11\bin;D:\Users\investigacion01\Desktop\adt-bundle-windows-x86_64-20140702\sdk\platform-tools;D:\Users\investigacion01\Desktop\adt-bundle-windows-x86_64-20140702\sdk\tools;.
    17-Sep-2014 10:48:23.062 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8084"]
    17-Sep-2014 10:48:23.086 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
    17-Sep-2014 10:48:23.088 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
    17-Sep-2014 10:48:23.090 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
    17-Sep-2014 10:48:23.090 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 523 ms
    17-Sep-2014 10:48:23.113 INFO [main] org.apache.catalina.core.StandardService.startInternal Arrancando servicio Catalina
    17-Sep-2014 10:48:23.113 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.3
    17-Sep-2014 10:48:23.120 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Desplieque del descriptor de configuración D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\conf\Catalina\localhost\HelloWorldWebService.xml
    17-Sep-2014 10:48:23.153 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
    17-Sep-2014 10:48:23.180 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
    org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/HelloWorldWebService]]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697)
      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:579)
      at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1744)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
    Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@2b6fe9b5]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
      at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4841)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4966)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      ... 10 more
    Caused by: java.lang.IllegalArgumentException: The main resource set specified [D:\Users\investigacion01\Documents\HelloWorldWebService\build\web] is not valid
      at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:627)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      ... 13 more
    17-Sep-2014 10:48:23.181 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Error durante el despliegue del descriptor de configuración D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\conf\Catalina\localhost\HelloWorldWebService.xml
    java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/HelloWorldWebService]]
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697)
      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:579)
      at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1744)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
    17-Sep-2014 10:48:23.182 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Desplieque del descriptor de configuración D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\conf\Catalina\localhost\manager.xml
    17-Sep-2014 10:48:23.462 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars Al menos un JAR, que se ha explorado buscando TLDs, aún no contenía TLDs. Activar historial de depuración para este historiador para una completa lista de los JARs que fueron explorados y de los que nos se halló TLDs. Saltarse JARs no necesarios durante la exploración puede dar lugar a una mejora de tiempo significativa en el arranque y compilación de JSP .
    17-Sep-2014 10:48:23.871 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGenerator.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [347] milliseconds.
    17-Sep-2014 10:48:23.899 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Desplieque del descriptor de configuración D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\conf\Catalina\localhost\prueba.xml
    17-Sep-2014 10:48:23.902 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
    17-Sep-2014 10:48:25.055 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars Al menos un JAR, que se ha explorado buscando TLDs, aún no contenía TLDs. Activar historial de depuración para este historiador para una completa lista de los JARs que fueron explorados y de los que nos se halló TLDs. Saltarse JARs no necesarios durante la exploración puede dar lugar a una mejora de tiempo significativa en el arranque y compilación de JSP .
    17-Sep-2014 10:48:25.061 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Desplieque del descriptor de configuración D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\conf\Catalina\localhost\ROOT.xml
    17-Sep-2014 10:48:25.158 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars Al menos un JAR, que se ha explorado buscando TLDs, aún no contenía TLDs. Activar historial de depuración para este historiador para una completa lista de los JARs que fueron explorados y de los que nos se halló TLDs. Saltarse JARs no necesarios durante la exploración puede dar lugar a una mejora de tiempo significativa en el arranque y compilación de JSP .
    17-Sep-2014 10:48:25.166 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8084"]
    17-Sep-2014 10:48:25.185 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
    17-Sep-2014 10:48:25.186 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 2096 ms
    17-Sep-2014 10:48:27.370 INFO [http-nio-8084-exec-3] org.apache.catalina.startup.HostConfig.undeploy Repliegue (undeploy) de la aplicación web que tiene como trayectoria de contexto /prueba
    17-Sep-2014 10:48:27.411 INFO [http-nio-8084-exec-1] org.apache.catalina.startup.HostConfig.deployDescriptor Desplieque del descriptor de configuración D:\Users\investigacion01\AppData\Roaming\NetBeans\8.0\apache-tomcat-8.0.3.0_base\conf\Catalina\localhost\prueba.xml
    17-Sep-2014 10:48:27.414 WARNING [http-nio-8084-exec-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
    17-Sep-2014 10:48:28.345 INFO [http-nio-8084-exec-1] org.apache.jasper.servlet.TldScanner.scanJars Al menos un JAR, que se ha explorado buscando TLDs, aún no contenía TLDs. Activar historial de depuración para este historiador para una completa lista de los JARs que fueron explorados y de los que nos se halló TLDs. Saltarse JARs no necesarios durante la exploración puede dar lugar a una mejora de tiempo significativa en el arranque y compilación de JSP .
    17-Sep-2014 10:48:28.374 INFO [http-nio-8084-exec-1] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/prueba]] after start() had already been called. The second call will be ignored.

    This message comes up for me when i run a project that is different than what's indicated in the error message. In fact, the project has been deleted, yet, it still is referenced during the "run" step.

  • I'm not able to access goolge docs with the blackberry browser (it worked fine till a few weeks ago)

    I'm not able to access google docs with the blackberry browser (it worked fine till a few weeks ago)
    seems that this issue happens to a lot of people
    is google going head to head with Blackberry ? or is this just a bug ? 
    Message Edited by avolcoff on 08-27-2009 01:06 AM

    Welcme to the cmmunity supprt frums
    Nurse-Berry
    Follow NurseBerry08 on Twitter

  • Web services with axis & servlets ????

    Hi !
    Iwould like to know if it is possible to reach a tomcat servlet when we are running a service with axis integrated in tomcat : can we use the servetcontext and share it between tomcat & axis ????
    TU a lot...
    PA

    Hi,
    As far as I know if Apache soap used to implemented as a servlet. If axis is implemented the same way ( I am not sure about this), then it should be able the share the context with other servlets within the container. Hope this helps.
    Cheers,
    Arun

  • Not Able to Access the Properties of Workspace and Target

    Hello
    I have install PB 11.2 Build 9027 on my laptop ( Winows 7 (64 bit))). PowerBuilde is open and able to see the existing code.
    But when I am trying to access the properties of Workspace or target for Source code control Setup, Properties will not come and nothing happen, I am not able to view the properties of Workspace and targets.
    One more think I notice ,when I was trying to create new application (File > New > Target Tab > Application)  then window will not open.
    Please provide me some suggestion on this issue.
    Thanks
    Amit Maheshwari

    Hi,
    You might find a much larger audience for technical questions if you open a discussion at the PowerBuilder Developer Center
    PowerBuilder Developer Center
    Thanks,
    Ben

  • Not able to access Site logo from layout and css After removing all the permission from site

    Hi Techis,
    I have stucked here, actually I have removed permissions from all the users from the site and after sometime I got the mails from client that they are not able to access the Site logo and css in the site.
    When I logged from Farm account and checked I can see everything working fine.Also the masterpage and all are checked in
    I am not getting whats the exact issue.I stucked here from last one day Please help me to solve this issue.
    Thanks Regards,
    Simanchal

    Hello,
    Is it the publishing site? If so then go to site permission and provide permission to "NT AUTHORITY\authenticated users" to "Style Resource Readers" group.
    You also need to make sure that "style library" is inheriting permission from parent otherwise you need to give at least read permission to library for all users. To verify this, just open view all site content page-->then click on style library,then
    check permission.
    Let us know your result
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Not able to create Web Service Model in Visual Composer

    Hi All,
    I am trying to create a Web Service model in VC but I am not able to do so.
    When I am clicking on Create button its saying Invalid URL.I have tried a lot of web service URL.
    Can any one provide me some valid web service URLs or can anyone tell me what could be the problem.
    Sometimes it gives "Bad or missing XML"
    Please help
    Regards
    Roshni
    Edited by: Roshni Verma on Jan 15, 2010 3:09 PM

    Hi Roshni,
    Check the below wiki for web services.
    http://wiki.sdn.sap.com/wiki/display/VC/WebservicesforVisual+Composer
    Use the web services from www.webservicex.net
    Kind Regards
    Basheer

  • Not able to access CAS service through Endeca workbench: getting an error "CAS Console must be accessed through Workbench"

    Getting an error while accessing the Datasource tab through Endeca workbench "CAS Console must be accessed through Workbench". Verified both ws-extensions.xml and casconsole.properties files which exists under %ENDECA_TOOLS_CONF%/conf, both files shares the same sharedSecret. Do anybody knows how to resolve this issue.
    I did tried to reinstall CAS component multiple time , all the time the same error throwing.
    Endeca CAS service is also not able to start through microsoft console (services.msc) throwing an error " Windows could not start the Endeca CAS Service service on Local Computer"

    This can occur if CAS is reinstalled. Check your ws-extensions.xml and casconsole.properties files, and ensure that they agree on the same shared-secret.
    Best
    Brett

  • How to Access Web service with ADF Mobile Browser Application

    hi all,
    My Jdeveloper version is 11g 2 release(Version 11.1.2.2.0). I need to know If I create a web application and put it on a server as a web service., Then I create a Mobile browser application and need to access that web service.
    If it is possible, how should I do? version are same in both application.
    hopping any clue..
    Thxs.

    You can go thru the below links :
    ADF Mobile HowTos: Consuming SOAP web service in ADF Mobile using WS DC
    Oracle JDeveloper 11g Release 2 Tutorials - Building Mobile Applications with Oracle ADF Mobile

  • 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.
    Jeremy

    Hi,
    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

  • Creating Web Service in Eclipse with Axis and Tomcat

    Hi I'm quite new to web services. But I got a compiled class that i want to create a web service of. Since this class is compiled and lies in a package I can't just use the WTP and create a Buttom Up Web Service. So I created av wrapper class to this class to see if that would solve the problem, but i still get error messages that it's not JAX-RPC compliant. I've decompiled the class file I want to create a web service of and made a wrapper class with an interface around this class.
    package org.ejbca.core.protocol.ocsp;
    import org.bouncycastle.ocsp.*;
    public class OCSPResponse
    public OCSPResponse()
    resp = null;
    fnr = null;
    httpReturnCode = 200;
    errCode = 0;
    public OCSPResponse(OCSPResp ocspresp)
    resp = null;
    fnr = null;
    httpReturnCode = 200;
    errCode = 0;
    resp = ocspresp;
    public int getHttpReturnCode()
    return httpReturnCode;
    public void setHttpReturnCode(int code)
    httpReturnCode = code;
    public int getErrorCode()
    return errCode;
    public void setErrorCode(int code)
    errCode = code;
    public String getFnr()
    return fnr;
    public void setFnr(String fnr)
    this.fnr = fnr;
    public OCSPResp getResp()
    return resp;
    public void setResp(OCSPResp resp)
    this.resp = resp;
    public int getStatus()
    Something
    private OCSPResp resp;
    private String fnr;
    private int httpReturnCode;
    private int errCode;
    OCSPResp is an object from boncycastle, as i found out one of the problems is that OCSPResponse is a non Non-Built-In Data Type and don't just contain bulit-in datatypes.
    So can anybody give me a detaild input on how to solve this problem, including some hints on how to create a wrapper incase I've done something wrong.
    Tommy

    Try having a look at the following tutorial on how to create web services in PeopleSoft.
    Integration Broker basics for the PeopleSoft developer | Blogging About Oracle Applications

  • Not able to access the links to Planning and Shared Services

    Hi,
    I am trying to access the links to Planning and Shared Services but I get the following error message.
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    I tried to restart all the services on all the servers and also restarted the servers but it didn't work.
    Please let me know how to fix this issue. Also please let me know where else can I find the logs to the errors.
    Thanks.

    The logs would be a good place to start, if you are not sure where to look post your OS and planning version.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Not able to consume Web Services that are in Service Registry

    Hi Experts,
    I am trying to consume the web services that are published into the Service Registry of CE 7.1 Server.
    Previously, I was able to consume the web services.But now I found the following error in VC Console, When i try to consume the same web services or even other web services that are there in that server.
    "(E) Error in Search: Unknown error has occured in service execution"
    Please help me to solve this issue.
    Thanks,
    Regards,
    Palani

    Hi Palani,
    I guess the first 2 things you may want to test are:
    1. Is the Webservice reachable? please try and run the webservice URL in your browser and see if you get the xml file.
    2. Proxy settings - please see that the proxy settings on the server are defined properly.
    Hope this helps.
    Regards.
    Omer.

Maybe you are looking for