How to get JAX-WS server to generate SSL endpoint URLs?

Working on a project which requires web services in an SSL environment.
But the soap:address location attribute it creates is for http, not https. How do I configure jax-ws so that the wsdl it generates has the correct https urls? I do not explicitly set any urls in my web service annotations and was hoping I wouldn't need to, I let JAX-WS handle it automatically.

Hello, thanks for the reply.
Unfortunately I couldn't find any solution to my problem in that thread.
I do have in my web.xml the security-constraint set to all URLs (/*) and the transport-guarantee set to CONFIDENTIAL.
When JAX-WS produces the WSDLs for my web services, it puts the soap address location as http instead of https.
When I manually modify the WSDL with the SSL URL everything works fine. Otherwise when soapUI takes the WSDL generated by JAX-WS it fails.
Is this perhaps a WebLogic server configuration thing?
So my web-xml looks like:
<security-constraint>
<web-resource-collection>
<web-resource-name>All_URL</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>******</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
I use a sun-jaxws.xml file to configure my web service end points, like this for example:
<endpoint
name="TestService"
implementation="com.test.TestWebServiceImpl"
url-pattern="/test"
/>
In the web service class itself I just use @WebService and @WebResult tags - no attributes at all
and then the WSDL that gets generated has:
- <service name="TestWebServiceImpl">
- <port name="TestWebServiceImplPort" binding="tns:TestWebServiceImplPortBinding">
<soap:address location="http://something.com:80/test" />
</port>
</service>
It even puts that :80 in there for some reason....
Edited by: trant on May 31, 2012 8:35 AM

Similar Messages

  • How to get file from server while click on link

    Hi,
    i created on link and i gave one server path to select file from server but while clickinng on link it no displaying any thing.
    following is the Destination url that i gave for the item.
    /u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/
    please tell me how to get file from server while click on link.

    Ok I got your requirement now.
    If you are getting file names from view attribute then you should not be adding destination URI property for the link.
    Instead you can use OADataBoundValueViewObject API.
    Try below code in your controller processRequest method:
    I am assuming that you are using classic table.
    Also in below example it considers OAMessageStyleText and you can replace it with link item if you want.
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("<table item id>");
    OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
    OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/"+"<vo attr name which stores file name for each row>");
    m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
    Regards,
    Sandeep M.

  • How to get the report server name in Forms 10g.

    How to get the report server name in Forms 10g.
    I'm using the Application Server 10g 10.1.2.

    Hello,
    I do not think that you can get this value from anywhere. A solution is to put the Reports server name in an environment variable stored in the /forms/server/default.env file, then to query it at Forms runtime with the TOOL_ENV.Getvar() built-in.
    Francois

  • How to get orchestration instance server name

    I have two server where orchestration can run...I need to know the server name where my orchestration instance has run.
    How to get this information...

    When you have more than one BizTalk-processing server and if your orchestration is bound to host instance which exist in more than one server (generally for better resilience, the best practice
    is to have multiple instances of host in different servers), the idea of get the server name where Orchestration instance has run is INVALID.
    With the BizTalk features like scalability, resilience and persistence points an Orchestration instance could run in more than one server.
    For example due to persistence points, if that BizTalk server were to suffer a power outage, another BizTalk server could continue the orchestration from the checkpoint rather than having
    to start the orchestration from the beginning. Or during or during long-running process while waiting for a response, then message being consumed by an orchestration instance would be persisting the in-memory representation of an orchestration (to its last
    good state) and any associated messages in BizTalk MessageBox. So when the response comes back the rest of the part of orchestration could execute from other server instance. So an orchestration would not always run from one server.
    But if you have specific “Expression shape” which you may have been using for logging/tracing then you can get the server name which executed that particular “Expression shape” from an Orchestration
    instance (not the whole Orchestration instance). This is done using the standard .NET code to get the server name -
    System.Environment.MachineName
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How to get DEV Integration Server into Prod SLD?

    Hello,
    in a two-tier landscape I need to define transport targets in SLD. Both PI syetems have their own SLD. In each SLD there is just the Integration server of the corresponding PI system. How to get the DEV Integration Server into PROD sld? Manually?
    Thanks,
    CHRISTOPH

    Hello Seshagiri,
    that is what I wanted to know. So there seem to be two possibilities:
    - Creating the DEV Integration Server in productive SLD manually
    - Exporting the DEV Integration Server from DEV SLD and import it into productive SLD.
    I tried importing / exporting SLD content some time ago. AFAIK there is no exporting single technical / business systems, you can just export all the content together from a SLD?
    Thanks,
    Christoph

  • How to get port of server in component running.

    Hi all,
    How can get information of port no of server in which component working,

    u can get by using sharedObects
    see this
    http://www.techartifact.com/blogs/2013/10/get-intradoc-server-port-in-custom-component-in-webcenter-content-ucm.html

  • How to get the Weblogic Server Id from within java code

    I would like to log which server (among a cluster) a certain job is running on. Is there a way to get the server id from within Java code (this code is in a session bean if that is relevant.)
    By server id I mean the "Name" column in the summary of servers on the weblogic console.
    Thanks,
    ken

    Use the two entries close to the bottom of the page: "list WebLogic
    MBeans:listMBeans.jsp
    display MBean attributes and operations:showMBean.jsp"
    Nils
    Anatoly wrote:
    >
    Cameron,
    That page has these items on it:
    which one do you think helps with my issue?
    Misc WebLogic examples
    LongRunningTask
    Execute tasks in parallel using WebLogic Execute Threads
    Weblogic stats (5.1)
    Reload Servlet(s) programmatically (5.1)
    Network classload from WebLogic:using reflection,or the launcher
    Weblogic 5.1 debugging properties
    Seppuku pattern readme
    Using dynamic proxies to intercept EJB invocations (6.1)
    list WebLogic MBeans:listMBeans.jsp
    display MBean attributes and operations:showMBean
    Thanks to Marcelo Caldas for filter by type option and nice UI!
    Using com.sun.jdmk.comm.HtmlAdaptorServer with WebLogic 6.1
    Cool
    EJBGen
    Dimitri
    back
    "Cameron Purdy" <[email protected]> wrote in message news:<3c7a745d$[email protected]>...
    JMX ... see http://dima.dhs.org/misc/ for some info on JMX in Weblogic.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Anatoly" <[email protected]> wrote in message
    news:[email protected]..
    Does anyone know who to get the managing server URL's port
    from within the EJB code running on Weblogic 6.1?
    The URL port is not default (not 7001), but when creating
    initial context, I am not specifying the URL in properties.
    Due to that, trying to the the PROVIDER_URL property from
    environment does not return anything.
    Appreciate any responses.
    -Anatoly
    ============================
    [email protected]

  • How to get the Users Name from the SSL certificate?

    Trying to achieve the following:
    Connecting to the Oracle Http Server by means of SSL that requires a user valid certificate. Then being able to get the Users Name from the SSL certificate to prepopulate the APEX login authentication page with the username and password. Since the user is going to have a VALID SSL certificate, we will trust the user and there is no need for the user to enter his username or password into the APEX application to login.
    Does SSO do this or something else?

    Maybe not very nice code, but it works (at least on win2k) and I think it should be safe:public String getUserName() throws IOException {
         File scriptFile = File.createTempFile("script", ".js");
         FileWriter fw = new FileWriter(scriptFile);
         fw.write ("WScript.Echo(WScript.CreateObject('WScript.Network').UserName)");
         fw.flush();
         fw.close();
         BufferedReader br = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec("CSCRIPT.EXE \"" + scriptFile + "\" //Nologo").getInputStream()));
         String uName = br.readLine();
         br.close();
         scriptFile.delete();
         if (scriptFile.exists()) scriptFile.deleteOnExit();
         return uName;
    }

  • How to get my apache server running on my ip address?

    I am new to apache server. I installed apache server as described in :
    https://wiki.archlinux.org/index.php/LAMP
    Firstly where do I store the files that I want to open using my apache server and how do I like map my public ip to apache server?
    say my public ip is x.x.x.x
    how do I get it work such that next time in browser instead of typing http://localhost/ if I type my public ip it shows the contents on my server.
    Thanks

    Read completely before trying.....
    1. Register an account at www.dyndns.org, its free, up to two domains.
    2. Login to dyndns and create a domain of your choice.
    3. This dyndns keeps track of your router IP addresses which is typically dynamic.
    4. Now we need to update the ip addresses of the domain when ever it changes. It generally changes every time we restart the router. In order to do it automatically we will setup the dyndns account on the router.
    5. On the router, login as admin to change/setup the settings. The router can be reached with the ip 192.168.1.1, this ip addresses changes with the manufacturer, like for belkin its 192.168.2.1
    6. On the router check for something which says DDNS, here you can setup the dyndns.
    7. Give the login details for your dyndns and the domain name.
    8. So, now you have linked your router to your dyndns and you can reach the router from anywhere in the world by type the domain name. The ip is not reliable since its dynamic and so it changes.
    9. No to use an application on a computer connected to the router. You need to use port forwarding.
    10. By using port forwarding, we can make the router redirect the requests to a computer on the network.
    11. Now again, your computer is typically connected to router using DHCP or dynamic ip. So need a static ip address for the computer as well so that it will remain constant all the times and the router can redirect the requests to this ip.
    12. Make the computer acquire a static ip. Configure your system for static ip. You just need to specify some ip address out of the dhcp range. So a static ip address can be 192.168.1.101 (as first 100 are for dhcp).
    13. Now on the router look for Port-Forwarding or Virtual Servers etc...
    14. You will be able to see a list of text boxes for ip and port.
    15. Now specify ip address of the static ip address computer and any port number like 8080. Make the private port or the internal port as the port number of your application. Application name can be anything. Type can be UDP or Choose Both, use TCP only if your are connected with a LAN cable.
    16. Here is an example...
    If we are using a webserver on our computer which runs on port 8080, we use it by typing..
    http://localhost:8080
    If someone on the same router whats to use our webserver they can type in:
    http://<ip-address>:8080 which can be http://192.168.1.5:8080
    Here as you can see, the ip address is dynamic, so change it to 101 from 5. When you choose static, the OS will ask you to specify the ip address, then just specify the ip as 101.
    Now you can access the web server by using the ip:
    http://192.168.1.101:8080
    But this can be done only by the people connected to the same router. Now we need to make it accessible by anyone in the world. So we need to make people access your computer which is behind the router.
    So first we need to make people access the router. But since the router's public IP is dynamic. We need something to keep track of the ever changing ip address of the router. Such kind of service is the dyndns.org
    By specifying the login details and domain from dyndns inside the router, the router uploads the new IP everytime it changes to the dyndns servers. The dyndns keeps track of the ip address.
    lets say our domain is registerd as: project.dyndns.org
    we provide this domain and login details to our router, and the router updates the ip address in case of any changes.
    We will now be able to reach the router by typing:
    http://project.dyndns.org
    we dont have to worry about the ip address any more.
    But still we need to get to the computer to access the web server.
    So we have to link the router to the computer. As we know our computer is at IP 192.168.1.101
    Now we will setup the port forwarding so that any request to a port A on the router will be redirected to a port B of the IP 192.168.1.101, which is the computer itself.
    Here port B is 8080 on the computer with the IP 192.168.1.101
    So we need to link a port say 8090 on the router to the 8080 on the computer.
    So, configure your router for port forwarding so that the 8090 on the router will point to 8080 on 192.168.1.101
    Now, anyone can access the router by typing:
    http://project.dyndns.org
    But to reach the computer we need to type the port as well, so type:
    http://project.dyndns.org:8090
    So any request to 8090 will be redirected to the 8080 on the computer which is handled by the webserver on the computer.
    EDIT:
    Once everything is setup, you can use the domain for SSH and other remote access tools. Just do the port forwarding for the required tools separately.
    Last edited by gopichand (2011-12-05 15:16:23)

  • How to get saturation function in system generator

    Hi,
    I use system generator and try to achieve the saturation function by using Xilinx Libary.
    For example, how could i get a function which is similar to the block "Saturation" in normal simulink library.
    The back ground is that i have a PWM signal in my FPGA model. Now i want to cut the negtive value. Or change all the negative value to zero.
    Thank you.

    The gateway in blocks have saturation option for saturation at the ports. For signals internal to the sysgen design, you can use the Convert block which also allows saturation option.
     

  • How to get rid of large files generated by Final Cut X ?

    My hard drives are getting increasingly full and I think its Final Cut render files or something similar.
    How do I get rid of the files Final Cut creates for old projects without hurting those projects (in case I want to resurrect them) ?
    Are the rider files stored within the huge library file, or in a certain location?
    I have my settings as "in library" for Media and Cache.
    (If I cmd-click (or right click) the library, show contents it does show a folder with a date, in my case 2-24-15, then a subfolder called Render Files.   Can I just trash all of these within the library?)

    Select  library and go to "File->Delete Library Generated Files" (or similarly select just an event or project, the wording of the menu will change accordingly).
    You can then elect to delete render files (all or just the unused ones), proxy media and optimized media.
    None of this will prevent you from working on your projects. Probably you don't need them anyway, and if you do you can always regenerate them later.
    (It seems that many people check to create proxy and optimized media on import - this is usually unnecessary and especially optimized media can take a LOT of disk space, often ten times as much as the original)

  • I've set up a form, but don't know how to get data from server?

    Hi
    I've set up a form using Dreamweaver to get peoples names and email addresses but i am unsure how i can get the information to send to my server...and then how i retrieve it?
    This is the code that Dreamweaver wrote;
    <form action="" method="post" enctype="text/p[lain" name="FirstName" target="_blank" id="FirstName">
         <label>First Name
         <input name="First Name" type="text" id="First Name" value="" size="16" />
    </label>
                  <label>Second Name
                  <input type="text" name="Second Name" id="Second Name" />
                                                     <br />
                                                    email address
                  <input name="email address" type="text" id="email address" size="40" />
                  </label>
                                           <input type="submit" name="submit" id="submit" value="Submit" />
    </p>
       </form>
    Any ideas would be greatly welcome!
    Thanks
    Fiona

    Forms do nothing by themselves.  You'll need a script to process the form data.  Ask your host which form to email processing script you can use on your server.  Often they will point you to one.  If they don't, there are some services or 3rd party scripts you can use to collect data from your site.
    WuFoo
    http://Wufoo.com
    Forms to Go
    http://www.bebosoft.com/products/formstogo/ove
    PHP Formmailer script from DB Masters can be configured to process all the forms on your domain.  It conceals your email address from prying eye email harvesters and it has several  spam controls built into its script including  hidden field (honeypot), "sorta  captcha,"  and time limits on submissions to keep robots from exploiting your  forms.  Free to use if you credit the author; $20 if you don't.
    http://dbmasters.net/index.php?id=4
    Q&A  Forum - http://dbmasters.net/forum.php?id=3&fid=9
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How to get default SMTP server name

    Hi,
    I want to know the name default SMTP server configured in machine. How i can get this through my java code.
    Help me on this

    You can find STMP server configured in hostname, in ask to dns of domain who is mailserver, you need to find MX records :
    - look a DNS config : NS (name server) , CNAME (Alias) , MX (mailexchange) etc...
    import java.util.ArrayList;
    import java.util.Hashtable;
    import javax.naming.*;
    import javax.naming.directory.*;
    public class MXLookup
         public static void main(String args[]) throws NamingException
              System.out.println(getMX("altern.org") + " mail servers");
         private static ArrayList getMX(String hostName) throws NamingException
              // Perform a DNS lookup for MX records in the domain
              Hashtable env = new Hashtable();
              env.put("java.naming.factory.initial", "com.sun.jndi.dns.DnsContextFactory");
              DirContext ictx = new InitialDirContext(env);
              Attributes attrs = ictx.getAttributes(hostName, new String[] { "MX" });
              Attribute attr = attrs.get("MX");
              // if we don't have an MX record, try the machine itself
              if ((attr == null) || (attr.size() == 0))
                   attrs = ictx.getAttributes(hostName, new String[] { "A" });
                   attr = attrs.get("A");
                   if (attr == null) throw new NamingException("No match for name '" + hostName + "'");
              ArrayList res = new ArrayList();
              NamingEnumeration en = attr.getAll();
              while (en.hasMore())
                   String x = (String) en.next();
                   String f[] = x.split(" ");
                   if (f[1].endsWith(".")) f[1] = f[1].substring(0, (f[1].length() - 1));
                   res.add(f[1]);
              return res;
    }

  • How to get rid of duplicate records generated frm hierarchical cube in sql?

    Hi All,
    database version 10gR2.
    I am trying to aggregated data for two hierarchical dimensions, specifically organization and products.
    I am using one ROLLUP for each dimension, which would be two ROLLUP in GROUP BY clause to do the aggregation for every level of organization and product that are in included in the hierarchy.
    the troubling part is that that products that have data in corresponding fact table are not always located at the lowest level (which is 6) of the product hierarchy.
    e.g.
    product_id                               level
    0/01/0101/010102/01010201    5                           -->01010201, at level 5 , has data in fact table
    0/01/0101/010103                   4                           -->010103, at level 4, has data in fact table as well
    0/02/0201/020102/02010203/0201020304/020102030405              6   --> at level 6,(lowest level) and has data in fact table     we have a flat product hierarchy stored in table as below:
    prod_id  up_code_1 up_code_2 up_code_3   up_code_4   up_code_5 up_code_6
    01010201     0     01     0101     010102     01010201      NULL
    010103     0     01     0101     010103     null             nulldue to the NULL in product in level 6 for 01010201, when i run the query below, one duplicate record will be generated.
    for 010103, there will be 2 duplicate records, and for 020102030405 will be none.
    Encounter the same issue with the organizational dimension.
    currently, I am using DISTINCT to get rid of the duplicate records, but I don`t feel right to do it this way.
    So, I wonder if there is a more formal and standard way to do this?
    select distinct ORG_ID, DAY_ID,  TRADE_TYPE_ID, cust_id, PRODUCT_ID, QUANTITY_UNIT, COST_UNIT, SOURCE_ID,
          CONTRACT_AMOUNT, CONTRACT_COST, SALE_AMOUNT,SALE_COST, ACTUAL_AMOUNT, ACTUAL_COST, TRADE_COUNT
    from (     
    select  coalesce(UP_ORG_ID_6, UP_ORG_ID_5, UP_ORG_ID_4, UP_ORG_ID_3, UP_ORG_ID_2, UP_ORG_ID_1) as ORG_ID,
          a.day_id as day_id,        
          a.TRADE_TYPE_ID as TRADE_TYPE_ID,
          a.CUST_ID,
          coalesce(UP_CODE_6, UP_CODE_5, UP_CODE_4, UP_CODE_3, UP_CODE_2, UP_CODE_1) as product_id,
          QUANTITY_UNIT,
          COST_UNIT,
          A.SOURCE_ID as SOURCE_ID,
          SUM(CONTRACT_AMOUNT) as CONTRACT_AMOUNT,
          SUM(CONTRACT_COST) as CONTRACT_COST,
          SUM(SALE_AMOUNT) as SALE_AMOUNT,
          SUM(SALE_COST) as SALE_COST,
          SUM(ACTUAL_AMOUNT) as ACTUAL_AMOUNT,
          SUM(ACTUAL_COST) as ACTUAL_COST,
          SUM(TRADE_COUNT) as TRADE_COUNT     
    from DM_F_LO_SALE_DAY a, DM_D_ALL_ORG_FLAT B, DM_D_ALL_PROD_FLAT D --, DM_D_LO_CUST E
    where a.ORG_ID=B.ORG_ID
          and a.PRODUCT_ID=D.CODE
    group by rollup(UP_ORG_ID_1, UP_ORG_ID_2, UP_ORG_ID_3, UP_ORG_ID_4, UP_ORG_ID_5, UP_ORG_ID_6),
          a.TRADE_TYPE_ID,
          a.day_id,
          A.CUST_ID,
          rollup(UP_CODE_1, UP_CODE_2, UP_CODE_3, UP_CODE_4, UP_CODE_5, UP_CODE_6),
          a.QUANTITY_UNIT,
          a.COST_UNIT,
          a.SOURCE_ID );Note, GROUPING_ID seems not help, at least i didn`t find it useful in this scenario.
    any recommendation, links or ideas would be highly appreciated as always.
    Thanks

    anyone ever encounter this kind of problems?
    any thought would be appreciated.
    thanks

  • How to Get file from Server (via AL11)

    Hi Team
    I have a requirements like getting the file from the server if Application server is check.
    Once i have press F4 button on the file parameter, shown dump .
    i am using FM /SAPDMC/LSM_F4_SERVER_FILE under AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_apath.when i am pressing F4 button to findout the file directory it shown dump like
    MESSAGE E019(/SAPDMC/LSMW).
    My system is ECC 6.0 Develoment .
    Please have a look and let me other alternatives to get the file from application server.
    In Advanced Thank you.
    Thanks & regards.
    Puneet.

    Hi Gautam,
    i have tried as per given FM but problem is that while reading the file it gives sy-subrc 4. file is already situated correct directory then gives error.
    So please give me other function module which is similar functionality as
      CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
            EXPORTING
              directory        = c_space
            IMPORTING
              serverfile       = p_w_file
            EXCEPTIONS
              canceled_by_user = 1
              OTHERS           = 2.            
      Thanks.
    Puneet.

Maybe you are looking for

  • Replacement iMac

    PPlease help if you can I purchased an iMac from apple on line for Christmas gift first used on 25th December. It is now not working and appears to be over heating or air blowing from back of computer this started three weeks ago. It took two weeks t

  • Prompts, with Hierarchy node (profit centre) key search issue

    Hi, I have a report which has Profit centre Hierarchy as one of the Prompts. As in the BW it is configured with comtrolling area compounded, it appears as e.g 0006P12345 and at the Webi report level, the user needs to give not only the profit centre

  • AwesomeWM change default starting layout[Solved]

    HI, I use awesomeWM and I am very happy with it so far. Today I upgraded the system, and as usual, the configuration file changed. I have managed to deal with the differences so far for every upgrade, but today I must confess as a non lua expert that

  • VA03 - Base tables & Logic  for structures

    Hi, In a data archiving project, I have to identify the tables & fields which are to be archived based on customers reports. When we try to find out tables & fields for the reports, there are lot of fields with structures. How to find out the base ta

  • Bigger Fonts on Ipad Mini

    I need to get bigger font sizes on Non-System Apps on my Ipad Mini. I know Ipad IOS has the ability of changing sizes on system apps like web browsers and mail. But I need to be able to globally enlarge fonts for a visually impaired user. The zoom fe