The embedded oc4j in JDeveloper returned a wrong data from the SOAP message

Greetings,
I made a webservice in .NET to send simply the current time of the server. then, I developed another client in JDeveloper to receive the time.
and the object declared in j2ee as Calendar object.
everythings went fine, but what I have noticed when I print the Calendar object, the time came plus 3 hours later as the .NET time.
FYI, I had checked the soap message that was received by embedded OC4J ,it was correct time, but the problem when you print it. and both .NET and Jdeveloper in the same machine
example:
<?xml version = '1.0' encoding = 'utf-8'?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<HelloWorldResponse xmlns="http://tempuri.org/">
<HelloWorldResult>2008-10-14T10:40:21.12</HelloWorldResult>
</HelloWorldResponse>
</soap:Body>
</soap:Envelope>
when I printed the data, I got 2008-10-14T13:40:21.12
so, does anyone have an idea about what is going on ??
thanks in advance.

ANY HELP :(

Similar Messages

  • Mail Session configuration with embedded oc4j in jdeveloper 10g 10.1.3.1

    Hello all:
    I'd tried to use javamail in a j2ee application. I´d defined an resource reference with the EJB Module Editor but when i run the application it throws:
    java.lang.InstantiationException: Error initializing ejb-modules: No Mail Session configured for the resource MailSession
    How can i configure a Mail Session with the embedded oc4j of jdeveloper 10g 10.1.3.1?
    Thanks a lot.

    Hi,
    You need to add following configuration in $ORACLE_HOME/j2ee/home/config/application.xml & restart your OC4J :-
    <mail-session location="EMailSession" smtp-host="mail.cdsc.com">       <property name="mail.transport.protocol" value="smtp"/>       <property name="mail.debug" value="true"/>    </mail-session>Regards,
    Sandeep

  • Help, how to monitor the soap message sent by JAX-WS

    Hi,everyone:
    I want to monitor the soap message sent by JAX-WS using apache TCPMon.
    For example, the JAX-WS is deployed on port 8080 , I make TCPMon listening on port 4444 and send soap request to port 4444 using JAX-WS.
    Code in client:
    @WebServiceClient(name = "JAX_WS", targetNamespace = "http://www.example.org/JAX_WS/", wsdlLocation = "file:/E:/zwz/EclipseWorkspace/JAX_WSDemo/WebRoot/META-INF/JAX_WS.wsdl")
    public class JAXWS_Service extends Service {
         private final static URL JAXWS_WSDL_LOCATION;
         private final static Logger logger = Logger
                   .getLogger(demo.client.JAXWS_Service.class.getName());
         static {
              URL url = null;
              try {
                   //URL baseUrl;
                   //baseUrl = demo.client.JAXWS_Service.class.getResource(".");
                   url = new URL("http://localhost:4444/JAX_WSDemo/JAXWSBean");
              } catch (MalformedURLException e) {
                   logger
                             .warning("Failed to create URL for the wsdl Location: 'file:/E:/zwz/EclipseWorkspace/JAX_WSDemo/WebRoot/META-INF/JAX_WS.wsdl', retrying as a local file");
                   logger.warning(e.getMessage());
              JAXWS_WSDL_LOCATION = url;
         public JAXWS_Service(URL wsdlLocation, QName serviceName) {
              super(wsdlLocation, serviceName);
         public JAXWS_Service() {
              super(JAXWS_WSDL_LOCATION, new QName("http://www.example.org/JAX_WS/","JAXWSBeanService"));  //JAX_WS
         @WebEndpoint(name = "JAX_WSPort")
         public JAXWS getJAXWSSOAP() {
              return super.getPort(new QName("http://www.example.org/JAX_WS/","JAX_WSPort"), JAXWS.class);  //JAX_WSSOAP
    }But i get the exception:
    Exception in thread "main" com.sun.xml.internal.ws.wsdl.parser.InaccessibleWSDLException: 2 counts of InaccessibleWSDLException.
    java.net.SocketException: Unexpected end of file from server
    java.net.SocketException: Unexpected end of file from serverAnd the TCPMon doesn't receive anything.
    If i use Axis2, the TCPMon will work fine.
    I cannot figure out how to configure the webservices.
    Could anyone help me? Thanks a lot.

    [http://blog.vinodsingh.com/2007/02/monitor-soap-messages.html|http://blog.vinodsingh.com/2007/02/monitor-soap-messages.html]
    Edited by: vinod.singh on 7 Apr, 2009 11:03 AM

  • Problem to serialise the soap message in a handler

    I'm using a sun web service with a handler on the server side.
    In this handler I want to analize the soap message.
    First I try to serialize it :
    public boolean handleRequest(MessageContext arg0) {
        SOAPMessageContext context = SOAPMessageContext) arg0;
        SOAPMessage mes = context.getMessage();
        Document doc= mes.getSOAPPart();
        OutputFormat format = new OutputFormat(doc);
        format.setLineSeparator(LineSeparator.Windows);
        format.setIndenting(true);
        format.setLineWidth(0);            
        format.setPreserveSpace(true);
        StringWriter sw = new StringWriter();
        XMLSerializer serializer = new XMLSerializer(sw , format);
        serializer.asDOMSerializer();
        serializer.serialize(doc);             
        System.out.println(sw.toString());
    }The result I get looks like that :
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope><soapenv:Header>
    Where are the namespaces ?
    This xml is not correct because the soapenv prefix is not bound.
    How can I get a correct xml from the SOAP message ?

    Hi,
    Is ZYBTT a new attribute? Have you changed the status of the attribute to implemented or released (in SWO1: Edit -> Change release status)?
    And actually I think that your syntax is wrong too (BOR world is different compared to classes). If you want to use an attribute, I think that the syntax should be something like this:
    SWC_GET_PROPERTY <Object> <Attribute> <AttributeValue>.
    Read more here:
    http://help.sap.com/saphelp_nw04/helpdata/en/c5/e4acef453d11d189430000e829fbbd/content.htm
    Regards,
    Karri

  • Unable to open PWA in browser and MSP on application server in project server 2007. ERROR: Sending the Soap message failed or no recognizable response was received.

    Hi All,
    I am using project server 2007 and WSS 3.0. 
    I have been facing a strange issue for couple of days. I am unable to open PWA in browser and MS Project Pro on application server.
    Everything is correct whether it is URL or MS Project profile account on MSP.  This is strange because i can open same PWA/MSP from other computers (Database server / Client PCs) but not locally on server.
    When i try to connect to MSP on App server, i get the following errors in event viewer.
    Event Type: Error
    Event Source: MSSOAP
    Event ID: 16
    User: N/A
    Computer: APP-Server-Name
    Description:
    Soap error: Connection time out..
    Event Type: Error
    Event Source: MSSOAP
    Event Category: Client 
    Event ID: 16
    User: N/A
    Computer: APP-Server-Name
    Description:
    Soap error: An unanticipated error occurred during the processing of this request..
    Event Type: Error
    Event Source: MSSOAP
    Event Category: Client 
    Event ID: 16
    User: N/A
    Computer: APP-Server-Name
    Description: Soap error: Sending the Soap message failed or no recognizable response was received.
    Event Type: Error
    Event Source: MSSOAP
    Event Category: Client 
    Event ID: 16
    User: N/A
    Computer: APP-Server-Name
    Description:
    Soap error: Unspecified client error..
    One more issue i am facing and i guess that is related to above issue. The Issue is, when i am creating a new project, It's workspace gets created but doesn't get linked to the project and i can't link it manually because it already exists for the project.
    sandeep

    Hi Paul ,
    Thanks for reply. The project server URL was already added to the Trusted
    Sites/Local Intranet areas in IE. 
    sandeep

  • Changing the value of the SOAPElement in the SOAP message

    Now another problem I encountered was of overwriting a value in the SOAP message by my value. SOAPElement interface which extends Node interface provides me the method getValue() to get the value of the node but doesnt give me any method to set any other value instead of this.
    <token xsi:type="xsd:string">token123</token>
    I want to replace the value "token123" with my value.
    Is there no provision for altering a value in the SOAP message? Is this due to security contraints?
    If yes then can we detach the same node and add a similar node with the new value. I wanted to try the same using addChildElements() method but then the problem here is how do I create a new SOAPElement in the handler as its an interface and not a class. Why I want to add a similar node is because I am having the definition of this object in the WSDL file, so if I attach the node corresponding to the parameter of the object then I would get the object populated with this value at J2EE or .net layer.
    Also I thought of adding an attribute to the same node but then since this attribute will not be defined in the WSDL, the value of this attribute will not populate the java object at the J2EE layer. Hence attribute introduction also didnt help.
    This is the userData object in the soap body:
    </q1:FetchDetailsInput><q2:UserData xmlns:q2="java:com.anthem.enb.common.data" xsi:type="q2:UserData" id="id2">
    <password xsi:type="xsd:string">12345</password>
    <token xsi:type="xsd:string">token123</token>
    <userID xsi:type="xsd:string">vikas123</userID>
    </q2:UserData>
    This is my code to extract the values from the above message:
    Iterator i = ctx.getMessage().getSOAPPart().getEnvelope().getBody().getChildElements();
    System.out.println(" i.hasNext() =" + i.hasNext());
    while (i.hasNext())
    Object obj = i.next();
    System.out.println(" obj :" + obj.getClass());
    if (obj instanceof SOAPElement)
    SOAPElement e = (SOAPElement) obj;
    System.out.println("e :" + e);
    String operationName = e.getElementName().getLocalName();
    LOG.info(CLASS_NAME + "operationName :" + operationName);
    if (operationName.equals("UserData"))
    Iterator j = e.getChildElements();
    LOG.info(CLASS_NAME + " j.hasNext() : " + j.hasNext());
    while (j.hasNext())
    Object obj2 = j.next();
    LOG.info(CLASS_NAME + " obj2 :" + obj2);
    LOG.info(CLASS_NAME + " obj2 :" + obj2.getClass());
    if (obj2 instanceof SOAPElement)
    SOAPElement eGrandChild = (SOAPElement) obj2;
    String operationName2 =
    eGrandChild.getElementName().getLocalName();
    if (operationName2.equals("userID"))
    String strPass = eGrandChild.getValue();
    LOG.info(CLASS_NAME + " strPass:" + strPass);
    else if (operationName2.equals("password"))
    String strUserID = eGrandChild.getValue();
    LOG.info(CLASS_NAME + " strUserID:" + strUserID);
    else if (operationName2.equals("token"))
    String strToken = eGrandChild.getValue();
    Please help.

    how do I create a new SOAPElement in the handler as its an interface and not a class?Here is an example:
    <example>
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage m = messageFactory.createMessage();
    SOAPEnvelope env = m.getSOAPPart().getEnvelope();
    SOAPBody body = env.getBody();
    SOAPElement fResponse =
    body.addBodyElement(env.createName("fResponse"));
    fResponse.addAttribute(env.createName("encodingStyle"),
    "http://schemas.xmlsoap.org/soap/encoding/");
    SOAPElement result =
    fResponse.addChildElement(env.createName("result"));
    result.addTextNode("test");
    ctx.setMessage(m);
    </example>
    Jong

  • Who will write the SOAP message

    when wrting simple Webservice .Who will write the SOAP message?
    weather it generate automatically? or we need write?
    is there any automatic tools are there to generte the SOAP message?
    Please send me a Simple Webservice Example?
    Thanks in advance
    Raju

    Check out http://jax-ws.dev.java.net and look at the samples provided. Netbeans 5.5 beta also makes it very easy to publish a web service. All of the hard work is done for you automatically, to you as a developer it looks just like you are makiing an normal method invocaiton, the framework underneath converts that invocation to/from a soap message.

  • ADDING xml to the SOAP Message from client

    Hi, does anyone know how to add an xml file to the SOAP message passed by the client to the server?
    I need to send an xml file, I have already tried attachments but they dont meet the purpose. I need to send the xml as part of the soap message in AXIS 1_4.
    I read this somewhere about
    SOAPEnvelope env = message.getSOAPEnvelope;
    env.addBodyElement( new RPCElement("SOAPaccess","webservicename", new
              Object[] { }) );
    FileInputStream file = new FileInputStream( "c:\\abcd.xml");
    SOAPBodyElement aBody = new SOAPBodyElement( file );
    file.close();
    env.addBodyElement( aBody );
              However I am not certain how to go about doing this in axis.
    I have been trying to find something related to this, but havent been able to.
    Please let me know if you know how to add xml file to the body of a SOAP message.

    If anyone is interested...I got this working,
    //b is the byte form of the xml document.
    InputStream is = new ByteArrayInputStream(b);
              Document doc =XMLUtils.newDocument(is);
              SOAPElement me = new MessageElement(doc.getDocumentElement());
              SOAPElement a=message.getSOAPBody().addChildElement(me);
              MessageContext mc=_call.getMessageContext();
              mc.setMessage(message);
              mc.getMessage().getSOAPBody().detachNode();
              SOAPBody sb = (SOAPBody)mc.getMessage().getSOAPPart().getEnvelope().addBody();
              sb.addChild(new MessageElement(doc.getDocumentElement()));
              mc.getMessage().saveChanges();
              System.out.println(mc.getMessage().getSOAPPart().getEnvelope());
              SOAPEnvelope env=(SOAPEnvelope)mc.getMessage().getSOAPPart().getEnvelope();

  • Return set of data from function

    Dear All
    How can i return set of data from from funtion into database?
    Thanks

    http://asktom.oracle.com/tkyte/ResultSets/index.html
    http://www.oracle-base.com/articles/8i/UsingRefCursorsToReturnRecordsets.php

  • How to intercept the soap messages.

    hi,
    I have developed a web service using jax-rpc. i know that when a client invokes the web service a SOAP message is sent to the server. Is there any tool that can intercept the SOAP message so that i can edit the message before it is sent to the server. I tried to download this tool called soapmonitor from westbridgetech.com but the site was not working. please help.
    regards,
    kartik.

    Maybe TCPMon would do the trick for you:
    http://ws.apache.org/commons/tcpmon/tcpmontutorial.html

  • JWSDP1.4 Access the SOAP Message in an RPC server

    hi i am new to web services... i have created RPC using JSWDP 1.4.
    I used the wscompile and wsdeploy tool to create the WSDL and server side of the web service.
    but because of a requirement change now i have to get the SOAP message Header and verify the client details (log who is using my service). How can i access the SOAP header??

    Make a backup then edit this file,
    TomcatRoot: ./shared/classes/com/tarantella/tta/webservices/client/apis/Resources.properties
    Edit all locations to point to https://localhost:443

  • Traping the SOAP message before making the call.

    We are using the axis for Web services, it works fine,
    Here is my question, before the call go out to third party services, I need to log the SOAP message into our logging system. How would I trap the message?
    Thanks in advance.
    -APK.

    I tried to achieve that using the following:
    http://e-docs.bea.com/wls/docs81/webserv/interceptors.html#1072668
    But it doesn't seem to work. try it!!
    -k

  • How to reload embedded oc4j in JDeveloper without terminating it?

    To the experienced:
    Using JDeveloper (10.1.3.4), when I need to see the effect of my changes in the application code (in the backing beans), the only way I know is to terminate the embedded oc4j by clicking the red square button (or Run > Terminate > Embedded OC4J Server), and then run a .jspx page to restart the oc4j. All these steps are just for the changes in the code to be loaded into the oc4j.
    That is a bit too cumbersome because such reloading is frequent. To test the changed application I need to use an outside page that sends a request to that .jspx page, with some information that the .jspx page needs. That won't work because the oc4j has been terminated. So I have to Run that .jspx page inside JDeveloper just to start the oc4j, knowing that this will spill error in the browser window because the information from the outside page is missing.
    Is there a way to have the application in the running oc4j updated without terminating and restarting the oc4j?
    Thanks for helping!
    Newman

    It kind of depends on the type of changes you did - some changes can be picked up automatically just by saving the new file and reloading in the browser.
    In any case you don't need to first stop the server and then run, you can just hit the run button again and JDeveloper will re-deploy your new page.
    You can have the HTML file be part of your project and run it from inside JDeveloper - this will also re-deploy your new JSPX.

  • Using embedded oc4j in jdeveloper 10.1.3. EA failed

    Hallo
    i have the following problem, and hope somebody can help me.
    i installed the jdev 10.1.3.EA 3412 on notebook with suse linux 9.2 and made a simple hallo world jsp.
    compilation was ok with no errors.
    when i run the jsp in jdev i get the following message:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    /home/wilhetho/jdevhome/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/config>
    /usr/share/jdk1.5.0_06/bin/java -server -classpath /opt/oracle/jdev/j2ee/home/oc4j.jar:/opt/oracle/jdev/jdev/lib/jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Xrs -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config /home/wilhetho/jdevhome/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/config/server.xml
    [waiting for the server to complete its initialization...]
    24.01.2006 19:15:34 com.evermind.server.XMLDataSourcesConfig parseRootNode
    INFO: Legacy datasource detected...attempting to convert to new syntax.
    06/01/24 19:15:43 java.net.NoRouteToHostException: No route to host
    06/01/24 19:15:43      at java.net.PlainSocketImpl.socketConnect(Native Method)
    06/01/24 19:15:43      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    06/01/24 19:15:43      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    06/01/24 19:15:43      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    06/01/24 19:15:43      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    06/01/24 19:15:43      at java.net.Socket.connect(Socket.java:507)
    06/01/24 19:15:43      at java.net.Socket.connect(Socket.java:457)
    06/01/24 19:15:43      at java.net.Socket.<init>(Socket.java:365)
    06/01/24 19:15:43      at java.net.Socket.<init>(Socket.java:207)
    06/01/24 19:15:43      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.sendMessage(Oc4jNotifier.java:98)
    06/01/24 19:15:43      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.postInitApplicationServer(Oc4jNotifier.java:55)
    06/01/24 19:15:43      at com.evermind.server.ApplicationServer.serverExtensionPostInit(ApplicationServer.java:1041)
    06/01/24 19:15:43      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:927)
    06/01/24 19:15:43      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:98)
    06/01/24 19:15:43      at java.lang.Thread.run(Thread.java:595)
    06/01/24 19:15:43 Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview initialized
    After this, the oc4j container is up an running, because i can reach it over the adress localhost:8988.
    So now my two questions:
    -> there is no browser starting (i tried different entries under tools-preferences-webproxy). what can be the reason?
    -> where does the error message no route to host come from?
    thank you

    Hi, here Re: java.net.ConnectException: Connection timed out: connect i post my workaround.
    bye
    Antonio.

  • Can't Profile my JSP's on embedded OC4J - what am I doing wrong?

    I can profile (Event and Execution) my executable client-side classes (ie, fired off via a main method) fine, but cannot get any profiling info on my JSP's - any suggestions on what I'm missing?
    I'm using JDev 9.0.3. I've tried it with and without the .jsps package in the Profile "Classes and Packages to include" path. I've tried it with and without the "Remote Profiling" option checked. I'm using the exact same section of code in my class and jsp, and the class works fine for both Execution and Event profiling, so I don't think its the code or my use of the API that's flawed. I've set the project's "Default Run Target" to the JSP (for attempts to profile the JSP - its set to the class for profiling of the main-invoked class).
    ojvm is selected under the Runner "Java Virtual Machine" option. The standard defaults are selected under the Tools:Preferences Embedded OC4J options.
    The profiler window just acts as if the JSP never runs (though in the log window, I get the "Profiler UI connected..." and the OC4J startup messages just fine.
    Most frustrated and appreciate any assistance!
    Thanks,
    Jim

    I can profile (Event and Execution) my executable client-side classes (ie, fired off via a main method) fine, but cannot get any profiling info on my JSP's - any suggestions on what I'm missing?
    I'm using JDev 9.0.3. I've tried it with and without the .jsps package in the Profile "Classes and Packages to include" path. I've tried it with and without the "Remote Profiling" option checked. I'm using the exact same section of code in my class and jsp, and the class works fine for both Execution and Event profiling, so I don't think its the code or my use of the API that's flawed. I've set the project's "Default Run Target" to the JSP (for attempts to profile the JSP - its set to the class for profiling of the main-invoked class).
    ojvm is selected under the Runner "Java Virtual Machine" option. The standard defaults are selected under the Tools:Preferences Embedded OC4J options.
    The profiler window just acts as if the JSP never runs (though in the log window, I get the "Profiler UI connected..." and the OC4J startup messages just fine.
    Most frustrated and appreciate any assistance!
    Thanks,
    Jim Jim,
    your solution is not inconsistent with how the execution and event profiler work. In the online documentation it states that "samples that have accumulated from the start of the program (or the last clear) are displayed when you pause the Execution Profiler or when the program terminates." You can hit 'pause' as you mention, 'snapshot', or stop the process to get results from the execution and event profilers. Basically, you need to tell the profiler when to provide a sample. Also if you plan to do any remote profiling of JSP's you will need to manually start the application and start a browser to invoke the JSP or servlet.
    I hope this

Maybe you are looking for

  • Refresh a materialized view in parallel

    Hi, To improve the refresh performance for a materialized view, I set up it to be refreshed in parallel. The view can be refreshed successfully, however, I did not see the view is refreshed in parallel from session browser, can someone let me know if

  • Erased all content from iPhone

    Hi All experts out there - Over the weekend I deleted my wife's old iPhone from FindmyIphone - Well that's what I thought, turns out it was both her old and new phones. That would have been fine, we had most of our contacts, calendars, reminders and

  • Intercompany Matching and Eliminations

    Hi All, We are trying to configure Intercompany Matching and Eliminations in application LEGAL following the docs: HTG Intercompnay Matching and BPC Intercompany Booking in Business Rules (both for MS Version), but we can't make any elimination (the

  • Problem in rotating and moving image at the same time

    the problem is that im making a car game(2D) in which u have upper view of car. i have make the car rotate bt problem is that i canot move it forward or backward correctly .wen i move it forward or backward i goes wrong... nd another problem is that

  • Problems installing Adobe Lightroom 4

    After downloading Adobe Lightroom 4 on my Windows 7 computer I get an "error reading stup initialization file" message.  I am not sure what to do now.  My computer meets all system requirements and I am logged in as the administrator.