JDev 11g on WebLogic+TopLink+Web Services (getSharedSession() Disconnects)

I am facing an issue while using {color:#0000ff}TopLink{color} through a {color:#0000ff}web service{color} request.
I apologize for a lengthy posting but thought I should give as much information as possible.
<strong><u>Migration from TP4 to JDev 11g Production
</u></strong>I am in a process of {color:#0000ff}migration{color} of an application from {color:#0000ff}JDeveloper 11g TP4 to JDeveloper 11g Production{color}.
I am facing an issue using {color:#0000ff}TopLink{color} with {color:#0000ff}Web Services{color} on {color:#0000ff}Oracle WebLogic 10g Release 3.
{color}
<strong><u>Existing Application</u></strong>
This application uses {color:#0000ff}TopLink{color} and also has{color:#0000ff} JAX-WS{color} based web services.
The web services client calls the service endpoint that internally uses {color:#0000ff}TopLink{color} to make database calls.
We currently use {color:#0000ff}Tomcat{color} for deployment and the application works fine.
<strong><u>Issue while moving to Oracle WebLogic 10g R3
</u></strong>While porting this application to WebLogic we faced an issue wherein a call to the {color:#0000ff}web service{color} results in {color:#0000ff}disconnection{color} of existing {color:#0000ff}TopLink{color} {color:#000080}server session{color} and creation of new ones.
Some surfing on the net indicated that this could be due to the different class loaders that are used to access the TopLink server session.
You must login to the ServerSession before acquiring ClientSessions
<strong><u>LOG</u></strong>
Here is a log from our application
TopLink server sessions when accessed in several JSP pages.
getDelegateSession: session = 6666709
getDelegateSession: sessionName = my_session (this is the name of the server session)
getDelegateSession: sessionClassLoader =weblogic.utils.classloaders.ChangeAwareClassLoader@feaad1 finder: weblogic.utils.classloaders.CodeGenClassFinder@15712d annotation: &lt;JDevApp&gt;@&lt;Appname&gt;
getDelegateSession: threadClassLoader =weblogic.utils.classloaders.ChangeAwareClassLoader@feaad1 finder: weblogic.utils.classloaders.CodeGenClassFinder@15712d annotation: &lt;JDevApp&gt;@&lt;Appname&gt;
<p>
TopLink server session when accessed through a web service.
getDelegateSession: session = 1013641
getDelegateSession: sessionName = my_session
getDelegateSession: sessionClassLoader =weblogic.wsee.util.JAXWSClassLoaderFactory$1@180a6b3 finder: weblogic.utils.classloaders.CodeGenClassFinder@1e2a021 annotation:
getDelegateSession: threadClassLoader =weblogic.wsee.util.JAXWSClassLoaderFactory$1@180a6b3 finder: weblogic.utils.classloaders.CodeGenClassFinder@1e2a021 annotation:
<strong><u>Note that the class loader is different.</u></strong>
Also the following log is displayed just before it could log the above information.
<strong><u>DETAILED LOG
</u></strong>009-03-04 16:55:12,883 DEBUG ACTIVE ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' http://oracle.toplink.logging.DefaultSessionLog - &lt;TopLink Finest: 2009.03.04 16:55:12.883--ServerSession(6666709)--Thread(Thread[)--sequencing disconnected&gt;<br />
2009-03-04 16:55:12,883 DEBUG ACTIVE ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' http://oracle.toplink.logging.DefaultSessionLog - &lt;TopLink Config: 2009.03.04 16:55:12.883--ServerSession(6666709)--Connection(23588442)--Thread(Thread[)--disconnect&gt;<br />
2009-03-04 16:55:12,883 DEBUG ACTIVE ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' http://oracle.toplink.logging.DefaultSessionLog - &lt;TopLink Finer: 2009.03.04 16:55:12.883--ServerSession(6666709)--Thread(Thread[)--initialize identitymaps&gt;<br />
2009-03-04 16:55:12,992 INFO ACTIVE ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' http://oracle.toplink.logging.DefaultSessionLog - &lt;TopLink Info: 2009.03.04 16:55:12.992--ServerSession(6666709)--Thread(Thread[)--my_session logout successful&gt;<br />
Thanks for reading this lengthy posting.
- Abhay
</p>
Edited by: user608979 on Mar 4, 2009 5:10 AM

James,
My issue is resolved. Thanks for your tip.
I am using {color:#0000ff}SessionManager.getSession(...{color}
Solution:*
I changed the class loader while getting a session.
I had to extend the {color:#0000ff}SessionFactory{color} and override {color:#0000ff}both{color} the {color:#0000ff}getSharedSession(){color} methods while replacing {color:#ff0000}getClass().getClassLoader(){color} with {color:#0000ff}&lt;MyLocatorSingletonBean&gt;.getInstance().getClass().getClassLoader().{color}
Regrding Server Sessions*
While posting the question I had started thinking in the same direction of having sever sessions as singleton/Spring bean but sine this will change a lot of things in my current framework so decided I just use the above solution for now.
Really appreciated!
- Abhay

Similar Messages

  • (266758030) Can WebLogic Workshop Web Services be deployed on a different Application Server?

    (266758030) Q(asked by Lalit Sudan): Can WebLogic Workshop Web Services be deployed
    on a different Application Server?
    A(by Adam Fitzgerald): .jws files are not yet an accepted standard so you can expect
    that the WebLogic Workshop Web Services cannot be ported to other Application Servers,
    however, it is a general goal to expand the functionality of the Workshop tool for
    other App Servers.

    Just so you'll know Oracle9iAS also includes apache as the HTTP server.
    As Suncan said, if you want to use Forms on the Web you need the Forms Server engine, and it comes bundled in Oracle9iAS. You'll save yourself a lot of headache if you just install Oracle9iAS and have everything pre-configured for you thus reducing maintanance costs.

  • Are there are no weblogic hosted web services on the internet?

    I want to find a weblogic hosted web service for a demo. But I can't find a single internet based example that is explicitly hosted on weblogic.
    Does anyone have an example web service I can use ?
    Surely BEA would benefit from publishing a few examples...

    ONLY the carrier to which it is locked can legally unlock it.
    No one else at all can do this.
    As far as I know the Verizon iphone will only work with Verizon or foreign carriers if unlocked by Verizon.

  • Deploying WAR file with jdev 11g in weblogic 10.0

    Hello,
    I´m Facing a problem deploying a simple aplication in Weblogic with jdev 11g
    here´s the Error Message :
    2009-05-06 13:52:41.781: Writing WAR file to C:\JDeveloper\mywork\Application3\Project1\deploy\webapp1.war
    2009-05-06 13:52:41.781: Wrote WAR file to C:\JDeveloper\mywork\Application3\Project1\deploy\webapp1.war
    Deploying Application...
    [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application webapp1 on AdminServer.: [HTTP:101064][WebAppModule(webapp1:webapp1.war)] Error parsing descriptor in Web appplication "/opt/oracle/bea/user_projects/domains/alui/./servers/AdminServer/upload/webapp1/app/webapp1.war"
    weblogic.application.ModuleException: Unmarshaller failed
         at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:858)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:285)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:719)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1186)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: com.bea.xml.XmlException: failed to load java type corresponding to e=weblogic-web-app@http://www.bea.com/ns/weblogic/weblogic-web-app
         at com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType(UnmarshalResult.java:329)
         at com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:296)
         at com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:306)
         at com.bea.staxb.runtime.internal.UnmarshalResult.determineRootType(UnmarshalResult.java:287)
         at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:153)
         at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
         at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
         at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:292)
         at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:260)
         at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:774)
         at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:395)
         at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:745)
         at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:754)
         at weblogic.servlet.internal.WebAppDescriptor.getWeblogicWebAppBean(WebAppDescriptor.java:164)
         at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:853)
         ... 25 more
    weblogic.application.ModuleException: Unmarshaller failed.
    weblogic.application.ModuleException: [HTTP:101064][WebAppModule(webapp1:webapp1.war)] Error parsing descriptor in Web appplication "/opt/oracle/bea/user_projects/domains/alui/./servers/AdminServer/upload/webapp1/app/webapp1.war"
    weblogic.application.ModuleException: Unmarshaller failed
         at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:858)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:285)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:189)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:87)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:719)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1186)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:157)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: com.bea.xml.XmlException: failed to load java type corresponding to e=weblogic-web-app@http://www.bea.com/ns/weblogic/weblogic-web-app
         at com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType(UnmarshalResult.java:329)
         at com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:296)
         at com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:306)
         at com.bea.staxb.runtime.internal.UnmarshalResult.determineRootType(UnmarshalResult.java:287)
         at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:153)
         at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
         at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
         at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:292)
         at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:260)
         at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:774)
         at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:395)
         at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:745)
         at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:754)
         at weblogic.servlet.internal.WebAppDescriptor.getWeblogicWebAppBean(WebAppDescriptor.java:164)
         at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:853)
         ... 25 more
    weblogic.application.ModuleException: Unmarshaller failed
    #### Deployment incomplete. #### May 6, 2009 1:52:43 PM
    Deployment Failed
    does anyone had this problem , please help, i´m trying to solve this problem and still couldn´t make it.
    Best Regard,
    Vitor

    Applications that you build with JDeveloper 11g are normally aimed at WebLogic 10.3 servers.
    They require Java EE 1.5 and JDK 6.

  • Weblogic invoking web service failed due to socket timeout

    Hi,
    I encountered an error when I invoke web service from OBIEE 11g. The web serivce resides on Websphere running on other machine.
    An error says that "Invoking web service failed due to socket timeout." and it seems that it stopped in just 40 secs.
    Is there any settings of WebLogic server to avoid this? This web service normally runs for more than 60 sec.
    I have checked several parameters by WebLogic admin console and changed those values, but I still receive same errors.
    Regards,
    Fujio Sonehara

    Hey Eason,
    As I had previously mentioned, I have checked the FE server certs and have mentioned the signing algorithm it used to sign the certs, which was sha1DSA and not sha1RSA, I even checked my CA list of issued certs and have found all certs are signed the same.
    Signature algorithm: sha1DSA
    Signature Hash Algorithm: sha1
    Public Key:  RSA (1024 bit)
    I could run request and reinstall all day long it will still get the same certs signed with the algo..
    Doing some research I attempted to see if I could change the signing cert for a specific cert template that was being used to issue the Lync FE certs... however seems that from according to
    this, that I'd have to completely rebuild my CA before I'd be able to request and issue a cert with the proper signing algorithm?!
    This
    says its possible but not supported, what do I do in this situation? Is my only option to rebuild teh entire CA and cert infrastructure?
    I noticed my CSP is set to Microsoft Base DSS Cryptographic Provider, and under the CSP folder there is no "CNGHashAlgorithm" key so I'm using a "Next Gen CSP" apparently? Is this CSP good enough to support Lync...Straight up where is
    the Lync documentation on the CA setup requirements??
    This google link doesn't tell you how you should setup a CA for Lync, what settings need to set etc..

  • How to display an image in FORM 10g/11g data recovered through Web Services

    I need to show in a FORM 10g/11g an image that is recovered from a Web Service (XML format).
    (The Web Service retrieves several images from SQL Server database).
    versions previous 6i... one use field type ActiveX Control, and there showed the respective images, even with previous and next controls. Aspect that new versions of form 10g & 11g is obsolete.
    Any help thank you.
    Edited by: 859272 on 16/05/2011 03:06 PM
    Edited by: 859272 on 17/05/2011 07:15 AM

    I tried it doing it this way and it worked -
    1. copy the image into the directory aliased in 9iAS configuration file as '/images/'.
    2. In the PL/SQL code section after header, I write the following code -
    begin
    htp.p('<img src="/images/pobexp.gif"/>');
    end;

  • Custom serializer/deserializer in Weblogic 9 web service

    We are able to select XML from the database which is properly formatted to the schema definition of the method return type. Therefore, the serialization/deserialization of XML to JAVA and then back to XML does not make sense.
    Is there a way to use a custom serializer/deserializer in a Weblogic 9.1 web service like we could do in Weblogic 8.1? I have read where the 8.1 web services are still supported but we would like to migrate everything over now. In 8.1 the serializer/deserializer was defined in the deployment descriptor. However, I have seen nothing of this kind in Weblogic 9 documentation and all of those classes are now marked Deprecated.
    Any help is greatly appreciated. Thanks!

    Why dont you try removing the ejb-jar.xml and using annotations. You can use @JndiName and @FileGeneration annotations, this should work ...
    -Jesus

  • 11G - invoking an asynchronous Web service that is not a BPEL process

    Hi all,
    Is there an 11G example of implementing and invoking an asynchronous Web service that is not a BPEL process ? . In 10g there is an example for Axis web service (Oracle_Home\integration\orabpel\samples\interop\axis\BPELCallingAsyncAXIS ) but I can't find anything related to 11G so far.
    Thanks in advance,
    sasha

    Hey Chris.
    I am just starting to write a jcd that calls an external web service but cannot find any sample code nor instructions on how to do it in the supplied documentation. Could you send me a code sample from your one?
    Cheers
    Matt

  • OIM 11g to provision a web services based application , how ?

    Hi All,
    I'm trying to provision using GTC connector in OIM but the problem is i know how to write a webservice but i'm newbie to OIM 11g so i am not able to integrate my webservice to the OIM GTC connector.
    Highly appreciate if any one give me the background or steps to follow how to execute the provisioning using custom web service in OIM 11g.
    Thanks

    Hi,
    -Just trying to help-
    Based on OIM 11G requirements:
    If your target system is a Web service that can accept and parse SPML-based provisioning requests packaged in SOAP messages, you can use the SPML provisioning format provider and Web Services provisioning transport provider.
    You need not create custom provisioning providers.
    1-SPML provisioning format provider
    TargetOperation value object that is created by the SPML provisioning format provider and used as an input for the Web Services provisioning transport provider:
    com.thortech.xl.gc.impl.prov.WSTransportTargetOperation
    2-15.4 Web Services Provisioning Transport Provider
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14309/prdfnd_prov.htm#CHDJBFAI
    I hope this helps,
    Thiago Leoncio Guimaraes

  • Weblogic - a web service with java.lang.Object parameter

    hi all,
    i'm creating a web service with a java.lang.Object parameter.
    my question is as follows:
    when a client calls the web service, how to i get the soap message object and convert it to soap message string using the parameter?
    thanks,
    alex

    Here's some code from one of the Axis samples, this shows the basic process of making a call:
    package samples.message;
    import org.apache.axis.client.Service;
    import org.apache.axis.client.Call;
    import org.apache.axis.message.SOAPBodyElement;
    import org.apache.axis.utils.Options;
    import org.apache.axis.utils.XMLUtils;
    import org.w3c.dom.Element;
    import java.net.URL;
    import java.util.Vector;
    public class TestMsg {
    public String doit(String[] args) throws Exception {
    Options opts = new Options(args);
    opts.setDefaultURL("http://localhost:8080/axis/services/MessageService");
    Service service = new Service();
    Call call = (Call) service.createCall();
    call.setTargetEndpointAddress( new URL(opts.getURL()) );
    SOAPBodyElement[] input = new SOAPBodyElement[2];
    input[0] = new SOAPBodyElement(XMLUtils.StringToElement("urn:foo",
    "e1", "Hello"));
    input[1] = new SOAPBodyElement(XMLUtils.StringToElement("urn:foo",
    "e1", "World"));
    Vector elems = (Vector) call.invoke( input );
    SOAPBodyElement elem = null ;
    Element e = null ;
    elem = (SOAPBodyElement) elems.get(0);
    e = elem.getAsDOM();
    String str = "Res elem[0]=" + XMLUtils.ElementToString(e);
    elem = (SOAPBodyElement) elems.get(1);
    e = elem.getAsDOM();
    str = str + "Res elem[1]=" + XMLUtils.ElementToString(e);
    return( str );
    public static void main(String[] args) throws Exception {
    String res = (new TestMsg()).doit(args);
    System.out.println(res);

  • OWSM 11g: Invoking a secured web service through a java proxy service

    Hi All,
    I am trying to call a secured bpel service which is expecting a username token password. I have created a java proxy service for the same. I now need to add the username token to the same. Can anyone please guide me in this regard.
    Thanks in advance.

    Just to add some pointers,
    I added the following code to the proxy still the soap headers is not getting propagated.
    OrderBookingAndShipment orderBookingAndShipment = orderbookingandshipment_client_ep.getOrderBookingAndShipment_pt();
    String username = "OWSM_11g";
    String password = "password";
    List credProviders = new ArrayList();
    //client side UsernameToken credential provider
    CredentialProvider cp = new ClientUNTCredentialProvider(username.getBytes(),password.getBytes());
    credProviders.add(cp);
    Map<String,Object> context = ((BindingProvider) orderBookingAndShipment).getRequestContext();
    context.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST,credProviders);

  • Web service proxy client class missing

    Hi,
    I am using Jdev 11g.
    I created web service proxy but I cannot find a client class.
    Where is a client class jdev created?
    This is jdev help I refered;
    Designing and Developing Applications &gt; Developing with Web Services &gt; Using Existing Web Services in Applications &gt; Creating Web Service Proxies &gt; Using Web Service Proxies
    Thanks

    Hi,
    I created a client class with jdev10134 and put class in my jdev11g project.
    I got following error when run client class
    Exception in thread "main" java.lang.Error: Jaxrpc 1.1 method is not supported.
         at weblogic.webservice.core.rpc.ServiceFactoryImpl.loadService(ServiceFactoryImpl.java:65)
    I found this thread.
    "Jaxrpc 1.1 method not supported" when running jdev ws-proxy on weblogic
    I checked WLS10.3 release note, it seems supported.
    Please could someone help me?
    Thanks
    Edited by: user10445424 on 2008/11/10 17:21

  • JAX-WS PL/SQL  Web Service with JDeveloper (Weblogic problem)

    Hello,
    does anyone know how to create a JAX-WS webservice based on a pl-sql package using JDeveloper? Maybe it is possible with a newer version of JDeveloper 11.1.2.3, currently I'm using 11.1.1.6 which only offers a JAX-RPC for PlSql Web services.
    I'm facing a problem right now trying to deploy an jax-rpc web service on Weblogic 10.3.4. Actually it seems to be an WebLogic problem because weblogic doesn't support the older standard (JAX-RPC). So I've extended the weblogic domain using Fusion Middleware Configuration Wizard like described for example here . Unfortunately it doesn't help. Deploying my applicaiton on a forms11g (11.1.1.4) domain (which goes hand in hand with the weblogic domain (?)) is successful. But anyway I can't call the WSDL or test the web service using weblogic console. Other services (jax-ws) work without any problem on the same forms domain.
    I would appreciate any hint, how to automatically produce an jax-ws web service from an plsql package or how to run a jax-rpc web service on weblogic 10.3.4. It's Weblogic Basic Server actually, but I'm of the opinion it doesn't play a role in my case.
    Thank you in advance for your hints.
    Kind regards,
    Anton
    Edit: I would appreciate any hint how to check if a weblogic domain supports jax-rpc (if extended correctly). Thanks.

    We can generate jaxws from 11.1.2.0 onwards using This is now provided by the TopLink web service provider builder, which can be via the TopLink DBWS provider wizard from JDeveloper since the 11.1.2.0.0 release
    1.4.4 Database Web Services (DBWS)
    http://docs.oracle.com/cd/E23943_01/doc.1111/e26045/general.htm#CHDIEEHG
    Hope that heps
    Regards,
    Sunil P

  • Urgent: Is it possible to deploy a web service EAR/JAR to a container other than WebLogic?

    Hi,
    Is it possible to deploy an EAR/JAR created using JwsCompile to any J2EE container?
    Ideally, I would like to make use of the features that are only provided by WebLogic
    Workshop, like State Management, Callbacks too. If possible, what are the steps
    involved?
    There is an example for interoperability included in the samples that demonstrates
    the use of a WebLogic Workshop web service from an ASP.NET web service, participating
    in a conversation and accepting a callback. Is it possible to do the same using
    a normal C# windows or webforms app instead of using an ASP.NET web service? So,
    I would like to access the WebLogic workshop generated web service with state
    management and callbacks from a C# windows app.
    Thanks in anticipation,
    August

    [att1.html]

  • Differing Web Service responses between 10.1.3.3 and 11g

    In our production environment we have deployed several ESB projects. I am currently going through these projects and attempting to update them to 11g. These projects follow the same basic design. In the 101.3.4 environment they consist of an exposed routing service generated from a schema document which routes to a Web service adapter. The exposed service is called from our asset management system the service adapter is invoking a PeopleSoft Asynchronous one way web service. In 11g this became two web service adapters (the first as an exposed one-way service) linked by a mediator.
    In our 101.3.4 environment this process worked without exceptions. After upgrading the project our asset management system would raise an exception after each call to the exposed service. Interestingly I can check em and also PeopleSoft and the payload is successfully delivered. When I review the instance in em there are no faults or exceptions. I have auditing turned on and can see that the service, mediator and reference steps have all successfully completed. When I look at the log for the particular instance I do receive a warning which states:
    Error parsing envelope: most likely due to an invalid SOAP message.: Unexpected EOF in prolog\r\n at [row,col {unknown-source}]: [1,0]
    I used soapUI to debug the service calls. If I call the PeopleSoft web service without using the mediator project I receive the following response:
    Tue Aug 18 20:55:37 PDT 2009:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Tue Aug 18 20:55:37 PDT 2009:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Tue Aug 18 20:55:37 PDT 2009:DEBUG:<< "Date: Wed, 19 Aug 2009 03:57:01 GMT[\r][\n]"
    Tue Aug 18 20:55:37 PDT 2009:DEBUG:<< "Content-Length: 0[\r][\n]"
    Tue Aug 18 20:55:37 PDT 2009:DEBUG:<< "Content-Type: text/xml; charset=UTF-8[\r][\n]"
    Tue Aug 18 20:55:37 PDT 2009:DEBUG:<< "X-Powered-By: Servlet/2.4 JSP/2.0[\r][\n]"
    When I call the exposed service in my 10.1.3.4 ESB project I receive the following response:
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "Date: Wed, 19 Aug 2009 03:57:25 GMT[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "Content-Length: 212[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "Content-Type: text/xml;charset=utf-8[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "X-Powered-By: Servlet/2.4 JSP/2.0[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">[\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< " <soapenv:Body/>[\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "</soapenv:Envelope>"
    You will notice that what is returned is a soap envelope which has an empty body.
    If i then make the call through the 11g exposed service I get the following response:
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "HTTP/1.1 202 Accepted[\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "HTTP/1.1 202 Accepted[\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "Date: Wed, 19 Aug 2009 03:58:46 GMT[\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "Content-Length: 0[\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "Content-Type: [\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "X-ORACLE-DMS-ECID: 0000ICkncqY0bq3pzk8DyW1ANuRl000035[\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "X-Powered-By: Servlet/2.5 JSP/2.1[\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "[\r][\n]"
    I believe the exception being thrown by the asset management system is a result of the zero length, empty content-type being returned from my mediator service or possibly the fact that the return code is 202 as opposed to 200.
    First I would like to know if anyone has experienced the same behavior and whether this behavior is by design. Is a response required from all services even if they are one way?
    Second if this is by design is it possible within the mediator project to force a return code of 200 and a response that includes an empty soap envelope?
    Of course any other solutions are welcome as well. I am leaning towards a solution which can be implemented within my mediator project as I have much more flexibility there then either of the other participating systems.
    Thank you very much.

    After exploring this issue with Oracle Support and doing some of my own research I believe that the issue is not the SOA Suite but rather the third party system which was calling exposed service in the SOA Suite. According to the link below both the response returned from the 10.1.3.4 esb project and the 11.1.1.1 mediator project are valid. What is returned from calling a one-way service appears to be up to the implementer of the service.
    http://www.w3.org/TR/2006/NOTE-soap11-ror-httpbinding-20060321/
    "This SOAP 1.1 request optional response HTTP binding, in conjunction with the SOAP 1.1 binding [SOAP 1.1], can be used for sending request messages with an optional SOAP response. This binding augments the SOAP 1.1 binding by allowing that the HTTP [RFC 2616] response MAY have a 202 status code and the response body MAY be empty. Note that the HTTP [RFC 2616] specification states "the 202 response is intentionally non-committal" and so any content in the response body, including a SOAP Envelope, MAY not be an expected SOAP response"

Maybe you are looking for

  • Can't install Adobe Flashplayer 11. Uninstalled old version. enabled Java. Allowed cookies. Install button grey.

    Can anyone help me with this problem of installing Adobe Flashdrive 11, the latest version ? I'm bashing my head against the wall. Started when iPhoto would not load to Facebook and was advised it could be Flashplayer update after troubleshooting oth

  • Chinese characters in JDialog title?

    Hi all, I'm running the JDK on an english language machine, but starting a program with the command line prompt -Duser.language=zh to display Chinese characters. If I have some chinese characters in a JDialog title, or a JOptionPane message or title,

  • HT3325 Link keynote remote to iphone 5: not working

    I'm trying to link my iphone 5 to Keynote on MBA via the keynote remote app, but my phone isn't showing up in the 'available remotes' menu in keynote preferences. I've tried doing this via wifi and I created my own network like others have sugested.

  • FAST Search for SharePoint 2010 Installation Issues

    Warning Errors in Crawl Log After New FAST Search Server document processor installation. Message: The FAST Search backend reported warnings when processing the item. ( Customer-supplied command failed: ) Message: The Content Plugin received a "Proce

  • Inconsistent results for adding child node in a JTree

    I have a JTree where I add child nodes when a user clicks on the node or handle. When the user clicks on the node, through implementing TreeSelectionListener interface, I add a node, the tree expands, and I see the newly added node. However, when the