Web-service inside a DataTemplate

Hi.
Is there a way to include the result from a web-service inside a DataTemplate? you can use <dataQuery><sqlStatement> for a SQL Statement, but is there a tag for querying a web-service (calling a specific method)?
*[url http://www.java-forums.org/blogs/advanced-java/collection/]Java collection*

Hi Daniel,
As per the latest documentation :
http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T434255.htm#3503342
There is not such XML element to call a webservice method.
Nevertheless you can still do this either:
- Create a store procedure in DB and within this proc call the webservice method, then you can call this procedure/function within your SQL statement in your data template.
- Or create a java servlet and from within this call your webservice and finally in your data template call the URL that invokes the webservice using the URL element.
Just some ideas to get around what you want.
regards
Jorge
p.s. If this answers your question then please grant the points and close the thread

Similar Messages

  • Calling an External Web-Service Inside an Exception Flow

    Hi all,
    Is it a good practice in OBPM to call an External Web-Service when the process enters inside a System Exception Flow?

    Your challenge will be when you throw an exception inside the Exception handler chain. You can't catch an exception (other than in a try/catch block in the logic of an Automatic activity) inside an Exception handler chain.
    Sorry - not a good practice.
    Dan

  • How to stop a web service inside a deployed EAR in Weblogic 10.3

    Hi,
    I want to stop a webservice from the weblogic UI console in Weblogic 10.3 but cannot find any link for the same kindly help me on the same.
    Scenario is as follows
    I can see my EAR deployed under Deployment tab, when I expand the same I can see the web service but there isn't any link available to explicitly stop only that particular web service.
    Can I do this at all in weblogic if yes? Please suggest.
    Thanks
    VR
    Edited by: sorry the page got stuck and refreshed filling details and re-submitting

    Hi VR
    From Weblogic Admin Console, Deployments, on right side click on the link named with your EAR Application. It opens detailed page with more tabs. Click on the tab named Targets. Here select your WebService module and click on Change Targets button. Uncheck the server where it is targetted (Deployed), click on Yes. And activate the changes.
    Thanks
    Ravi Jegga

  • Web Service Inside Web Service

    hi there,
    I've been trying to create a web service that is a combination of already existing web services. The code compiles and deploys ok but when i restart apache the http://localhost:8080/axis/servlet/AxisServlet page is empty. the service implementation code is-
    package mu;
    //Standard libraries
    import javax.xml.rpc.Service;
    import javax.xml.rpc.Stub;
    import java.util.Vector;
    // Our glue code
    import services.webservice.hgu.WebService;
    import services.webservice.hgu.WebServiceService;
    import services.webservice.hgu.WebServiceServiceLocator;
    import hgu.WSDLGenerated.SubmissionQuery.GeneExpressedQueryShortDetails;
    import hgu.WSDLGenerated.SubmissionQuery.ComponentExpressQueryShortDetails;
    public class Mu_Impl implements Mu{
         public String[] getMouseAbstractNodes(String timedNodes[]){
              String abstractNodes[] = null;
              try{
                   WebServiceService mouseService = new WebServiceServiceLocator();
                   WebService mousePort = mouseService.getma();
                   abstractNodes = mousePort.getAbstractNodes(timedNodes);
              }catch(Exception e){}
              return abstractNodes;
    Any ideas why this is fruitless?
    -cheers, Ian

    Hi Daniel,
    As per the latest documentation :
    http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T434255.htm#3503342
    There is not such XML element to call a webservice method.
    Nevertheless you can still do this either:
    - Create a store procedure in DB and within this proc call the webservice method, then you can call this procedure/function within your SQL statement in your data template.
    - Or create a java servlet and from within this call your webservice and finally in your data template call the URL that invokes the webservice using the URL element.
    Just some ideas to get around what you want.
    regards
    Jorge
    p.s. If this answers your question then please grant the points and close the thread

  • Can we use UCM web services inside BPEL?

    We want to call UCM webservices functions like getFile etc. but it is not same as calling a webservice which is not in ucm.ucm wants authorization(or sth. like that) from bpel.Can anyone help please?

    does this help :
    http://newsoalife.blogspot.com/2010/02/invoking-ucm-secured-web-services-in.html

  • Calling web Service from the Custom Adapter.Is it Possible?

    Hi Experts,
                    I am having requirment in which i have to cal com.sap.aii.mapping.lookup.LookupService for calling web Service from the Custom Adapter.Is it Possible?
    Regards,
    Rajesh.D

    Hi Rajesh..
    Just looking the problem in another angle.. if there is no constraint that you have to use XI specific API to call the web service, why dont you use usual Java API used for calling a web service inside you custom adapter (I have Microsoft background.. donno exactly how it is done in Java,, but in .NET kind of a language it is possible). SInce your adapter is in Java itself and is capable of calling web service.. collect or lookup the data whatever you want and validate...
    Just a thought..
    VJ

  • Problem in accessing Web Services developed using JDeveloper 10.1.3

    We have developed J2EE 1.4 JAX RPC Web Services using Jdeveloper 10.1.3.
    I take the WSDL document generated by JDev and created Web Proxy for that WSDL.
    I have developed the Swing Client for accessing the Web Service and when i tried to run from JDev it is working fine.
    My requirement is to access the swing client from Java Web start.
    When i tried to run from Web start, I am getting the following exception.
    standard type mapping initialization error: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
         at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService.java:282)
         at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(BasicService.java:244)
         at com.foursoft.tplex.webservices.runtime.MasterDocumentWS_SerializerRegistry.getRegistry(MasterDocumentWS_SerializerRegistry.java:26)
         at com.foursoft.tplex.webservices.runtime.MasterDocumentWS_Impl.<init>(MasterDocumentWS_Impl.java:26)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:92)
         at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryImpl.java:121)
         at com.foursoft.tplex.webservices.MasterDocumentWSSoapHttpPortClient.<init>(MasterDocumentWSSoapHttpPortClient.java:18)
         at com.foursoft.tplex.webservices.client.MasterDocumentClient.invokeButton_actionPerformed(MasterDocumentClient.java:119)
         at com.foursoft.tplex.webservices.client.MasterDocumentClient.mav$invokeButton_actionPerformed(MasterDocumentClient.java)
         at com.foursoft.tplex.webservices.client.MasterDocumentClient$2.actionPerformed(MasterDocumentClient.java:99)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    CAUSE:
    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
         at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService.java:282)
         at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(BasicService.java:244)
         at com.foursoft.tplex.webservices.runtime.MasterDocumentWS_SerializerRegistry.getRegistry(MasterDocumentWS_SerializerRegistry.java:26)
         at com.foursoft.tplex.webservices.runtime.MasterDocumentWS_Impl.<init>(MasterDocumentWS_Impl.java:26)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:92)
         at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryImpl.java:121)
         at com.foursoft.tplex.webservices.MasterDocumentWSSoapHttpPortClient.<init>(MasterDocumentWSSoapHttpPortClient.java:18)
         at com.foursoft.tplex.webservices.client.MasterDocumentClient.invokeButton_actionPerformed(MasterDocumentClient.java:119)
         at com.foursoft.tplex.webservices.client.MasterDocumentClient.mav$invokeButton_actionPerformed(MasterDocumentClient.java)
         at com.foursoft.tplex.webservices.client.MasterDocumentClient$2.actionPerformed(MasterDocumentClient.java:99)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
         at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<init>(LiteralFragmentSerializer.java:90)
         at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<init>(LiteralFragmentSerializer.java:57)
         at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<init>(LiteralAnyElementSerializer.java:16)
         at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<init>(StandardLiteralTypeMappings.java:198)
         at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService.java:280)
         ... 39 more
    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
         at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
         at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<init>(LiteralFragmentSerializer.java:88)
         ... 43 more
    CAUSE:
    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
         at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService.java:282)
         at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(BasicService.java:244)
         at com.foursoft.tplex.webservices.runtime.MasterDocumentWS_SerializerRegistry.getRegistry(MasterDocumentWS_SerializerRegistry.java:26)
         at com.foursoft.tplex.webservices.runtime.MasterDocumentWS_Impl.<init>(MasterDocumentWS_Impl.java:26)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:92)
         at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryImpl.java:121)
         at com.foursoft.tplex.webservices.MasterDocumentWSSoapHttpPortClient.<init>(MasterDocumentWSSoapHttpPortClient.java:18)
         at com.foursoft.tplex.webservices.client.MasterDocumentClient.invokeButton_actionPerformed(MasterDocumentClient.java:119)
         at com.foursoft.tplex.webservices.client.MasterDocumentClient.mav$invokeButton_actionPerformed(MasterDocumentClient.java)
         at com.foursoft.tplex.webservices.client.MasterDocumentClient$2.actionPerformed(MasterDocumentClient.java:99)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
         at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<init>(LiteralFragmentSerializer.java:90)
         at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<init>(LiteralFragmentSerializer.java:57)
         at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<init>(LiteralAnyElementSerializer.java:16)
         at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<init>(StandardLiteralTypeMappings.java:198)
         at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService.java:280)
         ... 39 more
    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
         at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
         at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<init>(LiteralFragmentSerializer.java:88)
         ... 43 more
    java.lang.NullPointerException
         at com.foursoft.tplex.webservices.runtime.MasterDocumentWS_SerializerRegistry.registerSerializer(MasterDocumentWS_SerializerRegistry.java:95)
         at com.foursoft.tplex.webservices.runtime.MasterDocumentWS_SerializerRegistry.getRegistry(MasterDocumentWS_SerializerRegistry.java:32)
         at com.foursoft.tplex.webservices.runtime.MasterDocumentWS_Impl.<init>(MasterDocumentWS_Impl.java:26)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:92)
         at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryImpl.java:121)
         at com.foursoft.tplex.webservices.MasterDocumentWSSoapHttpPortClient.<init>(MasterDocumentWSSoapHttpPortClient.java:18)
         at com.foursoft.tplex.webservices.client.MasterDocumentClient.invokeButton_actionPerformed(MasterDocumentClient.java:119)
         at com.foursoft.tplex.webservices.client.MasterDocumentClient.mav$invokeButton_actionPerformed(MasterDocumentClient.java)
         at com.foursoft.tplex.webservices.client.MasterDocumentClient$2.actionPerformed(MasterDocumentClient.java:99)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Now we struck with this error and I am not able to proceed further. Pl. help me in resolving the issue.
    I shall be thankful to your help.
    Regards...
    Ravi Kumar

    I am also having the same problem. Calling a web service inside JDeveloper 10.1.3.3 works fine. When I deploy to a jar file and include all Jars that the dependency analyzer identifies, the following error occurs:
    standard type mapping initialization error: javax.xml.rpc.JAXRPCException: javax
    .xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    Your work around defining Java system properties does work, but why do we need to do this using the Oracle SOAP stack?
    If there are alternatives to this problem please share. Thank you.

  • BEA Web Service Session Example (Reformatted)

    Hi,<br>
    <p>
    Has anyone been able to get access to the HTTP Session functionality from a web
    service under WebLogic 8.1sp1 (Service Pack 1)?
    I tried the example as shown at http://e-docs.bea.com/wls/docs81/webserv/api.html#1067906.
    The relevant code section is as
    follows:
    <pre>
    import weblogic.webservice.context.WebServiceContext;
    import weblogic.webservice.context.ContextNotFoundException;
    import weblogic.webservice.context.WebServiceSession;
    * Shows how to use HTTP Session to maintain session state between
    * invokes
    public int maintainSessionState(){
    try{
    WebServiceContext wsContext = WebServiceContext.currentContext();
    WebServiceSession session = (WebServiceSession)wsContext.getSession();
    Integer count = (Integer)session.getAttribute( "count" );
    count = (count==null) ?
    new Integer( 0 ) : new Integer( count.intValue() + 1 );
    session.setAttribute( "count", count );
    return count.intValue();
    }catch( ContextNotFoundException e ){
    e.printStackTrace();
    return -1;
    </pre>
    </p>
    <p>
    The ContextNotFoundException exception is thrown (the web service returns a –1
    as it’s result). I have tried everything I
    could think of to track this problem down, but I’ve had no luck. Here is my setup.<br>
    Environment:<br>
    WebLogic 8.1 (Service Pack 1)<br>
    JDK 1.4.1.03<br>
    Windows 2000<br>
    </p>
    <p>
    I created a new clean Basic WebLogic Workshop Domain using the Configuration Wizard
    that ships with WebLogic 8.1sp1. No JDBC,
    JMS, or anything extra. I then created a new clean Empty Application under WebLogic
    Workshop that ships with WebLogic 8.1sp1.
    I associated the Application with the domain through Workshop’s Tools/Application
    Properties menu. I added one Web Service
    project to the application, then added one Web Service to the project, and then
    added one method to the Web Service. I renamed
    the method to the same method as in the example listed above. I copied all the
    imports and method implementation into the web
    service. Then ran the web service inside workshop. It failed. The method returned
    a –1 (the ContextNotFoundException was
    thrown). The return value from the WebServiceContext.currentContext() called
    is null.
    </p>
    <p>
    When I start a debug session (Debug\Start in Workshop), the following warning
    is emitted:<br>
    <br>
    <Warning> <WLW> <000000> <Unable to load class ProcessControl><br>
    <br>
    Not sure if this is part of the problem. Other than not being able to get the
    context through WebServiceContext, everything
    else with the web services seems to be running fine.
    </p>
    <p>
    When I run the example above I get the following stack trace in the logs:
    <br>
    <pre>
    weblogic.webservice.context.ContextNotFoundException: unable to find context for
    current thread
         at weblogic.webservice.context.WebServiceContext.currentContext(WebServiceContext.java:36)
    at WebServiceSessionTest.maintainSessionState(WebServiceSessionTest.jws:15)
    at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:353)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:245)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:185)
    at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerBean.java:103)
    at com.bea.wlwgen.StatelessContainer_ly05hg_ELOImpl.invoke(StatelessContainer_ly05hg_ELOImpl.java:99)
    at com.bea.wlwgen.GenericStatelessSLSBContAdpt.invokeOnBean(GenericStatelessSLSBContAdpt.java:59)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:160)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54)
    at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatcherBean.java:159)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:100)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:134)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.dispatch(Dispatcher.java:46)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.exploreExec(HttpServerHelper.java:253)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest(HttpServerHelper.java:570)
    at com.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:81)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    </pre>
    </p>
    Thanks in advance,
    <br>
    Brad Babb
    P.S. Is there a preview pain somewhere on the posting page?

    Hi,<br>
    <p>
    Has anyone been able to get access to the HTTP Session functionality from a web
    service under WebLogic 8.1sp1 (Service Pack 1)?
    I tried the example as shown at http://e-docs.bea.com/wls/docs81/webserv/api.html#1067906.
    The relevant code section is as
    follows:
    <pre>
    import weblogic.webservice.context.WebServiceContext;
    import weblogic.webservice.context.ContextNotFoundException;
    import weblogic.webservice.context.WebServiceSession;
    * Shows how to use HTTP Session to maintain session state between
    * invokes
    public int maintainSessionState(){
    try{
    WebServiceContext wsContext = WebServiceContext.currentContext();
    WebServiceSession session = (WebServiceSession)wsContext.getSession();
    Integer count = (Integer)session.getAttribute( "count" );
    count = (count==null) ?
    new Integer( 0 ) : new Integer( count.intValue() + 1 );
    session.setAttribute( "count", count );
    return count.intValue();
    }catch( ContextNotFoundException e ){
    e.printStackTrace();
    return -1;
    </pre>
    </p>
    <p>
    The ContextNotFoundException exception is thrown (the web service returns a –1
    as it’s result). I have tried everything I
    could think of to track this problem down, but I’ve had no luck. Here is my setup.<br>
    Environment:<br>
    WebLogic 8.1 (Service Pack 1)<br>
    JDK 1.4.1.03<br>
    Windows 2000<br>
    </p>
    <p>
    I created a new clean Basic WebLogic Workshop Domain using the Configuration Wizard
    that ships with WebLogic 8.1sp1. No JDBC,
    JMS, or anything extra. I then created a new clean Empty Application under WebLogic
    Workshop that ships with WebLogic 8.1sp1.
    I associated the Application with the domain through Workshop’s Tools/Application
    Properties menu. I added one Web Service
    project to the application, then added one Web Service to the project, and then
    added one method to the Web Service. I renamed
    the method to the same method as in the example listed above. I copied all the
    imports and method implementation into the web
    service. Then ran the web service inside workshop. It failed. The method returned
    a –1 (the ContextNotFoundException was
    thrown). The return value from the WebServiceContext.currentContext() called
    is null.
    </p>
    <p>
    When I start a debug session (Debug\Start in Workshop), the following warning
    is emitted:<br>
    <br>
    <Warning> <WLW> <000000> <Unable to load class ProcessControl><br>
    <br>
    Not sure if this is part of the problem. Other than not being able to get the
    context through WebServiceContext, everything
    else with the web services seems to be running fine.
    </p>
    <p>
    When I run the example above I get the following stack trace in the logs:
    <br>
    <pre>
    weblogic.webservice.context.ContextNotFoundException: unable to find context for
    current thread
         at weblogic.webservice.context.WebServiceContext.currentContext(WebServiceContext.java:36)
    at WebServiceSessionTest.maintainSessionState(WebServiceSessionTest.jws:15)
    at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:353)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:245)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:185)
    at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerBean.java:103)
    at com.bea.wlwgen.StatelessContainer_ly05hg_ELOImpl.invoke(StatelessContainer_ly05hg_ELOImpl.java:99)
    at com.bea.wlwgen.GenericStatelessSLSBContAdpt.invokeOnBean(GenericStatelessSLSBContAdpt.java:59)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:160)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54)
    at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatcherBean.java:159)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:100)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:134)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.dispatch(Dispatcher.java:46)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.exploreExec(HttpServerHelper.java:253)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest(HttpServerHelper.java:570)
    at com.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:81)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    </pre>
    </p>
    Thanks in advance,
    <br>
    Brad Babb
    P.S. Is there a preview pain somewhere on the posting page?

  • BEA Web Service Session Example

    Hi,
    Has anyone been able to get access to the HTTP Session functionality from a web
    service under WebLogic 8.1sp1 (Service Pack 1)? I tried the example as shown at
    http://e-docs.bea.com/wls/docs81/webserv/api.html#1067906. The relevant code
    section is as follows:
    import weblogic.webservice.context.WebServiceContext;
    import weblogic.webservice.context.ContextNotFoundException;
    import weblogic.webservice.context.WebServiceSession;
    * Shows how to use HTTP Session to maintain session state between
    * invokes
    public int maintainSessionState(){
    try{
    WebServiceContext wsContext = WebServiceContext.currentContext();
    WebServiceSession session = (WebServiceSession)wsContext.getSession();
    Integer count = (Integer)session.getAttribute( "count" );
    count = (count==null) ?
    new Integer( 0 ) : new Integer( count.intValue() + 1 );
    session.setAttribute( "count", count );
    return count.intValue();
    }catch( ContextNotFoundException e ){
    e.printStackTrace();
    return -1;
    The ContextNotFoundException exception is thrown (the web service returns a –1
    as it’s result). I have tried everything I could think of to track this problem
    down, but I’ve had no luck. Here is my setup.
    Environment:
    WebLogic 8.1 (Service Pack 1)
    JDK 1.4.1.03
    Windows 2000
    I created a new clean Basic WebLogic Workshop Domain using the Configuration Wizard
    that ships with WebLogic 8.1sp1. No JDBC, JMS, or anything extra. I then created
    a new clean Empty Application under WebLogic Workshop that ships with WebLogic
    8.1sp1. I associated the Application with the domain through Workshop’s Tools/Application
    Properties menu. I added one Web Service project to the application, then added
    one Web Service to the project, and then added one method to the Web Service.
    I renamed the method to the same method as in the example listed above. I copied
    all the imports and method implementation into the web service. Then ran the
    web service inside workshop. It failed. The method returned a –1 (the ContextNotFoundException
    was thrown). The return value from the WebServiceContext.currentContext() called
    is null.
    When I start a debug session (Debug\Start in Workshop), the following warning
    is emitted:
    <Warning> <WLW> <000000> <Unable to load class ProcessControl>
    Not sure if this is part of the problem. Other than not being able to get the
    context through WebServiceContext, everything else with the web services seems
    to be running fine.
    When I run the example above I get the following stack trace in the logs:
    weblogic.webservice.context.ContextNotFoundException: unable to find context for
    current thread
         at weblogic.webservice.context.WebServiceContext.currentContext(WebServiceContext.java:36)
    at WebServiceSessionTest.maintainSessionState(WebServiceSessionTest.jws:15)
    at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:353)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:245)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:185)
    at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerBean.java:103)
    at com.bea.wlwgen.StatelessContainer_ly05hg_ELOImpl.invoke(StatelessContainer_ly05hg_ELOImpl.java:99)
    at com.bea.wlwgen.GenericStatelessSLSBContAdpt.invokeOnBean(GenericStatelessSLSBContAdpt.java:59)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:160)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54)
    at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatcherBean.java:159)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:100)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:134)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.dispatch(Dispatcher.java:46)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.exploreExec(HttpServerHelper.java:253)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest(HttpServerHelper.java:570)
    at com.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:81)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Thanks in advance,
    Brad Babb

    The maintain session example works only with the
    web service stack that comes with WLS. You
    need to use servicegen, source2wsdd, etc ant
    tasks to assemble this web service.
    Here is the full session example:
    http://www.manojc.com/?sample30
    Webservice generated by Workshop use a diffrent
    soap stack and this functionality is not supported in it.
    Regards,
    -manoj
    http://manojc.com
    "Brad Babb" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi,
    Has anyone been able to get access to the HTTP Session functionality froma web
    service under WebLogic 8.1sp1 (Service Pack 1)? I tried the example asshown at
    http://e-docs.bea.com/wls/docs81/webserv/api.html#1067906. The relevant
    code
    section is as follows:
    import weblogic.webservice.context.WebServiceContext;
    import weblogic.webservice.context.ContextNotFoundException;
    import weblogic.webservice.context.WebServiceSession;
    * Shows how to use HTTP Session to maintain session state between
    * invokes
    public int maintainSessionState(){
    try{
    WebServiceContext wsContext = WebServiceContext.currentContext();
    WebServiceSession session =(WebServiceSession)wsContext.getSession();
    Integer count = (Integer)session.getAttribute( "count" );
    count = (count==null) ?
    new Integer( 0 ) : new Integer( count.intValue() + 1 );
    session.setAttribute( "count", count );
    return count.intValue();
    }catch( ContextNotFoundException e ){
    e.printStackTrace();
    return -1;
    The ContextNotFoundException exception is thrown (the web service returnsa -1
    as it's result). I have tried everything I could think of to track thisproblem
    down, but I've had no luck. Here is my setup.
    Environment:
    WebLogic 8.1 (Service Pack 1)
    JDK 1.4.1.03
    Windows 2000
    I created a new clean Basic WebLogic Workshop Domain using theConfiguration Wizard
    that ships with WebLogic 8.1sp1. No JDBC, JMS, or anything extra. I thencreated
    a new clean Empty Application under WebLogic Workshop that ships withWebLogic
    8.1sp1. I associated the Application with the domain through Workshop'sTools/Application
    Properties menu. I added one Web Service project to the application, thenadded
    one Web Service to the project, and then added one method to the WebService.
    I renamed the method to the same method as in the example listed above.I copied
    all the imports and method implementation into the web service. Then ranthe
    web service inside workshop. It failed. The method returned a -1 (theContextNotFoundException
    was thrown). The return value from the WebServiceContext.currentContext()called
    is null.
    When I start a debug session (Debug\Start in Workshop), the followingwarning
    is emitted:
    <Warning> <WLW> <000000> <Unable to load class ProcessControl>
    Not sure if this is part of the problem. Other than not being able to getthe
    context through WebServiceContext, everything else with the web servicesseems
    to be running fine.
    When I run the example above I get the following stack trace in the logs:
    weblogic.webservice.context.ContextNotFoundException: unable to findcontext for
    current thread
    atweblogic.webservice.context.WebServiceContext.currentContext(WebServiceConte
    xt.java:36)
    atWebServiceSessionTest.maintainSessionState(WebServiceSessionTest.jws:15)
    at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
    atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
    .java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    atcom.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:353)
    atcom.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
    atcom.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
    atcom.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:245)
    atcom.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean
    .java:185)
    atcom.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerBean.jav
    a:103)
    atcom.bea.wlwgen.StatelessContainer_ly05hg_ELOImpl.invoke(StatelessContainer_l
    y05hg_ELOImpl.java:99)
    atcom.bea.wlwgen.GenericStatelessSLSBContAdpt.invokeOnBean(GenericStatelessSLS
    BContAdpt.java:59)
    atcom.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherB
    ean.java:160)
    atcom.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.j
    ava:54)
    atcom.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatcherBean.j
    ava:159)
    atcom.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispat
    cher_k1mrl8_EOImpl.java:100)
    atcom.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.jav
    a:134)
    atcom.bea.wlw.runtime.core.dispatcher.Dispatcher.dispatch(Dispatcher.java:46)
    atcom.bea.wlw.runtime.core.dispatcher.HttpServerHelper.exploreExec(HttpServerH
    elper.java:253)
    atcom.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest(HttpS
    erverHelper.java:570)
    atcom.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:81)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:1053)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :387)
    atweblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:6316)
    atweblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
    t.java:317)
    atweblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3622)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Thanks in advance,
    Brad Babb

  • Calling a Web Service with a File Binding Component

    Is it possible to call a web service (inside a bpel process) using a File Binding Component?
    It seems that the File Binding Component should read an XML representing the input - is this possible? I found something about an "input-file-type" for the message, is this the way?
    Thank you,
    Marcos Ackel

    Hi
    " have done one small application with Bpel which read messages from port and write to file in xml format using file binding........"
    By your description of this application, I'm sure it is using the HTTP BC to read incomming messages, and then the File BC to write them to a file. I think the original question is whether the File BC can call a web service which is very different.
    Either way, when calling Web services, the recommended BC is the HTTP BC.
    Cheers
    Paul

  • Launch multiple web services with 1 click

    Hi all,
    I am looking into an extension of our ApEx solution. Current situation:
    - ApEx is used to fill in information (descriptions on reports). BIP is used to save this information in a file with a certain lay-out
    - works as follows: user adds/changes information, presses a button and a file is saved somewhere (webservice -> BIP -> FTP output)
    The change that I want to implement:
    some fields are used on multiple output files. I would like to update all outputs after changing 1 field. This would mean: if a description is changed, I need to go into each report that needs the output, and launch the web service manually. Of course this is a tedious job and very error-prone. I would like to automate this. Whenever a field is saved, launch the web service for each report containing this field.
    The biggest problem I'm having is launching the web service inside some sort of loop? Any tips/hints?
    Thanks!

    Hi all,
    I am looking into an extension of our ApEx solution. Current situation:
    - ApEx is used to fill in information (descriptions on reports). BIP is used to save this information in a file with a certain lay-out
    - works as follows: user adds/changes information, presses a button and a file is saved somewhere (webservice -> BIP -> FTP output)
    The change that I want to implement:
    some fields are used on multiple output files. I would like to update all outputs after changing 1 field. This would mean: if a description is changed, I need to go into each report that needs the output, and launch the web service manually. Of course this is a tedious job and very error-prone. I would like to automate this. Whenever a field is saved, launch the web service for each report containing this field.
    The biggest problem I'm having is launching the web service inside some sort of loop? Any tips/hints?
    Thanks!

  • Best Practice Web Service Output Mapping (deep structure)

    Hi All,
    My current scenario is as follows:
    In my BPM I consume a Web Service which was created from a Function Module in the Backend.
    This Web Service has the same Data Types as the original BAPI.
    For instance a table containing return values (BAPIRET2).
    When the Web Service inside the process is executed I assume that my return table is filled.
    Based on that return table I want to decide what to do next using a gateway.
    What would be the best way to process the table in a gateway condition?
    The table may contain several entries so I guess a simple not() function does not suffice.
    I hope you do understand my problem here.
    Curiously waiting for your replies,
    Bastian

    Hi Bastian,
    the parallel for each loop feature will come with NW 7.2.
    You will have a new property pane at each activity (automated activity, human task, referenced subflow, and the embedded subflow which will also come with NW 7.1) where you can switch on the looping.
    If you do that, the activity will be started (in parallel) for each line item in a list of data from a data object in the context (the list can also be specified in the new property pane).
    At the end of each activity execution the result can be mapped via append into another DO from the context.
    Unfortunately, this feature is too extensive to be downported to 7.11
    Best regards,
    Oliver

  • Using web services in Labview

    Hi!
    I try to use http://zone.ni.com/devzone/cda/tut/p/id/7350 Calculator - web service by Labview vi. When I run my call sum.vi I get "Error 66 occurred at TCP Read in NI_InternetTK_Common_VIs.lvlib:TCP Buffered Read.vi:2->NI_InternetTK_Core_VIs.lvlib:URL Get HTTP Document.vi:1->call sum.vi" - error message. When I put url: "http://localhost/Math/Sum/3/1"- in browser I get answer to the browser but I want to call that service from vi.
    How can I use Labview web services inside Labview?
    Attachments:
    call sum.vi ‏8 KB

    Jörn wrote:
    Hi,
    you are trying to connect to a webserver on your computer (i. e. localhost) and I guess you don't have any installed. Try another address and make sure that Windows does not block LabView to access the internet.
    Jörn
    Yes I try to connect localhost. I think that I have Labview webserver running because I can connect it by web browser (http://localhost)  and this calculator- web service (http:/localhost/math/sum/2/3) is running and I can call it by web browser.
    From different computer:
    1. By browser everthing is ok and I get answer from calculator- web service and see Labview webserver front page.
    2. By Labview Vi (call sum.vi) I get same Error 66.
        - Server side  access.log says:
           "xxx.xxx.xxx.xxx - - [Thu Jun 25 11:34:21 2009] "GET /math/sum/1/2 HTTP/1.0" 200 295"
           where xxx.xxx.xxx.xxx is client computer ip.
    I think that client vi can connet to the server.
    I can read normal web pages from Labview Vi and get web page source. Could this be the problem?
    When I call service from browser Log say:
    "xxx.xxx.xxx.xxx - - [Thu Jun 25 12:16:51 2009] "GET /math/sum/1/2 HTTP/1.1" 200 295"
    From Labview vi HTTP/1.0 and from Browser HTTP/1.1 ?

  • "Unable to log URL" error when importing WSDL into Web Service connection

    Hello Experts
    I'm using Xcelsius Engage and I'd like to use Web Service connection.
    I've developed my own Web service (that is using 2 other web service inside it).
    and now I'm trying to import it into the Xcelsius (connection --> Web service connection).
    And I get the follwoing error:
    "Unable to log URL"
    When I browse to my wsdl file in IE the file is loaded with no problem.
    When trying to import other URLs it also works fine (for example: http://www.xignite.com/xFinancials.asmx?wsdl)
    Any idea?
    Thanks,
    Miki

    Hi Matt
    Thanks a lot!!!
    Indeed the solution was in the follwoing thread:
    VB.net code to create XML
    Parsing the query result fixed the problem.
    For others who might have the same problem:
    Here's a working web service (C# code, for vb code follow the link to the thread above):
    public Service () {
        public struct QueryResult
          public string SlpName;
          public string Commission;
        [WebMethod]
      public QueryResult[] RunQuery()
          // Open Connection - Query Data from DB table - Close connection
          SqlConnection connection = new SqlConnection("Data Source=(local);Integrated Security=SSPI;Initial Catalog=SBODemoUS");
          SqlDataAdapter adapter = new SqlDataAdapter(
            "SELECT SlpName, Commission FROM OSLP", connection);
          DataTable DT_QryResult = new DataTable();
          adapter.Fill(DT_QryResult);
          connection.Close();
          // Parse data to be forward to Xcelsius
          QueryResult[] QryRes = null;
          QryRes = new QueryResult[DT_QryResult.Rows.Count];
          int i=0;
          foreach (DataRow row in DT_QryResult.Rows)
            QryRes<i>.SlpName = row["SlpName"].ToString();
            QryRes<i>.Commission = row["commission"].ToString();
            i++;
          return QryRes;
    Best regards,
    Miki

  • Does Weblogic 8.1 use Apache web service libraries

    Does Weblogic 8.1 use Apache web service libraries ? I've been pressured to include the apache web service libraries, but have been resistant. I was later told by those wanting me to include the apache libraries that weblogic uses the apache libraries, but I have not found any evidence of it.
    Can some confirm or deny this?
    Thanks,
    Eddie

    Hosting an Apache web service inside WLS is basically deploying the Apache service as a webapp in WLS. And in the webapp's WEB-INF\lib folder you would have the Apache libraries.
    Regards
    Shridhar

Maybe you are looking for

  • HOW WILL I BACK UP MY ITUNES LIBRARY TO HARDDRIVE SO I CAN FREE UP SOME SPACE IN MY MAC?

    Hi! My mac is running low in memory space and mostly of the bigger occupants of my laptop are my music collection. Therefore, i want to back it up or transfer it to my external hard drive so i can free up some space. And just play it when connected t

  • Sending Mail with multiple forward accounts

    I currently have approximately 4 email accounts being forwarded to my gmail account. This is the account I use through Mail. Is it possible to send mail out that is, say from my school email account and still have it say that it is from my school ema

  • Working with projects and albums in the browser

    I have already posted a question about how to find a project or album. If you have TONS of projects and albums how do you find a specific one in the browser? I cannot see any way to sort other than alphabetically and there is no way to search project

  • JTable with custom column model and table model not showing table header

    Hello, I am creating a JTable with a custom table model and a custom column model. However the table header is not being displayed (yes, it is in a JScrollPane). I've shrunk the problem down into a single compileable example: Thanks for your help. im

  • Compaq Presario SR1235IL Installation Problem

    Sir, I am using Compaq Presario SR1235IL Desktop PC from last few years.  Present Display Chip problem in Mother Board I have install new Display Card, After install the Display Card trying to system is install new OS, but, after coping the system fi