weblogic Web services

Hi all

I'm on the development of an application j2EE, weblogic and Jboss servers and I intend to use web services to access the external data. So I had to search for web services implementations that fit well with my needs. I read that Rest and SOAP are the two main categories and I went to the rest, because it is no longer used those recently. for the category of rest, I read that JAX - RS are more complete implementation. the most used framework used and that implements JAX - RS is Apache CXF, Jersey, RESTEasy...

I want to go for CXF, as it of an Apache software and supports SOAP as well (in case I need to return to the SOAP), but I had no idea if my choices will be good and practical web services in particular weblogic.

Can you please give me your opinion on my selection and the framework that fits well with the weblogic service (10.3.6 and above)

Thank you

Best regards.

Default WebLogic has a frame of webservice work services. It supports SOAP. It takes care of all the party webservices.jars 3rd, provided him clearly tell the server where to pick them of / use.

Is this all you want?

Kind regards

Tags: Fusion Middleware

Similar Questions

  • Weblogic Web service timeout

    Hello

    I have user JDev 11.1.2.4 with weblogic 10.3.6, I create the web service and deploy to weblogic server, how can I set expire for weblogic webservice? can I do this? If this is not the case, what is the code I have to add in the project?

    Hi channel with me work, I put the two parameters (Idle Connection Timeout, Connect Timeout) 10 10 seconds, but when I test web service some time take more than 10 seconds without stopping, and appear also to monitor the connection of channel 1, which means its still live after 10 seconds.

  • Debugger debug Remotelly WebLogic Web Service - cannot connect

    I've been able to debug locally when I'm leaving debug IntegratedWebLogicServer,
    but I was not able to debug sure although I have deploied successfully to WebLogic Server and I got the correct result when testing SoapUI.
    For the purpose of debugging make sure the simple web service described below, I did these steps on my environment:

    On WebLogic
    (1) in the WebLogic console, are part of the definition of AdminServer, I traveled to the Protocol > HTTP Tunneling and I checked.

    (2) to startWebLogic.cmd I added:
    set JAVA_OPTIONS =-Xdebug - Xnoagent - Xrunjdwp: transport = dt_socket, address = 4000, server = y, suspend = n % SAVE_JAVA_OPTIONS %

    (3) in the setDomainEnv.cmd, I changed to be:
    Set debugFlag = true
    ...
    If '% debugFlag % 'is' true')
    Set JAVA_DEBUG =-Xdebug - Xnoagent - Xrunjdwp: transport = dt_socket, address = % DEBUG_PORT %, server is y, suspend = n - Djava.compiler = NONE
    set JAVA_OPTIONS = % JAVA_OPTIONS % enableHotswapFlag %-ea-da: com.bea-da: Javelin--da: weblogic... - ea:com.bea.wli... - ea:com.bea.broker... - ea:com.bea.sbconsole...
    )
    After this, I restarted the weblogic.

    About JDeveloper
    (4) in the project properties page > Run/Debug/Profile > Default > Edit:
    I wrote the path to the HelloWorld.java on the default execution target area.
    I checked the remote debugging

    (5) I have a right-click the project and click Start Remote Debugger.
    Set this to the JDPA debugger window I wrote LocalHost on host and on Port 4000.
    In the window of my newspaper, I received this message:
    "Debugger tries to connect to a remote process to 4000 LocalHost.
    ... Unable to connect to the Remote Debugger process. »

    I expect to be able to call the web service of SoapUI and then stops on my breakpopint. What should I do?

    The only suggestion found online, I did not was
    «In order for JDeveloper work with WebLogic he will need a copy of the weblogic.jar file which can be found at \weblogic1001\server\lib [WLS-root], copy this file into the \jdev\lib\ext [jdev-root] directory and restart JDeveloper.»
    (http://www.oracle.com/technetwork/developer-tools/jdev/remotedebugwls-086628.html) I have not found the path [jdev-root] \jdev\lib\ext in my computer.


    My Sources:

    HelloWorld.java
    package demo;
    Import javax.jws.WebService;
    Import javax.xml.ws.BindingType;
    Import javax.xml.ws.soap.SOAPBinding;
    @WebService (portName = "HelloWorldSoap12HttpPort")
    @BindingType (SOAPBinding.SOAP12HTTP_BINDING)
    public class HelloWorld {}
    public String sayHello (String firstname, String lastname) {}
    Return "Hello" + firstname + "" + lastname;
    }
    }

    Web.Xml
    <? XML version = "1.0" encoding = "windows-1252"? >
    < web - app xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
    xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd".
    version = "2.5" xmlns = "http://java.sun.com/xml/ns/javaee" >
    < servlet >
    < name servlet - > HelloWorldSoap12HttpPort < / servlet-name >
    < servlet-class > demo. HelloWorld < / servlet-class >
    < load-on-startup > 1 < / load-on-startup >
    < / servlet >
    < servlet-mapping >
    < name servlet - > HelloWorldSoap12HttpPort < / servlet-name >
    <>url-pattern / HelloWorldSoap12HttpPort < / url-pattern >
    < / servlet-mapping >
    < / web - app >

    Find out which port is actually used by your WLS for debug.
    Some instructions here:
    http://thirumalaisamyt.blogspot.com/2012/10/JDeveloper-remote-debugging.html

  • Basic authentication with the RESTful WEb service and a Web Service reference

    Hi all

    We have made significant progress on getting an application to work with RESTful web services, but are now trying to understand how to lock a RESTful Web service while making it available for a particular application.

    We use one of the 'emp' table sample web services come with Apex 4.2 and are trying to apply the Basic Auth to the WEb Service using Weblogic filter defined in the web.xml file. Which works very well. I now get challenged when I try to go to:

    https://wlogic.edu/Apex/BNR/ACE/HR/empinfo/

    And when I authenticate this challenge, I am able to get the data. (we are usiing the Weblogic-level LDAP authentication)

    However, I'm not sure how to get even basic authentication to work with Web Service reference in my application. I see the error message in the application when I try to call this Web Service:

    401 Unauthorized <

    And I see:
    "The request requires user authentication. It MUST contain a header field WWW-Authenticate (section 14.46) containing a fault that is applicable to the requested resource. The client MAY repeat the request with a suitable authorization (section 14.8) header field. If the request already includes identification of the authorization information»

    How can I provide the credentials in the Web reference or provide credentials in the Application?
    Web service works fine if I remove the auth basic RESTful web service in the Web.xml file.

    We should NOT use basic auth and auth Weblogic web service definition basic RESTful Workspace use instead. If so, how would we implement THIS basic authentication in the definition of Web Service and the Web SErvice reference on the application?

    Thank you
    Pat

    Hello Scott,

    Thank you. There is a function for rest in the package:

    function make_rest_request(
    --
    -- This function invokes a RESTful Web service with the supplied name value pairs, body clob, or body blob
    -- the response as an clob.
    --
    -- Arguments:
    --   p_url                  The url endpoint of the Web service
    --   p_http_method          The HTTP Method to use, PUT, POST, GET, HEAD or DELETE
    --   p_username             The username if basic authentication is required for this service
    --   p_password             The password if basic authentication is required for this service
    --   p_proxy_override       The proxy to use for the request
    --   p_body                 The HTTP payload to be sent as clob
    --   p_body_blob            The HTTP payload to be sent as binary blob (ex., posting a file)
    --   p_parm_name            The name of the parameters to be used in name/value pairs
    --   p_parm_value           The value of the paramters to be used in name/value pairs
    --   p_wallet_path          The filesystem path to a wallet if request is https
    --                          ex., file:/usr/home/oracle/WALLETS
    --   p_wallet_pwd           The password to access the wallet
    --
        p_url               in varchar2,
        p_http_method       in varchar2,
        p_username          in varchar2 default null,
        p_password          in varchar2 default null,
        p_proxy_override    in varchar2 default null,
        p_transfer_timeout  in number default 180,
        p_body              in clob default empty_clob(),
        p_body_blob         in blob default empty_blob(),
        p_parm_name         in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_parm_value        in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_wallet_path       in varchar2 default null,
        p_wallet_pwd        in varchar2 default null ) return clob;
    

    My point was that using the API makes things easier if you have to look for a solution.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • How to fire a manager class when consuming web service in java - weblogic

    With the help of Axis 1.4 I created client application that consumes the external server services.

    The response of the application server with the soap message that include tags header as well as the body tag.

    My problem with the header tag, I'm trying to find away to get the header element.

    What happened so far:

    I found that I need to use a handler that extends BasicHandler using this class, I can get the header tag. source: dealing with SOAP in the axis headers

    But how this handler to operate during the use of web services? I mean how to call this handler whenever I received the response from the server to get his header .

    Some articles suggest I should use .wsdd file. I use 11.1.1.7 with weblogic 10.3.6 Jdeveloper environment where I don't know web.xml configuration file.

    Question: How to bind this information (Manager class, .wsdd file and web.xml ) to collect and the Manager works for the heading tags?

    The best start was to check the Axis guide on: Apache-Axis reference Guide where you will have an overview of the workflow. (Thanks to Timo)

    To configure the handlers be trigger on the client side you need to do the following:

    1- Create class Manager basically something similar to the following:

    package mypackge; 
     import javax.xml.soap.SOAPException;
     import org.apache.axis.AxisFault;
     import org.apache.axis.MessageContext;
     import org.apache.axis.handlers.BasicHandler;
     import org.apache.axis.message.SOAPHeader;
     import org.apache.axis.message.SOAPHeaderElement; 
    
     public class SoapHeaderConsumerHandler extends BasicHandler
     { 
         public void invoke(MessageContext messageContext) throws AxisFault 
         { // Your logic for request or response handling goes here. 
          // Basically you need to make use of the parameter 
         // messageContext where you can access the soap header and body tags. 
         } 
    }
    

    2- Create the client-config.wsdd file. It will look like the following:

    http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
      
           
               
          
      
     
    
    
    

    You can see that I only use handlers for incoming response side server. So whenever the client application receives a response from the server the class Manager SoapHeaderConsumerHandler is triggered and the method invoke will be called by default.

    Note: if you want to access the outgoing request before sending to the server you need to add an additional label for to add the request handler.

    Check the Reference Deployment (WSDD) of the guide of the axis:

    3- Where to place the client-config.wsdd file?

    You will need to place the .wsdd file in the working directory. You can easily find the location of the working directory using:

    System.out.println("Working Directory = " + System.getProperty("user.dir"));
    

    Source: Get the Current Working Directory in Java

    You just place the .wsdd file here.

    Useful links:

    Where to place the file client - config.wsdd in Railo

    Handler axis V It is an example to managers of the side server.

    Dealing with SOAP headers in the axis

  • Advanced Web services addition of Weblogic for JAX - WS extending resources to new managed server

    If we add a server managed additional to a weblogic domain that has been configured to support Web Services Advanced to Weblogic for the Extensions of JAX - WS in the creation of the domain, what is the right method to add the resources to the new managed server? All of these objects are created automatically when the wls_webservice_jaxws.jar is selected in the creation of the field. However, it is not possible to reuse the model to add resources to a newly added managed server.

    We tried to use the wls_webservice_complete_update_utils.py to create these objects, but when this script is pointing to a single server, it seems that to create the JaxWsSafAgent and no other resource is created for the new managed server.

    in the event of possible it helps someone who may have the same question, I got, I developed the following wlst script to add and configure the resources of JAX - WS Adv Svcs for a managed server newly added to an area that already has the support of the service.

    ###############################################################################

    # Oracle documentation:

    # Configure a JMS server, service agent of Store-and-forward (SAF) and store persistent on each WebLogic Server.

    # In a cluster, each to a target (not the server) local migratable target.

    # Host server 'default migratable target' is sufficient in most cases.

    # Target JMS modules to a cluster (or single server if not not using a clustered environment).

    # Create exactly a subdeployment by module.

    # and fill the subdeployment with JMS servers applicable or SAF agents only, not servers.

    # Target JMS destinations the subdeployment (called Advanced Targeting in the Administration Console).

    # JMS destinations do not use by default the targeting option.

    # The following variables are used in the table:

    server_designator # specifies an ID that is generated automatically by the configuration infrastructure.

    # In general, this ID is in the format auto_number.

    # uniqueID specifies a unique digital ID that is generated automatically by the configuration infrastructure.

    # In General, this ID is a numeric value, for example 1234.

    # servername specifies the name specified by the user to the server.

    # http://docs.oracle.com/cd/E23943_01/web.1111/e13758/setenv.htm#CACJHIJD

    # RESOURCE NAME                                                                                                                                                                         RESOURCE TYPE

    # WseeJaxwsJmsModule                                                                                                                                             JMS Module

    # File WseeJaxwsFileStore_server_designator storage

    # WseeJaxwsJmsServer_server_designator JMS server

    # WseeJaxwsJmsServeruniqueID JMS Subdeployment

    # Manager weblogic.wsee.jaxws.mdb.DispatchPolicy of work

    # Service ReliableWseeJaxwsSAFAgent_server_name SAF agent

    # Queue JMS WseeBufferedRequestQueue_server_designator

    # Queue JMS WseeBufferedRequestErrorQueue_server_designator

    # Queue JMS WseeBufferedResponseQueue_server_designator

    # Queue JMS WseeBufferedResponseErrorQueue_server_designator

    # WseeStore                                                                                                                                                                                      Logical store

    import sys

    import random

    # import os

    def main():

    Connect ("weblogic', ' password ',' t3: / / hostname:8001")

    domainType = "osb".

    # change the index value to coincide with the index number of the managed server

    # that needs resources, for example osb_server3 or wls_server3 would be all two use index = 3

    # osb_server4 would need to index = 4, etc.

    index = 3

    managedServerName = domainType + '_server %s' % index

    print ' managedServerName is: "+ managedServerName

    print (' check if server ' + managedServerName + "exists...")

    CD ('/Servers')

    Server = ls('c')

    If (servers.find (managedServerName)! = - 1):

    Print ('Server' + managedServerName + "exists...")

    # Get the Configuration Manager and check for existing session

    cfgManager = getConfigManager()

    Try:

    cfgManager.getChanges)

    Print ("failed to open an editing session.  Please clear any open the locks on the configuration. ")

    Print ("Please investigate the lock and try again the script. Script output. ")

    Disconnect()

    Exit()

    except:

    Edit()

    startEdit()

    Print ("creation WseeStore LogicalStore...")

    createLogicalStore (managedServerName, 1).

    Print ("WseeStore LogicalStore...")

    Print ('creating JMS resources and configuration UDQs...')

    createJMSResources (managedServerName, index)

    print ("resources created JMS and configured UDQs... »)

    Print ("activate changes...")

    Activate()

    Print ("enabled... changes")

    print ("disconnection of AdminServer...")

    Disconnect()

    Print ("disconnected from AdminServer...")

    Print ("Script completed successfully.  Please check the changes you made. ")

    Exit()

    Another thing:

    There are 0 =

    print (managedServerName + "does not exist in this area.)  Script will now stop. »)

    Disconnect()

    Exit()

    def createLogicalStore (managedServerName, setAsDefault):

    CD ('/ servers /' + managedServerName + ' / WebService /' + managedServerName + ' / WebServicePersistence /' + managedServerName + ' / ' WebServiceLogicalStores)

    logicalStores = ls('c')

    If (logicalStores.find ('WseeStore')! = - 1):

    Print ("ERROR: LogicalStore WseeStore exist already for ' + managedServerName")

    Print ("Please study.  Script output. ")

    cancelEdit('y')

    Disconnect()

    Exit()

    Another thing:

    CD ('/ servers /' + managedServerName + ' / WebService /' + managedServerName + ' / WebServicePersistence /' + managedServerName)

    cmo.createWebServiceLogicalStore ('WseeStore')

    CD ('/ servers /' + managedServerName + ' / WebService /' + managedServerName + ' / WebServicePersistence /' + managedServerName + ' / WebServiceLogicalStores/WseeStore ')

    cmo.setPersistenceStrategy ('LOCAL_ACCESS_ONLY')

    cmo.setRequestBufferingQueueJndiName ('weblogic.wsee.BufferedRequestQueue')

    cmo.setResponseBufferingQueueJndiName ('weblogic.wsee.BufferedResponseQueue')

    If setAsDefault == 1:

    CD ('/ servers /' + managedServerName + ' / WebService /' + managedServerName + ' / WebServicePersistence /' + managedServerName)

    cmo.setDefaultLogicalStoreName ('WseeStore')

    def createJMSResources (managedServerName, index):

    targetServer = jarray.array ([ObjectName ('com.bea:Name =' + managedServerName + ", Type = server '")], ObjectName)

    # creating persistence store for jms Server

    # NOTE: you will need to create the physical folder for the storage of files

    print ('* FileStore creation ')

    filestore_list = ["WseeJaxwsFileStore"]

    Count = 0

    limit = 1

    While County<>

    CD ('/Deployments')

    Filestore = ls('c')

    Filestore = filestore_list [count] + '_auto_ %s' % index

    If (fileStores.find (filestore)! = - 1):

    print ("' ERROR: Filestore ' filestore + ' already exists!")

    Print ("Please study.  Script output. ")

    cancelEdit('y')

    Disconnect()

    Exit()

    Another thing:

    print ('* adding ' + filestore)

    CD('/')

    cmo.createFileStore (filestore)

    CD ('/ deployments /' + filestore)

    cmo.setDirectory (filestore)

    objectives (", target server)

    print ("Filestore" + filestore + "created")

    # create file storage directory, if there is no

    dir = System.getenv ('DOMAIN_HOME') + ' / ' + filestore

    Try:

    OS.stat (dir)

    except:

    OS.mkdir (dir)

    Count += 1

    # the server jms creation

    print ('* creating WseeJaxws JMS Server "")

    # create server jms WseeJaxwsJmsServer_auto_x

    CD ('/JMSServers')

    jmsServers = ls('c')

    If (jmsServers.find (' %s '% index WseeJaxwsJmsServer_auto_)! = - 1):

    print ("ERROR: WseeJaxwsJmsServer_auto_ % if % index + ' already exists!")

    Print ("Please study.  Script output. ")

    cancelEdit('y')

    Disconnect()

    Exit()

    Another thing:

    CD('/')

    cmo.createJMSServer (' %s '% index WseeJaxwsJmsServer_auto_)

    CD ('/ JMSServers/WseeJaxwsJmsServer_auto_ % if % index)

    cmo.setPersistentStore (getMBean ('/ deployments/WseeJaxwsFileStore_auto_ % if % index))

    objectives (", target server)

    targetWseeJaxwsJmsServer = jarray.array ([ObjectName ('com.bea:Name = WseeJaxwsJmsServer_auto_ % be % index + ", Type = JMSServer")], ObjectName)

    print (index "WseeJaxwsJmsServer_auto_ %s" % + "created")

    # creating WseeJaxwsJmsModule components

    print ('* create queues: index % WseeBufferedRequestQueue_auto_ % to + ', WseeBufferedRequestErrorQueue_auto_ % if % index + ', WseeBufferedResponseQueue_auto_ % if % index + ' and WseeBufferedResponseErrorQueue_auto_ % if % index)

    # check if subdeployment in WseeJaxwsJmsModule

    # targeted on the new JMS server already exists

    CD('/JMSSystemResources/WseeJaxwsJmsModule/SubDeployments')

    wseejaxwsSubs = ls ("c", returnMap = 'true')

    for wseejaxwsSub in wseejaxwsSubs:

    CD ('/ JMSSystemResources/WseeJaxwsJmsModule/SubDeployments /' + wseejaxwsSub + "/ target")

    existingSubTargets = ls ("c", returnMap = 'true')

    for existingSubTarget in existingSubTargets:

    CD ('/ JMSSystemResources/WseeJaxwsJmsModule/SubDeployments /' + wseejaxwsSub + ' / objectives /' + existingSubTarget)

    If (existingSubTarget == 'WseeJaxwsJmsServer_auto_ %s' % index):

    print (' ERROR: SubDeployment WseeJaxwsJmsModule ' + wseejaxwsSub + ' already exists and is intended for the %s '% index WseeJaxwsJmsServer_auto_)

    Print ("Please study.  Script output. ")

    cancelEdit('y')

    Disconnect()

    Exit()

    # create subdeployment in WseeJaxwsJmsModule

    CD('/JMSSystemResources/WseeJaxwsJmsModule')

    # Number of eight random numbers to generate and convert to string

    # If the subname will conform to the standard naming convention

    # using numbers beginning with four to ensure it is random in existing facilities

    # and try to create some level of self-documentation to coincide with the index server

    uniqueID = str (random.randrange (00000000,99999900))

    subName = "%s WseeJaxwsJmsServer" % index + uniqueID

    cmo.createSubDeployment (subName)

    print ('SubDeployment' + subName + "created")

    # create queue WseeBufferedRequestQueue_auto_x

    CD('/JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule/Queues')

    queue = ls('c')

    If (queues.find (' %s '% index WseeBufferedRequestQueue_auto_)! = - 1):

    print ("ERROR: WseeBufferedRequestQueue_auto_ % if % index + ' already exists!")

    Print ("Please study.  Script output. ")

    cancelEdit('y')

    Disconnect()

    Exit()

    Another thing:

    CD('/JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule')

    cmo.createQueue (' %s '% index WseeBufferedRequestQueue_auto_)

    CD ('/ JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule/Files/WseeBufferedRequestQueue_auto_ % if % index)

    cmo.setJNDIName ('weblogic.wsee.BufferedRequestQueue_auto_ % if % index)

    cmo.setSubDeploymentName (subName)

    CD ('/ JMSSystemResources/WseeJaxwsJmsModule/SubDeployments /' + subName)

    Set ('Targets', targetWseeJaxwsJmsServer)

    print (index ' WseeBufferedRequestQueue_auto_ %s "% +" created")

    # create queue WseeBufferedRequestErrorQueue_auto_x

    CD('/JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule/Queues')

    queue = ls('c')

    If (queues.find (' %s '% index WseeBufferedRequestErrorQueue_auto_)! = - 1):

    print ("ERROR: WseeBufferedRequestErrorQueue_auto_ % if % index + ' already exists!")

    Print ("Please study.  Script output. ")

    cancelEdit('y')

    Disconnect()

    Exit()

    Another thing:

    CD('/JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule')

    cmo.createQueue (' %s '% index WseeBufferedRequestErrorQueue_auto_)

    CD ('/ JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule/Files/WseeBufferedRequestErrorQueue_auto_ % if % index)

    cmo.setJNDIName ('weblogic.wsee.BufferedRequestErrorQueue_auto_ % if % index)

    cmo.setSubDeploymentName (subName)

    CD ('/ JMSSystemResources/WseeJaxwsJmsModule/SubDeployments /' + subName)

    Set ('Targets', targetWseeJaxwsJmsServer)

    print (index ' WseeBufferedRequestErrorQueue_auto_ %s "% +" created")

    # create queue WseeBufferedResponseQueue_auto_x

    CD('/JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule/Queues')

    queue = ls('c')

    If (queues.find (' %s '% index WseeBufferedResponseQueue_auto_)! = - 1):

    print ("ERROR: WseeBufferedResponseQueue_auto_ % if % index + ' already exists!")

    Print ("Please study.  Script output. ")

    cancelEdit('y')

    Disconnect()

    Exit()

    Another thing:

    CD('/JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule')

    cmo.createQueue (' %s '% index WseeBufferedResponseQueue_auto_)

    CD ('/ JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule/Files/WseeBufferedResponseQueue_auto_ % if % index)

    cmo.setJNDIName ('weblogic.wsee.BufferedResponseQueue_auto_ % if % index)

    cmo.setSubDeploymentName (subName)

    CD ('/ JMSSystemResources/WseeJaxwsJmsModule/SubDeployments /' + subName)

    Set ('Targets', targetWseeJaxwsJmsServer)

    print (index ' WseeBufferedResponseQueue_auto_ %s "% +" created")

    # create queue WseeBufferedResponseErrorQueue_auto_x

    CD('/JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule/Queues')

    queue = ls('c')

    If (queues.find (' %s '% index WseeBufferedResponseErrorQueue_auto_)! = - 1):

    print ("ERROR: WseeBufferedResponseErrorQueue_auto_ % if % index + ' already exists!")

    Print ("Please study.  Script output. ")

    cancelEdit('y')

    Disconnect()

    Exit()

    Another thing:

    CD('/JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule')

    cmo.createQueue (' %s '% index WseeBufferedResponseErrorQueue_auto_)

    CD ('/ JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule/Files/WseeBufferedResponseErrorQueue_auto_ % if % index)

    cmo.setJNDIName ('weblogic.wsee.BufferedResponseErrorQueue_auto_ % if % index)

    cmo.setSubDeploymentName (subName)

    CD ('/ JMSSystemResources/WseeJaxwsJmsModule/SubDeployments /' + subName)

    Set ('Targets', targetWseeJaxwsJmsServer)

    print (index ' WseeBufferedResponseErrorQueue_auto_ %s "% +" created")

    print (queues "in the created WseeJaxwsJmsModule")

    # try except block is sufficient to avoid any problem if these queues

    # have already been added to the queues of dist WseeJaxws

    # If this is the case, the following exception is thrown:

    # weblogic.descriptor.BeanAlreadyExistsException: bean already exists

    Try:

    print ('* addition of the queues in distributed queues)

    queue_list = ['WseeBufferedRequestErrorQueue', 'WseeBufferedResponseQueue', 'WseeBufferedRequestQueue', 'WseeBufferedResponseErrorQueue']

    Count = 0

    limit = 4

    While County<>

    queue = queue_list [count] + '_auto_ %s' % index

    dist_queue = "dist_" + queue_list [count] + 'sent '.

    print ('* added ' queue + 'to' + dist_queue)

    CD ('/ JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule/DistributedQueues /' + dist_queue)

    cmo.createDistributedQueueMember (tail)

    CD ('/ JMSSystemResources/WseeJaxwsJmsModule/JMSResource/WseeJaxwsJmsModule/DistributedQueues /' dist_queue ' / DistributedQueueMembers /' ++ queue)

    cmo.setWeight (1)

    Print ("queue added to UDQ")

    Count += 1

    except:

    Print ("an exception was encountered adding JMS queues for distributed queues '")

    Print ("Please study using the thread dump information provided.'")

    Print ("the script will now stop.")

    cancelEdit('y')

    Disconnect()

    lift

    # create ReliableWseeJaxwsSAFAgent

    Print ("Creating ReliableWseeJaxwsSAFAgent_auto_ %s" % index + '...')

    CD ('/SAFAgents')

    safAgents = ls('c')

    If (safAgents.find (' %s '% index ReliableWseeJaxwsSAFAgent_auto_)! = - 1):

    print ("ERROR: SAFAgent ReliableWseeJaxwsSAFAgent_auto_ % index %s 'exists already for' + managedServerName")

    Print ("Please study.  Script output. ")

    cancelEdit('y')

    Disconnect()

    Another thing:

    CD('/')

    cmo.createSAFAgent (' %s '% index ReliableWseeJaxwsSAFAgent_auto_)

    CD ('/ SAFAgents/ReliableWseeJaxwsSAFAgent_auto_ % if % index)

    cmo.setStore (getMBean ('/ filestore/WseeJaxwsFileStore_auto_ % if % index))

    Set ('Targets', TargetServer)

    cmo.setServiceType ('Both')

    Print ('Created ReliableWseeJaxwsSAFAgent_auto_ %s "% index)

    If __name__ == "main":

    main()

  • Application of Web service on weblogic 10.3.6 (Illegal treatment target instruction ("xml"), xml (not case sensitive) is booked by the plug.)

    I built a server service web application in 11.1.1.7 Jdeveloper and deploy it on weblogic 10.3.6 to the demands of the external partner is used.

    I tested the app using the tool SoapUI and everything works fine and I get as a response from the server.

    Use case:

    1 - the customer can not get as a response from the server. They always receive 500 internal error from Server

    2 - I have faced this problem before with other clients because the client sent not writing xml format that is accepted by the server. Problem is solved at the time when they start to send the right xml format.

    3 - newspapers, I see the following stack (part of it): (Google, I knew there's something wrong with xml, the client sends to the server: wso2 - how can I manage this in Wso2ESB that does not Respone to the Client - Stack Overflow)

    4. now I need a way to know exactly what is to reach my server as xml. Is it possible to save the queries coming to the server weblogic. xml Without knowing what will happen on the server, I don't know what is going wrong in the xml file.

    < error > < com.sun.xml.ws.transport.http.HttpAdapter > < BEA-000000 > < could not create a SOAP message because of the exception: XML reader error: com.ctc.wstx.exc.WstxParsingException: Illegal treatment target instruction ("xml"); (not case sensitive) xml is reserved by specs.

    [row, col {source unknown}]: [10,16]

    com.sun.xml.ws.protocol.soap.MessageCreationException: cannot create SOAP message because of the exception: XML reader error: com.ctc.wstx.exc.WstxParsingException: illegal treatment target instruction ("xml"); XML (not case sensitive) is booked by the specifications.

    [row, col {source unknown}]: [10,16]

    at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:295)

    at com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:294)

    at com.sun.xml.ws.transport.http.HttpAdapter.access$ 500 (HttpAdapter.java:102)

    to com.sun.xml.ws.transport.http.HttpAdapter$ HttpToolkit.handle (HttpAdapter.java:519)

    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:253)

    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:141)

    at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:172)

    to weblogic.wsee.jaxws.HttpServletAdapter$ AuthorizedInvoke.run (HttpServletAdapter.java:708)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)

    at weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)

    to weblogic.wsee.jaxws.HttpServletAdapter$ 3.run(HttpServletAdapter.java:311)

    at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:336)





    Update 1: I found that I need to add the following lines of code to enable logging on the server. But I thing execution is not to join them and fail before that. No idea how to highlight the execution of any request. Maybe in jdeveloper and weblogic server?


    System.setProperty ("com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump", "true");

    System.setProperty ("com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump", "true");

    System.setProperty ("com.sun.xml.ws.transport.http.HttpAdapter.dump", "true");

    System.setProperty ("com.sun.xml.internal.ws.transport.http.HttpAdapter.dump", "true");

    System.setProperty ("javax.net.debug", "true");


    Update 2: I just need to set the following properties of java (-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump = true) in the setDomainEnv this file for the side server, see this link: How to apply Log and response with Java JAX - WS Client and web service server? But how to connect their good in files not just their output in the console?

    I am in a position to know what is the cause of the error (Illegal treatment target instruction ("xml"), xml (not case sensitive) is booked by the plug.)

    Update 2 in the question, I am able to see which is reached from the server console. The customer was sending additional labels and with in the body tag, which is not recognized by the server of web service application and it throw the customer 500 internal server error. The problem is solved by sending exactly the XML except without additional or missing tags.

  • How to create a Web services to an external service and deploy to weblogic

    Hello

    I am trying to create a Web service for the wsdl
    http://ABR.business.gov.au/abrxmlsearch/ABRXMLSearch.asmx?WSDL
    who will help me to validate the number of the NBA.

    And I would like to create a war file and deploy it to a weblogic server,
    But the server is running behind the firewall,
    I could run the webservice of jdeveloper, but when deploy us in weblogic server
    the Web service does not work,

    We need to give the parameter in the Web service itself or the proxy details must exist in the weblogic proxy server?

    Thank you.

    With respect,
    Kali.
    OSSI.

    Kali,

    IMO, it would be preferable to apply the proxy settings on a global scale.

    I can't see a specific proxy settings page on my weblogic instance. Perhaps, you must add the properties of the JAVA virtual machine directly in the weblogic startup script.

    Edit: For a server JVM Arguments can be configured in the WLS console-> choose the server and go to Configuration-> start server.

    Published by: BijeshKrishnadas on October 18, 2010 21:01

  • deployment problems web services on weblogic server 10.2

    Hello... I have completed the first web service to web service tutorial and when I want to deploy the .war generated I have this error

    * An error occurred during activation of the changes, please see the log for more details.

    * Cannot load the webapp: "HelloWorldImpl.war."

    * cl/slider/webservices/HelloWorldImpl: classversion unsupported 50.0


    Can U help me please,

    Thanks in advance

    WebLogic 10.2 always uses the JDK 1.5. You have compiled your war with JDK 1.6.

    I would recommend recompile your application with JDK 1.5 or using the indicator 'target' to generate the JDK 1.5 class files.

    -Ryan

  • JDeveloper 12.2.1.0.0 do not add the header of web service security

    Hello

    I write simple WebService Java Client to a simple wsdl.

    If I click with the right button on the WSDL file and say 'Test Web Service', a request was made for me by Jdeveloper, all I have to do is click the box include the username and password for SOAP Header-> Header WS:Security and under the "security-> UserNameToken" and my request now has a security header

    " < = xmlns:env env:Envelope ' http://www.w3.org/2003/05/soap-envelope "xmlns:ns1 =" " http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd "xmlns:ns2 =" " http://Oracle.apps.CTB.cdapersistence.types ">

    < env:Header >

    < ns1:Security >

    < ns1:UsernameToken >

    WebLogic < ns1:Username > < / ns1:Username >

    password < ns1:Password > < / ns1:Password >

    < / ns1:UsernameToken >

    < / ns1:Security >

    < / env:Header >

    < env:Body >

    < ns2:PersistCDADocumentRequest >

    < ns2:Document / >

    < / ns2:PersistCDADocumentRequest >

    < / env:Body >

    < / env:Envelope >

    I tried 3 separate ways to do it in my Java Web Service Proxy and all 3 have failed, the demand created by my java code does not include the security header and don't include that the < env:Header / > why are my bottom 3 attempts of creation of the grave security header down when they are means documented to supply security headers? Help, please

    Method 1:

    Map < String, Object > requestContext = (cDAPersistenceServicePortType) .getRequestContext ((BindingProvider));

    requestContext.put (BindingProvider.USERNAME_PROPERTY, "weblogic");

    requestContext.put (BindingProvider.PASSWORD_PROPERTY, "password");

    Methos 2:

    Map < String, Object > requestContext = (cDAPersistenceServicePortType) .getRequestContext ((BindingProvider));

    Map < String, List < String > > headers = new HashMap < String, List < String > > ();

    headers.put ("Username", Collections.singletonList ("weblogic"));

    headers.put ("Password", Collections.singletonList ("password"));

    requestContext.put (MessageContext.HTTP_REQUEST_HEADERS, headers);

    Methos 3:

    @Generated ("oracle JDeveloper")

    public static void setPortCredentialProviderList (map < String, Object > requestContext) bird Exception {}

    TODO - provides the required identification information values

    String username = "weblogic";

    String password = "password";

    credList.add (getUNTCredentialProvider (username, password));


    requestContext.put (WSSecurityContext.TRUST_MANAGER, new TrustManager() {}

    {public boolean certificateCallback (X509Certificate [] string, int validateErr)

    Boolean result =

    (string! = null & & chain.length > 0) & & (chain [0] (serverCert) .equals | chain [0] .equals (clientCert));

    return the result;

    Returns true;

    }

    });

    credList.add (getSAMLTrustCredentialProvider ());

    requestContext.put (WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credList);

    }

    @Generated ("oracle JDeveloper")

    public static CredentialProvider getUNTCredentialProvider (String username, String password) {}

    new return ClientUNTCredentialProvider (username.getBytes (), password.getBytes ());

    }

    @Generated ("oracle JDeveloper")

    public static CredentialProvider getSAMLTrustCredentialProvider() {}

    return new SAMLTrustCredentialProvider();

    }

    found an answer here - http://stackoverflow.com/questions/5976940/how-to-add-soap-header-in-java

  • Authorization for the BPEL (SOASuite 12 c) Web service

    I'm currently implementing WSSE security authentication and authorization for a SOA Composite, exposed as a Web service in SOA Suite12C . WSSE authentication security is successful, but seems to leave doesn't think.

    Details:

    SOA Composite = SOAComposite1 (exposed as a Web service)

    I have two valid authenticated users USER1 and USER2. Only USER1 has access to the Web service.

    WebLogic console

    Adds a user User1 to the Administrators group

    Console EM

    Created a DBMS (Test USER) role-> wanted to add the administrator group to the Application role 'User of Test', so search for groups, but does not list in MS, so I added the 'Administrator' explicitly (Advanced section) group .i don't know if this is appropriate.

    Create an Application with (TestUser) policy as name and application added user 'Test' for her role.

    Adds approval of "oracle.wsm.security.WSFunctionPermission" with the name of the resource and the action as «*»

    SOAComposite1

    . The strategy used for authorization is "oracle/binding_permission_authorization_policy" to the level of service.

    This configuration has worked in SOA Suite 11 g, but does not work in SOA Suite 12 C.

    11 g that only USER1 is allowed access to the webservice, in a trial with User2, user2 performs authentication but fails with an exception "Is not to allow" which should

    12 c, users USER1 and USER2 is able to access the Web service. I want the request fails whenever the user is user 2.

    The only difference is in 11 g, having created groups in the weblogic console, the groups are listed in 'EM, I just need to select the group to add in the role of Application, where as in 12 C I don't see the groups created in weblogic, listed in the MS. I had to add explicitly in the Application role.

    I haven't restarted the servers (Admin /SOA serrvers) 11 g and 12 C.

    Customer - https-> SOA

    [Authentication of WSE and Authroization security]

    Please help.

    Hi there user,

    Recently, I've implemented something similar on OSB, if authentication has been with the user name token and the SSL was pure transport level, i.e. was not part of the political configuration of GOSA.

    That's what I did:

    1 created users (in embedded LDAP)

    2. created LDAP groups and made users members of them. For simplicity, I created a hasAccess group and the other - hasNoAccess and added User1 to user2 to hasNoAccess and hasAccess

    3. has created a new policy of security GOSA

    4. the newly created policy added assertion of authentication - in my username token case

    5. the newly created policy added AuthZ assertion of type binding-authorization

    6 set the AuthZ liaison-authorization assertion as follows:

    -action game *.

    -resources match *.

    -added the hasAccess groups of the embedded in the roles of article selection options "selected roles.

    7. fix new GOSA policy to your component of the service binding.

    In short you need not create application roles. You can work directly with the LDAP groups with authZ assertions.

    HTH,

    A.

  • Job-Run: SELFUPDATE, unable to connect to the ConsoleJobStepExecutorService Web service working system.

    Job system failed to connect to the ConsoleJobStepExecutorService Web service. Check the OMS's WebLogic Admin Server for any issues related to Web services configuration that could cause a connection failure.

    Natural logarithm of output

    Hello world.

    I am writing from Hungary, sorry for my bad English. You can read my problem above.

    I'm looking for:

    -Oracle Cloud control 12 c version 5

    -Extensibility / auto update / check updates

    -activity of employment-

    SELFUPDATE_201511111044141 race11 November 2015 10:44:14 GMT + 01:00SYSMANRefresh updates

    but the message: error log:

    Job system failed to connect to the ConsoleJobStepExecutorService Web service. Check the OMS's WebLogic Admin Server for any issues related to Web services configuration that could cause a connection failure.

    and nothing happened.


    I would like to download and install the microsoft agent x 64 driver.


    -I can't find anything on the the red message in the internet or in the google...

    -I'm still a beginner in Oracle...

    -MOS, proxy and the credentials are OK.


    Please help me,

    Thank you for your co-operation in advance

    László

    Hi Courtney lamas-Oracle

    First of all. Thank you very much for your help!

    Yesterday, I was able to find the answer to my problem:

    So:

    1. I used consol secure with sleeve and key_strength 2048 (because there were problems connecting my Chrome, IE11 or Firefox to the Weblogic administration Console and the https certificate)

    2. I refreshed DemoIDentity, jks with certificate of keystrength from 512 to 1024 due to the blocking of the browser.

    The solution:

    sure emctl console - portfolio -key_strength 1024

    Restart the WHO

    I've been careless.

    Everything works fine now.

    LACI

  • Web service security.

    Hi all

    We use Weblogic 10.3.6 and use Web services.

    So far, when using webservices in weblogic, we must tell our client (for example SoapUi), the name of user and password configured in weblogic otherwise it returns a security error.

    Now, we have an obligation to call Web services with no security (as an anonymous user so without entering the name of a test client user/password).

    Do you know if this is possible in weblogic let call a webservice?

    Thank you very much!!!

    Hello

    You have rightly identified the correct file. Look at the tag in the . So ideally, you provide authentication for the roles of 'ciusers' and so to comment on this piece of information in the deployment descriptor would allow access to your Web service for all users.

    Links below may be useful for you.

    https://dzone.com/articles/Understanding-Web-security

    https://docs.Oracle.com/CD/E11035_01/WLS100/security/thin_client.html

    https://docs.Oracle.com/javaee/5/tutorial/doc/bncbx.html

    http://WebLogic-wonders.com/WebLogic/tag/securing-WebServices/

    http://WebLogic-wonders.com/WebLogic/2011/05/24/securing-WebServices-using-username-password-mechanism/

    It will be useful.

  • By using the web service ActionsService to load the account data

    Hello

    We are looking to automate the loading data of an EPM - HFM Application accounts.

    We wre able to charge through the front-end server. About Automation, we were able to configure GOSA strategies for the web service, create the native user in console weblogic and import and use the public key of client web service proxy.

    The URL of the wsdl file that we ask is http://192.168.50.21:7363 / oracle-EMP-fm-Web services/ActionsService? wsdl

    The method we are trying to call is iActionsService.loadData ("clustername", "name the Application", "E:\\testpad\\Hyperion\\data\\DATA.txt", null, ",", DataLoadMode.MERGE, false, false);

    The errors below are found in the file log immediately after the race. Please help us find what needs to be done in the setting of these errors. Are we sending the right params to the web service?

    Do we still need to make other changes to weblogic/em to make this work? Please suggest.

    Oracle EPM-edition of Fusion

    version - 11.1.2.4.0.79

    Thank you and best regards,

    Guna

    Newspapers, we find that

    We might be able to connect to the application - Session is created with the Session id: 5e95de6f-e828-4121-8765-36c186e72355

    An unexpected error has occurred-

    oracle.epm.fm.common.exception.HFMException: EPMHFM-65536: an unexpected error has occurred.

    at oracle.epm.fm.common.exception.ExceptionHelper.handleException(ExceptionHelper.java:45)

    at oracle.epm.fm.domainobject.loadextract.LoadExtractOM.loadData(LoadExtractOM.java:281)

    Error EPMHFM-65925

    java.lang.NullPointerException

    at org.apache.thrift.protocol.TCompactProtocol.writeString(TCompactProtocol.java:325)

    at oracle.epm.fm.thrift.protocol.TMultiplexedProtocol.writeString(TMultiplexedProtocol.java:112)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ loadData_args$ loadData_argsStandardScheme.write(LoadExtractHandlerService.java:10236)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ loadData_args$ loadData_argsStandardScheme.write(LoadExtractHandlerService.java:10152)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ loadData_args.write(LoadExtractHandlerService.java:10087)

    at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:63)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ Client.send_loadData (LoadExtractHandlerService.java:639)

    to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ Client.loadData (LoadExtractHandlerService.java:629)

    at oracle.epm.fm.domainobject.loadextract.LoadExtractOM.loadData(LoadExtractOM.java:269)

    at oracle.epm.fm.actions.LoadDataAction.execute(LoadDataAction.java:100)

    at oracle.epm.webservices.fm.ActionsService.LoadData(ActionsService.java:315)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    Post edited by: 2837182

    Got it working now.

    Case of a brain freeze. The data file must be located on the server.

  • Error when testing the web service

    Hello

    I use weblogic 11.1.2.4, I create the java class and call SOAP SSL with success of this class, I create Web service of this class, but when I test this website for services of (right click-> test web service) its give me error below (according to me, this error pops up when start web logic server because when trying to launch the old class without isn't web service until I have remove the certificate of) jks file and add it back)

    Error:

    Certificate chain from localhost127.0.0.1-> xxxx.com wasn't reliable causing SSL handshake failure

    It's certificate

    keytool-import-trustcacerts-alias file TEST C:\Oracle\Middleware11124\wlserver_10.3\server\lib\xxx.crt - keystore C:\Oracle\Middleware11124\wlserver_10.3\server\lib\DemoTrust - storepass changeit

    Any suggestion

    How did you generate the certificate... you use a self-signed certificate... ?

    Could you take a look at this article and check your configuration--> http://weblogic-wonders.com/weblogic/2011/05/25/ssl-configuration-for-weblogic-server/

    Kind regards

    White

Maybe you are looking for

  • Return an erroneous result to compare

    Hi, I tried to compare two values between a number and IP. The probes show that I have the same value, but the equal comparison VI return the False value.

  • Chinese characters in the painting

    I have Windows Vista Home Basic with Service Pack 1 and the regional and language than English (United Kingdom) setting. When I "Save" or "save under" in the painting, the dialog box appears to have Chinese characters in the title. If I exit without

  • When Vista starts, system crashes. No access to F2 or F12

    1. turn on the system 2. first screen displays F2 and F12 to get into the BIOS. 3 Startup proceeds but stop with the following Message stressed: "Delete restoration data and proceed to System Boot Menu" or Message to not highlight: "continue the syst

  • My camera blackBerry smartphones did not when it is connected to my computer

    I had used my computer from time to time to charge my blackberry, this morning, I unplugged and tried to turn it on with no luck. The drums out and I tried again without a bit of luck. Put it on the charger and the battery with a slash symbol showed

  • Cannot synchronize audio streaming!

    I added my audio animation, but I want to first synchronization 'Stream', so I don't have to keep starting from the beginning. However, when I go to properties and click on sync, the only option is 'the event '. The 'start', 'stop' and 'stream' optio