SAAJ adding mime headers for server authrorization

I need to pass login information to server when sending SOAP request. Do I use MimeHeaders to carry username/passwrod pair?
SOAPMessage message = factory.createMessage();
               String authorization = Base64.encode("username:password".getBytes());
               MimeHeaders mimeheaders = message.getMimeHeaders();
               mimeheaders.addHeader("Authorization", "Basic " + authorization);

Ok, problem partially solved. I'm using IBM's web service implementation. Mime headers are not set using addHeaders() or message.getMimeHeaders().setHeader() methods. I try same with pure Axis and it worked fine. I think IBM has bug here.

Similar Messages

  • Axis SOAP Adapter - Setting MIME headers for attachements (Handlers?)

    Hello,
    I need to know if/how it is possible to set the individual MIME headers of the parts making up a multipart/related SOAP message using only standard Axis Handlers e.g. "com.sap.aii.axis.xi.XI30DynamicConfigurationHandler" (as described in the Axis FAQ in Note 1039369).
    I know I can insert transport headers  using "com.sap.aii.axis.xi.XI30DynamicConfigurationHandler", but I can't see a way of setting a MIME header for, say, the first part (i.e. the SOAP part) or the second part (e.g. an attachement). Is this possible without writing your own Axis handler? The Axis FAQ, in "Advanced usage question 31" implies that you can set MIME Headers but only shows an example of setting the transport header.
    I am using the SOAP Adapter to send a message comprising and XML message (in the SOAP body) and a PDF document (as an attachement). The external company this is being sent to requires that we have specific values for the "Content-Id" MIME header in each part of the multipart/related document. This is why I need to understand if we can do this without writing our own Axis Handler.
    Incidentally, I have tried to write a custom Axis Handler but couldn't get PI to find it after deployment. I did this by inserting my JAR file in the "com.sap.aii.adapter.lib.sda" (as per Notes 1039369 / 1138877) and then using JSPM. After deployment, though, when I tried to start the SOAP Adapter I got the following error in the RWB: "failed to initialize: org.apache.axis.ConfigurationException: java.lang.ClassNotFoundException: com.hp.gerryaxis.GerryAxis..." (my class was called "GerryAxis" and I placed this in package "com.hp.gerryaxis"). I'm not an experienced Java programmer (my background is in ABAP), so if anyone can suggest whey I'm getting this error, I'd be very grateful (for example, could my choice of package be causing the problem?).
    Thanks for your help.

    I went ahead and wrote a simple bespoke Axis Handler. By invoking this from the standard "HandlerBean" in the module processor of my communication channel, I was able to overwrite and set new MIME headers in the Attachment Parts of my SOAP Message. I was also able to change the contents of the SOAP Envelope; for example, I found I could easily delete the SOAP Header. However, I've encountered a problem when I try and update the MIME headers of the SOAP Part i.e. the Part of the multipart/related message containing the SOAP Envelope.
    Does anyone know why I can't seem to change the MIME headers of the SOAP Part?
    The Axis API calls I used were as follows:
    (1) To update the MIME headers of attachements in my SOAP message:
    (a) Message = MessageContext.getCurrentMessage()
    (b) Iterator = Message.getAttachments()
    (c) AttachmentPart = Iterator.getNext()
    (d) AttachmentPart.setMimeHeader(name, value)
    This works.
    (2) To update the MIME headers of the SOAP (root) Part:
    (a) Message = MessageContext.getCurrentMessage()
    (b) SOAPPart = Message.getSOAPPart()
    (c) SOAPPart.setMimeHeader(name, value)
    This DOESN'Twork - the MIME headers of the SOAP Part never change.
    (3) To update the SOAP Envelope (delete the SOAP Header):
    (a) Message = MessageContext.getCurrentMessage()
    (b) SOAPPart = Message.getSOAPPart()
    (c) SOAPEnvelope = SOAPPart.getEnvelope()
    (d) SOAPHeader = SOAPEnvelope.getHeader()
    (e) SOAPHeader.removeContents()
    This works.
    I just don't understand why the call to SOAPPart.setMimeHeader() doens't work when I try and insert new MIME headers to the SOAP Part (e.g. "Content-Name") or when I try and change existing MIME headers there (e.g. "Content-ID"). I don't get any errors.
    The code of my handler is:
    @(#)GerryAxis.java       
    Set MIME headers in the SOAP and specified attachment part of a message
    package com.hp.handlers;
    import org.apache.axis.handlers.BasicHandler;
    import org.apache.axis.AxisFault;
    import org.apache.axis.attachments.AttachmentPart;
    import org.apache.axis.Message;
    import org.apache.axis.MessageContext;
    import java.util.Iterator;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.rpc.handler.soap.SOAPMessageContext;
    The <code>GerryAxis</code> handler class sets MIME headers.
    <p>
    This handler accepts the following parameters:
    <ul>
    <li><b>name</b>: Name of header
    <li><b>value</b>: Value for header
    <li><b>attachment</b>: Attachment number
    </ul>
    public class GerryAxis extends BasicHandler {
      /* (non-Javadoc)
    @see org.apache.axis.Handler#invoke(org.apache.axis.MessageContext)
      public void invoke(MessageContext msgContext) throws AxisFault {
        int i=0;
        boolean found = false;
        AttachmentPart ap = null;
        javax.xml.soap.SOAPPart sp = null;
        StringBuffer debug = new StringBuffer();
        try {
          // The MIME header change is controlled from the parameters "name", "value", "attachment" which  are
          // set in the module processor as parameters.
          String name  = (String)getOption("name");
          String value = (String)getOption("value");
          String attachment  = (String)getOption("attachment");
          Message msg = msgContext.getCurrentMessage();
          // Get the SOAP Part (the part holding the SOAP Envelope
          sp = msg.getSOAPPart();
          if (sp == null)
              debug.append("getSOAPPart returned <null> / ");
          // Set a MIME header in the SOAP Part - THIS DOES NOT WORK - WHY?     
          sp.setMimeHeader(name,value);
          // Remove the SOAP Header for the Envelope - this works fine
          SOAPEnvelope se = sp.getEnvelope();
          SOAPHeader sh = se.getHeader();
          sh.removeContents();
          // For debugging - writes some debuggin information to a "DEBUG" MIME header in the first Attachement Part
          debug.append("name = " + name +" / ");
          debug.append("value = " + value +" / ");
          debug.append("attachment = " + attachment + " / ");
          debug.append("getMimeHeader for SOAPPart returned " + sp.getMimeHeader(name)[0] + " / ");
          debug.append("getContentId for SOAPPart returned " + sp.getContentId() + " / ");
          // Update the specified attachement's MIME header - this works fine
          Iterator it = msg.getAttachments();
          while (it.hasNext()) {
            i++;
            ap = (AttachmentPart) it.next();
            if (i == new Integer(attachment).intValue()) {
              found = true;
              break;
          if (found) {
            ap.removeMimeHeader(name);
            ap.setMimeHeader("DEBUG",debug.toString());
            ap.setMimeHeader(name,value);
          msg.saveChanges();
        catch (Exception e) {
          throw AxisFault.makeFault(e);
    Thanks
    Edited by: Gerry Deighan on Oct 3, 2010 10:27 PM

  • Setting mime headers for MessageFactory.createMessage(...)

    Hi-,
    I am trying to read the attached SOAP1.1 w/ attc. message from a plain file with a piece of simple Java code. The 'MessageFactory.createMessage(MimeHeaders headers, java.io.InputStream in)' is not very informative as to what goes in for headers, so I tried all of the below commented headers - no luck, only exceptions. Any explanation as to what I am doing wrong? I am using JWSDP1.5 with J2SE5.0.
    =============JAVA CODE=================
    public class SOAPTest {
    static public void main(String[] args) throws SOAPException, IOException
    MimeHeaders headers = new MimeHeaders();
    //headers.addHeader("Content-Type","multipart/related");
    //headers.addHeader("Content-Location","");
    //headers.addHeader("Content-Type","text/xml; charset=UTF-8");
    //headers.addHeader("Content-Type","text/xml");
    //headers.addHeader("Content-Transfer-Encoding","8Bit");
    //headers.addHeader("Content-Transfer-Encoding","Binary");
    //headers.addHeader("Content-Type","application/pdf");
    MessageFactory factory = MessageFactory.newInstance();
    InputStream sample = new FileInputStream(args[0]);
    SOAPMessage message = factory.createMessage(headers,sample);
    System.out.println("Soap Header\n:"+message.getSOAPHeader());
    sample.close();
    =============SOAP message w/ ATTC.=================
    MIME-Version: 1.0
    Content-Type: multipart/related; boundary=4444741.1049296259836.MIMEBoundary; type="text/xml"
    Content-Description: Acknowledgement - P20030811030857.0504
    --4444741.1049296259836.MIMEBoundary
    Content-Type: text/xml; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Content-Location: Envelope1120
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP:Envelope xmlns="http://www.irs.gov/efile" xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ 2004v1.0/Common/SOAP.xsd http://www.irs.gov/efile 2004v1.0/Common/efileMessage.xsd" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:efile="http://www.irs.gov/efile">
    <SOAP:Header>
    <efile:AcknowledgementHeader transmissionVersion="1.0">
    <AcknowledgementTimestamp>2003-10-20T16:15:33+05:00</AcknowledgementTimestamp>
    </efile:AcknowledgementHeader>
    </SOAP:Header>
    <SOAP:Body>
    <efile:AcknowledgementManifest count="2">
    <Reference contentLocation="TID01"/>
    <Reference contentLocation="Return0001"/>
    </efile:AcknowledgementManifest>
    </SOAP:Body>
    </SOAP:Envelope>
    --4444741.1049296259836.MIMEBoundary
    Content-Type: text/xml; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Content-Location: TID01
    <?xml version="1.0" encoding="UTF-8"?>
    <TransmissionAcknowledgement xmlns="http://www.irs.gov/efile" xmlns:efile="http://www.irs.gov/efile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.irs.gov/efile 2004v1.0/Common/efileMessage.xsd" transmissionVersion="1.0"><TransmissionId>TID01</TransmissionId><TransmissionTimestamp>2003-10-20T15:25:36+05:00</TransmissionTimestamp><TransmissionStatus>A</TransmissionStatus><GTXKey>P20030811030857.0504</GTXKey></TransmissionAcknowledgement>
    --4444741.1049296259836.MIMEBoundary
    Content-Type: text/xml; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Content-Location: Return0001
    <?xml version="1.0" encoding="UTF-8"?>
    <ReturnAcknowledgement xmlns="http://www.irs.gov/efile" xmlns:efile="http://www.irs.gov/efile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.irs.gov/efile 2004v1.0/Common/efileMessage.xsd" returnVersion="2004v1.0" validatingSchemaVersion="2004v1.0"><ReturnId>01000020032881234567</ReturnId><FilerEIN>010000000</FilerEIN><ReturnType>1120</ReturnType><TaxYear>2004</TaxYear><ReturnStatus>A</ReturnStatus><CompletedValidation>yes</CompletedValidation><PaymentIndicator>Payment Request Received</PaymentIndicator></ReturnAcknowledgement>
    --4444741.1049296259836.MIMEBoundary--

    Never mind. I fixed it - it turned out that the first MIME headers are the "protocol specific" stuff. Once I transfered them to the MessageFactory, all worked out well.

  • After adding MIME type in sharepoint server, file click opens a popup for file to open as readonly or edit, How to avoid this popup

    After adding MIME type in sharepoint server,
    File click opens a popup for file to open as readonly or edit, How to avoid this popup
    Popup Details:
    You are about to open --> File Details
    How would you like to open --> ReadOnly, Edit
    OS: Window 7
    Jagadish

    this is likely caused by the library requiring check-out/check-in. For a file to be editable, the file needs to be checked out.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Adding custom http headers for WSRP requests

    Hello,
    I wonder whether it is possible to insert custom http headers for WSRP
    requests?
    To give more details:
    We are going to have portlets exposed via WSRP (hosted on non-weblogic
    server). We need these portlets to work on different portals including
    WebLogic Portal. And we need to have working SSO. There needed at least
    2 SSO options:
    1. Having SiteMinder protected portal. Will WebLogic pass SiteMinder
    headers further to WSRP producer?
    2. Custom SSO tokens to be passed as http headers. Is it possible to
    make weblogic to add custom http headers when calling producer?
    2a. Credential mapping shall be used to get username/password for
    backend application (accessed from producer side), and than these
    username/password shall be passed as http headers when requesting producer.
    Best regards,
    Sviatoslav Sviridov

    Hi,
    About how to use Rest API via node.js, please refer to
    http://stackoverflow.com/questions/5643321/how-to-make-remote-rest-call-inside-node-js-any-curl for more information. Hope this helps.
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem with skin for server side buttons.

    Hi,
    I have a problem with the skin for server side renderd buttons.
    In my CSS file I have :
    .AFButtonStartIcon:alias
    content:url(/skins/images/btns.JPG);
    .AFButtonEndIcon:alias
    content:url(/skins/images/btne.JPG);
    .AFButtonTopBackgroundIcon:alias
    content:url(/skins/images/btntb.JPG);
    .AFButtonBottomBackgroundIcon:alias
    content:url(/skins/images/btnbb.JPG);
    JPG files in project are in dir "public_html/skins/images".
    In WAR file,the JPG files are in "/skins/images" directory.
    Skin configuration is correct because other settings from CSS
    file are functioning fine after deploying.
    But buttons are standard browser buttons and are not taking the images i have used.
    In document provided by Oracle it says:
    (Note: These icons must be specified using either context-image or
    resource-image icons. Text-based icons are not allowed.)
    I am nt able to understand what this means?

    Perhaps this thread will help.
    JSF Skining Button Images
    The doc should say whether or not the width/height is a requirement. But since it doesn't mention it, try adding a width and height.
    - Jeanne

  • Forum label for Server/Client

    Mac OS X Server posts frequently end up in the Mac OS X Client forum. Perhaps a link in the Client forum to the Server category could help, or labelling the Client 10.6, 10.5, 10.4, 10.3 and earlier forums "Client" so people don't mispost anything for Server could help prevent posts for Server ending up in Client?
    Or perhaps a Server category could be put together with the Mac OS X and related software?
    Or perhaps in the Mac OS X support pages, a link to Server category could be added?
    Just some suggestions.

    a brody,
    Except for rare exceptions the forum and category names match the actual product marketing name. The server forums are marked as server and we will happily move the occasional post that shows up in the client section when it occurs.
    -Eric W.

  • Problem in adding Custom Provider for Work Management Service

    Hello,
    I'm facing an issue in adding custom provider for work management service. As you are aware, Work management service is a Provider model and we
    can integrate with other systems by adding custom providers. So with that confidence, i have started writing a connector as mentioned below.
    Step - 1: Added new provider xml in the below path
    "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\CONFIG\WorkManagementService\Providers"
    Provider Name: provider.bizagitasklist
    Provider XML Content: 
    <Provider ProviderKey="DAA52AF3-A147-4086-8C0C-82D2F83A089D" OverrideProviderKey="" Assembly="adidas.TaskProvider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5d6f3e6be60a351b" > </Provider>
    Step -2: Added a class which inherits "IWmaTaskProvider" and implemented the override methods.
    public class BizAgiTaskListProvider : IWmaTaskProvider
    public string LocalizedProviderName
    get { return "BizAgiTaskListProvider"; }
    public string ProviderName
    get { return "BizAgiTaskListProvider"; }
    public Microsoft.Office.Server.WorkManagement.CalloutInfo GetCalloutInfo(IWmaTaskContext context, string taskExternalKey, string locationExternalKey)
    return null;
    public DashboardExtensionInfo GetDashboardExtensionInfo(IWmaBasicProviderContext context)
    return new DashboardExtensionInfo { ClassName = "SP.UI.SharePointExtension" };
    public BulkEditResult HandleBulkEdits(IWmaTaskContext context, BulkEdit updates)
    return null;
    public TaskEditResult HandleTaskEdit(IWmaTaskContext context, BaseAggregatorToProviderTaskUpdate taskUpdate)
    return null;
    public void RefreshSingleTask(IWmaTaskRefreshContext context, string externalKey)
    public void RefreshTasks(IWmaTaskRefreshContext context)
    //context.WriteProviderCustomData(
    Step – 3: Written a class to fetch the tasks from BizAgi System which has method to provide the task data.
    But I’m not able to feed those tasks in the class written in Step – 2 as I’m able to find any method which will take Tasks as Input and I’m not
    sure about the format of tasks.
    I’m able to debug the provider, and the breakpoint hitting in only one method and two properties.
    (LocalizedProviderName, ProviderName, GetDashboardExtensionInfo).
    Can you please help me to proceed further in implementing the above solution?
    Best Regards
    Mahesh

    Hi Mahesh,
    Although the implementation of work management service application is based on the provider model, I reckon the current SP 2013 RTM does not support custom providers. Only SharePoint task lists, Project server and MS Exchange are supported for now.
    Regards,
    Yatin

  • Incorrect MIME type for XML Data Connection POST requests

    It appears that Xcelsius 2008u2019s XML Data Connection logic does not specify the correct MIME type for the data it sends to the server in its POST request.  Using an HTTP debug proxy, I was able to see that Xcelsius sends XML data in the POST, but is setting a content-type of u201Cx-www-form-urlencodedu201D.  According to the W3C spec:
      http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1
    Data sent with a MIME type of u201Cxxu201D should be encoded as key?value pairs, like this:
      key1=val1&key2=val2&Submit=Submit
    So, what Xcelsius is doing is clearly incorrect.  Worse, if your server process is a Java servlet, you may find that the POSTed data will be gobbled up by the servlet container and you wonu2019t be able to read it using a getInputStream(), or getReader() call because itu2019s already been processed by a call to the getParameter() method.
    The correct mime type for POSTing an XML formatted request from Xcelsius should be "text/xml".
    Wayne

    Hi,
    The Error #2032 your getting is due to the Flash player security.
    To remove this this error you need one crossdomain Xml file in the root directory which actually provides a lot more control over who has access to your data from a SWF. The cross domain policy is attached as crossdomain.xml.
    In the XML file, it is used a wildcard (*). This allows a SWF located on any machine to access your data source. You can certainly use an IP address or domain name to restrict access rather to opening it up completely. I always start with the wildcard to make sure my dashboard works, then start restricting access as necessary.
    Here is a whitepaper with everything you need to know about Flash player security:
    http://www.adobe.com/devnet/flashplayer/articles/flash_player_9_security.pdf
    Please let me know if you need any more clarification.
    Regards,
    Sanjay

  • Netsh mbn for server 2012 R2 (Mobile Broadband)

    Hi,
    I cant find the mbn option in the windows 2012R2 server
    is it disabled for server 2012R2? or there is some settings (services - dlls - other dependencies) so the mbn option will show up?below is the output of netsh /? command, plz help?
    I have 2012 R2 essentials running on Dell T320 server,
    C:\Windows\system32>netsh /?
    Usage: netsh [-a AliasFile] [-c Context] [-r RemoteMachine] [-u [DomainName\]Use
    rName] [-p Password | *]
                 [Command | -f ScriptFile]
    The following commands are available:
    Commands in this context:
    ?              - Displays a list of commands.
    add            - Adds a configuration entry to a list of entries.
    advfirewall    - Changes to the `netsh advfirewall' context.
    branchcache    - Changes to the `netsh branchcache' context.
    bridge         - Changes to the `netsh bridge' context.
    delete         - Deletes a configuration entry from a list of entries.
    dhcpclient     - Changes to the `netsh dhcpclient' context.
    dnsclient      - Changes to the `netsh dnsclient' context.
    dump           - Displays a configuration script.
    exec           - Runs a script file.
    firewall       - Changes to the `netsh firewall' context.
    help           - Displays a list of commands.
    http           - Changes to the `netsh http' context.
    interface      - Changes to the `netsh interface' context.
    ipsec          - Changes to the `netsh ipsec' context.
    ipsecdosprotection - Changes to the `netsh ipsecdosprotection' context.
    lan            - Changes to the `netsh lan' context.
    namespace      - Changes to the `netsh namespace' context.
    nap            - Changes to the `netsh nap' context.
    netio          - Changes to the `netsh netio' context.
    ras            - Changes to the `netsh ras' context.
    rpc            - Changes to the `netsh rpc' context.
    set            - Updates configuration settings.
    show           - Displays information.
    trace          - Changes to the `netsh trace' context.
    wcn            - Changes to the `netsh wcn' context.
    wfp            - Changes to the `netsh wfp' context.
    winhttp        - Changes to the `netsh winhttp' context.
    winsock        - Changes to the `netsh winsock' context.
    wlan           - Changes to the `netsh wlan' context.
    The following sub-contexts are available:
     advfirewall branchcache bridge dhcpclient dnsclient firewall http interface ips
    ec ipsecdosprotection lan namespace nap netio ras rpc trace wcn wfp winhttp wins
    ock wlan
    To view help for a command, type the command, followed by a space, and then
     type ?.
    C:\Windows\system32>ver
    Microsoft Windows [Version 6.3.9600]
    C:\Windows\system32>netsh
    netsh>

    Hi
    I made some further research, the "netsh show helper" will show all the dlls that contribute to the netsh subcommands, i run this command on my windows 8 laptop as below
    C:\Users\Sinan1>netsh show helper
    Helper GUID                             DLL Filename  Command
    {02BC1F81-D927-4EC5-8CBC-8DD65E3E38E8}  AUTHFWCFG.DLL  advfirewall
    {FB10CBCA-5430-46CE-B732-079B4E23BE24}  AUTHFWCFG.DLL    consec
    {35342B49-83B4-4FCC-A90D-278533D5BEA2}  AUTHFWCFG.DLL    firewall
    {4BD827F7-1E83-462D-B893-F33A80C5DE1D}  AUTHFWCFG.DLL    mainmode
    {4D0FEFCB-8C3E-4CDE-B39B-325933727297}  AUTHFWCFG.DLL    monitor
    {00770721-44EA-11D5-93BA-00B0D022DD1F}  HNETMON.DLL   bridge
    {6DC31EC5-3583-4901-9E28-37C28113656A}  DHCPCMONITOR.DLL  dhcpclient
    {8A6D23B3-0AF2-4101-BC6E-8114B325FE17}  NETIOHLP.DLL  dnsclient
    {8B3A0D7F-1F30-4402-B753-C4B2C7607C97}  FWCFG.DLL     firewall
    {44F3288B-DBFF-4B31-A86E-633F50D706B3}  NSHHTTP.DLL   http
    {0705ECA1-7AAC-11D2-89DC-006008B0E5B9}  IFMON.DLL     interface
    {1C151866-F35B-4780-8CD2-E1924E9F03E1}  NETIOHLP.DLL    6to4
    {97C192DB-A774-43E6-BE78-1FABD795EEAB}  NETIOHLP.DLL    httpstunnel
    {725588AC-7A11-4220-A121-C92C915E8B73}  NETIOHLP.DLL    ipv4
    {500F32FD-7064-476B-8FD6-2171EA46428F}  NETIOHLP.DLL    ipv6
    {90E1CBE1-01D9-4174-BB4D-EB97F3F6150D}  NETIOHLP.DLL      6to4
    {90E1CBE1-01D9-4174-BB4D-EB97F3F6150D}  NETIOHLP.DLL      isatap
    {1C151866-F35B-4780-8CD2-E1924E9F03E1}  NETIOHLP.DLL    isatap
    {1C151866-F35B-4780-8CD2-E1924E9F03E1}  NETIOHLP.DLL    portproxy
    {78197B47-2BEF-49CA-ACEB-D8816371BAA8}  NETIOHLP.DLL    tcp
    {1C151866-F35B-4780-8CD2-E1924E9F03E1}  NETIOHLP.DLL    teredo
    {F7E0BC27-BA6E-4145-A123-012F1922F3F1}  NSHIPSEC.DLL  ipsec
    {F7E0BC29-BA6E-4145-A123-012F1922F3F1}  NSHIPSEC.DLL    dynamic
    {F7E0BC28-BA6E-4145-A123-012F1922F3F1}  NSHIPSEC.DLL    static
    {1D8240C7-48B9-47CC-9E40-4F7A0A390E71}  DOT3CFG.DLL   lan
    {B572D5F3-E15B-4501-84F2-6626F762AFB1}  WWANCFG.DLL   mbn
    {B341E8BA-13AA-4E08-8CF1-A6F2D8B0C229}  NETIOHLP.DLL  namespace
    {00B399EA-447F-4B19-8393-F9D71D7760F9}  NAPMONTR.DLL  nap
    {3F8A1180-FF5D-4B5B-934C-D08DFFBC9CBC}  NAPMONTR.DLL    client
    {B123BAAA-79E9-49FD-AB2C-E87C56CE4CFF}  NAPMONTR.DLL    hra
    {931852E2-597D-40B9-B927-55FFC81A6104}  NETIOHLP.DLL  netio
    {B7BE4347-E851-4EEC-BC65-B0C0E87B86E3}  P2PNETSH.DLL  p2p
    {E35A9D1F-61E8-4CF5-A46C-0F715A9303B8}  P2PNETSH.DLL    group
    {9AA625FC-7E31-4679-B5B5-DFC67A3510AB}  P2PNETSH.DLL      database
    {FBFC037E-D455-4B8D-80A5-B379002DBCAD}  P2PNETSH.DLL    idmgr
    {9E0D63D6-4644-476B-9DAC-D64F96E01376}  P2PNETSH.DLL    pnrp
    {1DD4935A-E587-4D16-AE27-14E40385AB12}  P2PNETSH.DLL      cloud
    {AD1D76C9-434B-48E0-9D2C-31FA93D9635A}  P2PNETSH.DLL      diagnostics
    {6EC05238-F6A3-4801-967A-5C9D6F6CAC50}  P2PNETSH.DLL      peer
    {0705ECA2-7AAC-11D2-89DC-006008B0E5B9}  RASMONTR.DLL  ras
    {42E3CC21-098C-11D3-8C4D-00104BCA495B}  RASMONTR.DLL    aaaa
    {90FE6CFC-B6A2-463B-AA12-25E615EC3C66}  RASMONTR.DLL    diagnostics
    {13D12A78-D0FB-11D2-9B76-00104BCA495B}  RASMONTR.DLL    ip
    {36B3EF76-94C1-460F-BD6F-DF0178D90EAC}  RASMONTR.DLL    ipv6
    {592852F7-5F6F-470B-9097-C5D33B612975}  RPCNSH.DLL    rpc
    {C07E293F-9531-4426-8E5C-D7EBBA50F693}  RPCNSH.DLL      filter
    {D3E9D893-852F-4E22-B05D-99293065773D}  NETTRACE.DLL  trace
    {C100BECD-D33A-4A4B-BF23-BBEF4663D017}  WCNNETSH.DLL  wcn
    {3BB6DA1D-AC0C-4972-AC05-B22F49DEA9B6}  NSHWFP.DLL    wfp
    {0BFDC146-56A3-4311-A7D5-7D9953F8326E}  WHHELPER.DLL  winhttp
    {B2C0EEF4-CCE5-4F55-934E-ABF60F3DCF56}  WSHELPER.DLL  winsock
    {D424E730-1DB7-4287-8C9B-0774F5AD0576}  WLANCFG.DLL   wlan
    As you see, the mbn command is added from the "WWANCFG.DLL" , there is a command "netsh add helper <dll name>"
    I couldn't find the WWANCFG.dll on my windows server 2012 R2 box, how can I add/download/install/register this dll?
    What are the dependencies of the WWANCFG.dll? are there any other dlls that need to e registered?
    Thanks for your help
    /sinan

  • For server Eagle-PROD-Instance, the Node Manager associated with machine

    I have a wlst script that creates a domain and a managed server. I associate the server with a machine that's attached to a node manager. It creates the managed server fine but when I try and start it I get this error
    For server Eagle-PROD-Instance, the Node Manager associated with machine Eagle-Machine is not reachable.
    All of the servers selected are currently in a state which is incompatible with this operation or are not associated with a running Node Manager or you are not authorized to perform the action requested. No action will be performed.
    The machine is associated with the Node Manager and the NM is running. I can start the managed server from the command line, but not from the admin console
    This is the script, am I missing something?
    Thanks
    name: createManagedServer.py
    description: This script create the weblogic domain, and executes each weblogic queue module
    subfile. it reads a property file : weblogic_wlst.properties for server domain information
    author     : mike reynolds - edifecs 2011
    created     : April 8th 2011
    import sys
    from java.lang import System
    from java.util import Properties
    from java.io import FileInputStream
    from java.io import File
    from weblogic.management.security.authentication import UserEditorMBean
    from weblogic.management.security.authentication import GroupEditorMBean
    from weblogic.management.security.authentication import UserPasswordEditorMBean
    # Loads the contents a properties file into a java.util.Properties
    # configPropFile = "weblogic_wlst.properties"
    def loadPropertiesFromFile(configPropFile):
         configProps = Properties()
         propInputStream = FileInputStream(configPropFile)
         configProps.load(propInputStream)
         propInputStream.close()
         return configProps
    def getProperties():
         importConfigFile = sys.argv[1]
         print importConfigFile
         domainProps = loadPropertiesFromFile(importConfigFile)
         properties = Properties()
         input = FileInputStream(importConfigFile)
         properties.load(input)
         input.close()
         return properties
    def create_users(username, password, description):
    # create admin user
    cmo.getFileRealms()
    try:
    userObject=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider("DefaultAuthenticator")
    userObject.createUser(username,password,description)
    print "Created user " + username + "successfully"
    except:
    print "check to see if user " + username + " exists "
    def add_user_to_group(username):
    print "Adding a user to group ..."
    cmo.getFileRealms()
    try:
    userObject2 = cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider("DefaultAuthenticator")
    userObject2.addMemberToGroup('Administrators',username)
    print "Done adding user " + username
    except:
    print "check to see if user " + username + " is already in group "
    def connect_server(user,pw,url):
              connect(user,pw,url)
    def create_machine():     
    try:
    print 'Creating machine' + machine
    # cd('/')
    # create(machine, 'Machine')
    mach = cmo.createUnixMachine(machine)
    mach.setPostBindUIDEnabled(true)
    mach.setPostBindUID('oracle')
    mach.setPostBindGIDEnabled(true)
    mach.setPostBindGID('oracle')
    mach.getNodeManager().setNMType('ssl')
    except:
         print "machine exists"
    def build_domain():
    ### Read Basic Template
    WL_HOME = "C:/Oracle/Middleware/wlserver_10.3"     
    readTemplate(WL_HOME+"/common/templates/domains/wls.jar")
    template=WL_HOME+"/common/templates/domains/wls.jar"
    cd('Servers/AdminServer')
    set('ListenAddress', adminServerAddress)
    set('ListenPort', int(adminServerPort))
    cd('/')
    cd('/Security/base_domain/User/weblogic')
    cmo.setPassword('w3bl0g1c')
    ### Write Domain
    setOption('OverwriteDomain', 'true')
    print "writing domain " + domainDir + domainName
    writeDomain(domainDir+'/'+domainName)
    closeTemplate()
    create_machine()
    arg = "Arguments=\" -server -Xms256m -Xmx768m -XX:MaxPermSize=256m -da\""
    prps = makePropertiesObject (arg)
    domain = domainDir + domainName
    try:
         #startNodeManager()
    #nmConnect('weblogic', 'w3bl0g1c', host, 5556, 'AdminServer', domain, 'ssl')
    # nmStart('AdminServer')
    startServer('AdminServer', domainName, url, adminUser, adminPassword, domainDir, 'true')
    except:
    print "could not connect to Node Manager"
    def create_server():     
    # get server instance properties
    name = properties.getProperty("serverName")
    domain = properties.getProperty("domainName")
    port = properties.getProperty("listenPort")
    address = properties.getProperty("listenAddress")
    servermb=getMBean("Servers/" + name)
    machine = properties.getProperty("machineName")
    nodePort = properties.getProperty("nodeManagerPort")
    domainDir = properties.getProperty("domainDir")
    if servermb is None:
              startEdit()
              cd('/')
              cmo.createServer(name)
              cd('/Servers/'+ name)
              cmo.setListenAddress(address)
              cmo.setListenPort(int(port))
              cd('/')
              cmo.createMachine(machine)
              cd('/Machines/' + machine + '/NodeManager/' + machine )
              cmo.setNMType('Plain')
              cmo.setListenAddress(address)
              cmo.setListenPort(int(nodePort))
              cmo.setDebugEnabled(false)
              cd('/Servers/' + name)
              cmo.setListenPortEnabled(true)
              cmo.setJavaCompiler('javac')
              cmo.setClientCertProxyEnabled(false)
              cmo.setMachine(getMBean('/Machines/' + machine ))
              cmo.setCluster(None)
              cd('/Servers/' + name + '/SSL/' + name)
              cd('/Servers/' + name + '/ServerDiagnosticConfig/' + name)
              cmo.setWLDFDiagnosticVolume('Low')
              cd('/Servers/' + name)
              cmo.setCluster(None)
              cd('/Servers/' + name + '/SSL/' + name)
              cmo.setEnabled(false)
    ### Executable Script
    ### CreateDomain.py
    ### Define constants
    WL_HOME = "C:/Oracle/Middleware/wlserver_10.3"
    print "Starting the script ..."
    print "Getting properties ... "
    properties = getProperties()
    adminServerAddress = properties.getProperty("adminServerAddress")
    adminServerPort = properties.getProperty("adminServerPort")
    adminUser = properties.getProperty("adminUser")
    adminPassword = properties.getProperty("adminPassword")
    edifecsUser = properties.getProperty("edifecsUser")
    edifecsPassword = properties.getProperty("edifecsPassword")
    host = properties.getProperty("host")
    domainDir = properties.getProperty("domainDir")
    domainName = properties.getProperty("domainName")
    user = properties.getProperty("username")
    pw = properties.getProperty("passwd")
    url = properties.getProperty("adminURL")
    machine = properties.getProperty("machineName")
    print "Building the domain..."
    build_domain()
    print "Connecting to server"     
    connect_server(adminUser, adminPassword, url)
    edit()
    startEdit()
    # create managed server
    # create_machine()
    create_server()
    print "Creating users"
    # starting configuration tree
    serverConfig()
    create_users(adminUser, adminPassword, "Administrator")
    add_user_to_group(adminUser)
    create_users(edifecsUser, edifecsPassword,"Administrator")
    add_user_to_group(edifecsUser)
    # have to restart edit to save config
    edit()
    startEdit()
    # nmKill('AdminServer')
    print "saving configuration"
    try:
         save()
         activate(block="true")
         print "script returns SUCCESS"
         print "admin server is running"
         print "starting server " + name
         startServer(domainName, name ,url,adminUser, adminPassword, domainDir,'true')
    except:
         print "failed to save server"
         dumpStack()

    Actually the cert is coming from your Dev machine but it is sending the Prod cert.
    What cert is used by your admin server ? It should match the host name.
    So your Dev machine is apparently using a copy of the prod cert / keystore rather than using its own DEV cert. It's not clear from your post whether this is the nodemanager using the wrong cert, or the managed server. So both should be checked.
    The managed servers need to be using a cert that matches their host name. If you have a managed server on VM-BEA-DEV, then the cert needs to be CN=VM-BEA-DEV. You can also use a load-balancer CN name in the cert if you have the cluster's HTTP values set to match.
    In your nodemanager.properties, are you explicitly accessing keystores, such as with:
    KeyStores=CustomIdentityAndJavaStandardTrust
    CustomIdentityAlias=some_alias
    CustomIdentityKeyStoreFileName=some_path_to_keystore
    CustomIdentityKeyStorePassPhrase={3DES}...
    CustomIdentityKeyStoreType=jks
    CustomIdentityPrivateKeyPassPhrase={3DES}
    In my multi-machine clusters, I have multiple certificates such as:
    admin machine1:
    has a cert for use by the admin server and NM that matches the host name ( with node manager.properties entries such as the above )
    has a 2nd cert that matches the load-balancer name for the cluster - used by the managed servers
    all other machines:
    has a cert for use by NM that matches the host name ( with node manager.properties entries such as the above )
    has a 2nd cert that matches the load-balancer name for the cluster - used by the managed servers

  • Can changing mime types on server fix QTL in Quicktime X

    Can changing mime types on server fix QTL in Quicktime X
    Is there anything we can do on the server end to make Quicktime X recognize QTL files?
    We found that changing .qtl files to .mov files fixed it, but we have hundreds of .qtl files and it would be much better if we could change the mime type on the server to something that Quicktime X would recognize.
    -Thanks

    OMG! Thank you so much - this has been annoying me for MONTHS! I've been referring other forum posts to this one since it's a solution that actually works!
    TroyG

  • HTTP Headers for SOAP

    Hello,
    I need to set some custom HTTP Header when i send the SOAP message to an endpoint.
    I tried this..but doesn't solve my requirement.
    SOAPMessage soapmsg = messageFactory.createMessage();
    MimeHeaders mime = soapmsg.getMimeHeaders();
    mime.addHeader("SOAPAction", "xxxx");
    mime.addHeader("Sender", "yyy");
    SOAPMessage reply = connection.call(soapmsg, destination);
    Can anyone please guide me how to set HTTP headers for SOAP?
    Thanks,

    Hello,
    I need to set some custom HTTP Header when i send the SOAP message to an endpoint.
    I tried this..but doesn't solve my requirement.
    SOAPMessage soapmsg = messageFactory.createMessage();
    MimeHeaders mime = soapmsg.getMimeHeaders();
    mime.addHeader("SOAPAction", "xxxx");
    mime.addHeader("Sender", "yyy");
    SOAPMessage reply = connection.call(soapmsg, destination);
    Can anyone please guide me how to set HTTP headers for SOAP?
    Thanks,

  • How to set MIME type for JNLP in Windows2000 IIS

    Hi!
    I try to set up my windows 2000 IIS's MIME type for JNLP to test java web start, but I have no idea how to set
    the MIME type. Can anybody help me???
    Best wishes

    In IIS v4 which comes with the Windows NT4 option pack, you right click the web page you are working with, select properties, then go to the HTTP Headers tab. At the bottom there's a button labelled File Types in the MIME Map section.
    After you've clicked that, you can add the two mime types you need;
    Associated Extension MIME Type
    .jar application/x-java-jar-file
    .jnlp application/x-java-jnlp-file
    I'm assuming that it is the same in W2k/IIS5.

  • Adding alternative FQDN for local domain.

    Hi,
    I'm trying to configure RDS for my standalone Windows Server 2012 Essentials and it's almost done.
    (Probablly) last thing i need to do is to change FQDN for my local domain to .com to use RDS externaly.
    So, like i said, i've done dyndns config, added ssl cert, configured RDWeb, RD Gateway, RD License and RD Broker.
    Now, when i'm logging into remote.mydomain.com/RDWeb , i can login with Active Directory credentials, get rdp i try login into server. But i can only try, becuase there is an error about wrong FQDN for server (know and not new error for anyone). So, what I
    had done was changing FQDN for my domain by this powershell script http://gallery.technet.microsoft.com/Change-published-FQDN-for-2a029b80 (if anyone had problems with digitally unsigned script, google for "Set-ExecutionPolicy Unrestricted"), in
    theory, this script changed FQDN, but in reality, i still have same problem trying to connect externally.
    I also read that i should add new DNS Zone for my .com domain and there add (A) record for my subdomain for remote desktop, that points to internal IP adress of my server. When i tried that, it was even worse because i couldn't even open RDWeb site. When that
    dns zone was deleted, everything came back to previous state.
    And now i'm here, out of ideas. Any suggestion what I did wrong? Maybe it was something with this DNS Zone for .com ? Maybe there should be Zone, but not normal one but "stub zone"?
    I would be happy for any suggestion.

    " suspect we may have a basic mis-understanding of what each of us is trying to say.  Let me try again. 
    There are (at least) three ways to reach a LAN computer from the internet with Essentials.  Remote Web Access, direct RDP and VPN.  There are also third party solutions, such as Go To My PC and Log Me In.  The third party type
    usually involve a subscription model with recurring charges, the others may involve a fee for SSL certificates, but they are (usually) much less expensive and do not rely on a third party."
    Yes, i can agree we difinitelly had problem with mis-uderstanding so, sorry for that. I was talking about direct RDP to my server because Anywhere Access is already configured (but remote desktop from there to server opened only Essential Dashboard, that's
    why i left this solution). Also, like i said, i'm aware of risks and i'll
    take responsibility for that.
    "Direct RDP is configured at the router and points the port (3389, but it can be changed) to the IP of the device you want to contact.  then, simply opening the RDP applet on your remote computer and typing in the public IP of the router/firewall
    will automatically connect you to the chosen computer.  This is a very high security risk and should be avoided when ever possible."
    Here is double facapalm for me - when you wrote about 3389 TCP port, i got enlightenment that i didn't do that (because i ealier tried to work on 443 with Anywhere Access and forgot about it), also information i got after tries to connect weren't usefull neither
    - because Windows gave me back information about wrong FQDN, i was strictly focused on that problem, but like we know now, problem was in much different place. When i opened that port, everything started to be like i wanted (i also find out, after testing
    RDP client from remoteapp in web menu that why i'm using this when i want to used direct RDP anyway). So much facepalm.
    Next thing for now will be different port then 3389 and in future, VPN instead of direct RDP.
    Anyway, really, thanks for help!

Maybe you are looking for