Read web.xml from a webservice method

Hi,
How can i read web.xml parameters inside a webservice method

Huh?
What is the use case for that? A web service method may need parameters, but you should not read them from the web.xml file. Instead you can use a method in a bead which reads the parameters and pass them to the web service method.
Timo

Similar Messages

  • Read web.xml from a non-servlet class

    Hi all, I need to read the web.xml file fron a standard class in a web project.
    I know how to do it from a servlet or a jsp page, but is it possible to do from a non-servlet class?
    Thank you,
    Gabriele

    It's a XML file. So best approach would be to use some Java-XML API to parse the XML file into useable nodes. E.g. JAXP, DOM4J, JXPath, etc.

  • Is there any way to prevent web.xml from any change ?

    hi all,
    we have a filter in web.xml. Now we want to prevent it from any change in future. I mean after making a war(EAR) no one can change the filter in web.xml. if he chaged it then he will not be able to re deploy the application.Right now it is in web.xml so one can easily change it and then he can redeploy the application.
    Is there any way to prevent web.xml from any change after making EAR(WAR)?
    One can easily make a change in web.xml and redeploy the application to get the result. Now we want to restrict the web.xml as java class for any change after making EAR(or WAR).
    Could some one help me to do this?
    thanks,
    dinesh

    I think you could use some third party software to lock the folder like FolderLock, just make sure others ppl cannot access your file should be fined.
    This is my stupid solution only,cheers.

  • When did server reads web.xml...

    hi...
    when did server reads web.xml...
    i had problem in Title part of Web Page...
    It is like this...
    Suppose my Application name is "MyApp"..and i put that in web.xml
    as..
    <context-param>
    <param-name>MyApp</param-name>
    <param-value>My Application</param-value>
    </context-param>
    i read this value and put in my title
    ..Initially,when application starts it shows "My Application" in the title..
    if server gets down due to some reason and i get error "page not found" which is obvious..
    then i started my server ...and tried to get my web page using "Refresh"
    Now it gives me First page as required but the title remains same as before "server not found"
    how to over come this problem....

    i dont know about the rest but if this helps your web.xml file is read everytime your servlet is created, and only once. If your servers crashes and you restart it, it is not correct to refresh the page because it may needs session parameters or sth else you created in and you request it from previous pages. since the server goes down all variables, instances and the rest are gone.

  • Is there any way to prevent web.xml from any change like java class?

    hi all,
    Is there any way to prevent web.xml from any change after making EAR(WAR)?
    One can easily make a change in web.xml and redeploy the application to get the result. Now we want to restrict the web.xml as java class for any change after making EAR(or WAR).
    Could some one help me to do this?
    thanks,
    dinesh

    hi,
    Not at development level. We want it after deploying the application on server .
    We want to create it (web.xml) at tomcat startup (or in any other web/app server ) before loading any context.
    Is there any way to run a simple java class(not servlet) on tomcat startup(before initializing the contexts)?
    Message was edited by:
    DP_java
    Message was edited by:
    DP_java

  • How to read an XML from a servlet?

    Hi,
    I'm just starting programming and now I have a problem I can't solve. I hope someone can help me.</p>
    On the client side I have a xml report and a script wich sends to the server the information I've got from the report. In this case, the 'Poliza' value.
    On the server-side I have a servlet. I try to get the parameters (from the URL or from the XML), but I don't have any response on the client side. I'm sure I'm doing something wrong but I can't find the solution for solving it.
    I suppose there are two ways of solving the problem.
    - Make an http connetion and send just the parametes on the URL? Does anyone know how to make it?
    - Reading the XML on the servlet and extract the parameters the script sent. Does anyone know how to read it?
    Thank you in advance
    I attach part of the code.
    CLIENT SIDE
    <report....>
    <field sortid="0" id="Poliza" inputtype="textbox" label="Poliza" rows="1" wide="false" required="false"/>
    </report>
    <script name="ValidacionOnlineValidation1" script="if (0 == 0){
    var szURL="http://URLServer/vonline/vonline?Poliza="+Poliza.value;
    var szUserAgent = "JoP-XML_Posting_v1.0";
    var m_XML;
    /* In the line below, construct a XML-document that contains all the information you need to send to the server*/
    var szXML = "<?xml version=\"1.0\"?><data><objects><object name=\"Poliza\" value=\"123456789\"/></objects></data>";
    /* Create an instance of the MS XML Document Object Model Parser*/
    m_XML= new ActiveXObject("Microsoft.XMLDOM");
    m_XML.validateOnParse=true;                                                                                                         
    var bLoadResult = m_XML.loadXML(szXML);
    if (bLoadResult==true) {
      /*Instance of the transport object, method,...*/
      var m_HttpReq = new ActiveXObject("Pocket.HTTP");
      m_HttpReq.method = "GET";
      m_HttpReq.Headers.create("Content-Type", "text/xml");
      m_HttpReq.Headers.find ("User-Agent").Value = szUserAgent;
      m_HttpReq.timeout = 150000;
      /*Do the actual post of the data*/
      var m_HttpResponse = m_HttpReq.GetResponse(szURL,m_XML.xml);
      if (m_HttpResponse.statusCode==200) {...}
    SERVER SIDE
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {
         String Error="";
         String MSG = "";
         response.setContentType("text/html");
         PrintWriter out1 = response.getWriter();
         Enumeration arrayparametros = request.getParameterNames();
         for (;arrayparametros.hasMoreElements();){
              String parametro = (String)arrayparametros.nextElement();
              String valorparametro = request.getParameter(parametro);
              if (parametro.equals("Poliza")){
                   vonlineLogica logica = new vonlineLogica();
                   LOGS ="on";
                   Respuesta respuesta = logica.procesarSolicitud(request,valorparametro);
                   Error = Respuesta.getError();
                   MSG = Respuesta.getMensaje();
              else{          
                   Error = parametro; MSG = valorparametro;
                   String[] values = request.getParameterValues(parametro);
         out1.println("Result: " + Error + " / " + MSG);
         out1.close();                    
    }

    Thanks by your help Shanu.
    Nevertheless, finally I tryed the easiest way (pass the parameter with 'GET'). Moreover I found why my code wasn't working. It was a fool thing. I though PDA connect throught a proxy, but it wasn't true. Whatever.
    Regards.
    FSG.
    The final script on the xml-report is:
    <report type="Validacion Online" required="false" multiple="false" attachments="false" scriptref="store://this/reportdef/script[@name='ValidacionOnlineValidation1']">
         <field sortid="0" id="Poliza" inputtype="textbox" label="Poliza" rows="1" wide="false" required="false"/>
    </report>
    <script name="ValidacionOnlineValidation1" script="if (0 == 0)
    var szURL="http://URL/vonline/vonline?parameter1=";+Poliza.value;                         
    var m_HttpReq = new ActiveXObject("Pocket.HTTP");                                             m_HttpReq.timeout = 15000;
    var m_HttpResponse = m_HttpReq.GetResponse(szURL,"");
    window.alert(m_HttpResponse.string);
    if (m_HttpResponse.statusCode==200)  {....}
    else {....}

  • When to use Java Web Service from WSDL, Webservice proxy, Web Service DataControl -- JDeveloper 11.1.1.7

    Hi Experts!
    I am having confusion among these 3 services provided in Oracle ADF. When to use and what service needs to be used?
    Once we generate Webservice WSDL. With the WSDL we have 3  options in Jdeveloper to invoke this service.
    1. Java Web Service From WSDL.
    2. Web Service proxy,
    3. Web Service Data Control.
    Can anyone give us some brief description of these 3 services when do we need to use and which service is to be used for which scenario ?
    Please give me your valuable inputs.
    Thanks & Regards,
    Guravaiah Tata.

    Hi,
    Can you share your WSDL.
    You can send it to me at [email protected]
    -Vishal

  • Need FMS Guru! to Read substitution.xml from Server Side Apps

    I know how to read XML file from HTTP using XML.load(url),
    but there are some config node i need to read from substitution.xml
    from conf folder. Seems like XML.load doesn't allow accessing
    Physical path from "D:\Program Files\Adobe\Flash Media Server
    3\conf" - I am new in FMS Development, I dont know how to access
    them from Server side. Help pls.

    Thanks by your help Shanu.
    Nevertheless, finally I tryed the easiest way (pass the parameter with 'GET'). Moreover I found why my code wasn't working. It was a fool thing. I though PDA connect throught a proxy, but it wasn't true. Whatever.
    Regards.
    FSG.
    The final script on the xml-report is:
    <report type="Validacion Online" required="false" multiple="false" attachments="false" scriptref="store://this/reportdef/script[@name='ValidacionOnlineValidation1']">
         <field sortid="0" id="Poliza" inputtype="textbox" label="Poliza" rows="1" wide="false" required="false"/>
    </report>
    <script name="ValidacionOnlineValidation1" script="if (0 == 0)
    var szURL="http://URL/vonline/vonline?parameter1=";+Poliza.value;                         
    var m_HttpReq = new ActiveXObject("Pocket.HTTP");                                             m_HttpReq.timeout = 15000;
    var m_HttpResponse = m_HttpReq.GetResponse(szURL,"");
    window.alert(m_HttpResponse.string);
    if (m_HttpResponse.statusCode==200)  {....}
    else {....}

  • XQUERY / XMLTABLE Syntax to read and XML from a Windows local drive?

    Hi,
    Would someone post an example of the syntax to read a text file containing XML from the local Windows disk drive using xquery/xmltable syntax?
    Thanks,
    Victor

    Does the following help...
    SQL> conn test/test
    Connected.
    SQL> -- The test user has the DBA role...
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    5 rows selected.
    /* The content of the data.xml file.
    <?xml version="1.0" encoding="UTF-8"?>
    <ROOT>
      <ID>0</ID>
      <INFO>
        <INFO_ID>0</INFO_ID>
        <INFO_CONTENT>Text</INFO_CONTENT>
      </INFO>
    </ROOT>
    SQL> drop directory  xmlstore;
    Directory dropped.
    SQL> -- the directory is on a Windows system...
    SQL> create directory xmlstore as 'E:\temp';
    Directory created.
    SQL> create table test
      2  (xmldata xmltype);
    Table created.
    SQL> INSERT into test
      2  VALUES
      3  (XMLTYPE(bfilename('XMLSTORE','data.xml'),NLS_CHARSET_ID('AL32UTF8')));
    1 row created.
    SQL> set long 100000000
    SQL> select * from test;
    XMLDATA
    <?xml version="1.0" encoding="UTF-8"?>
    <ROOT>
      <ID>0</ID>
      <INFO>
        <INFO_ID>0</INFO_ID>
        <INFO_CONTENT>Text</INFO_CONTENT>
      </INFO>
    </ROOT>
    1 row selected.
    SQL> select XMLTYPE('<ROOT><ID>0</ID><INFO><INFO_ID>0</INFO_ID><INFO_CONTENT>Text</INFO_CONTENT></INFO></ROOT>') as "XDATA"
      2  from dual;
    XDATA
    <ROOT><ID>0</ID><INFO><INFO_ID>0</INFO_ID><INFO_CONTENT>Text</INFO_CONTENT></INFO></ROOT>
    1 row selected.
    SQL> select XMLTYPE(bfilename('XMLSTORE','data.xml'),NLS_CHARSET_ID('AL32UTF8')) as "XDATA"
      2  from dual;
    ERROR:
    ORA-21500: internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]
    no rows selected
    SQL> select extract((XMLTYPE(bfilename('XMLSTORE','data.xml'),NLS_CHARSET_ID('AL32UTF8'))),'*') as "XDATA"
      2  from dual;
    XDATA
    <ROOT><ID>0</ID><INFO><INFO_ID>0</INFO_ID><INFO_CONTENT>Text</INFO_CONTENT></INFO></ROOT>
    1 row selected.
    SQL> select xdata
      2  from (XMLTABLE('*'
      3                 PASSING (XMLTYPE(bfilename('XMLSTORE','data.xml'),NLS_CHARSET_ID('AL32UTF8')))
      4                 COLUMNS xdata xmltype PATH '/*'
      5                )
      6       )
      7  ;
    XDATA
    <ROOT><ID>0</ID><INFO><INFO_ID>0</INFO_ID><INFO_CONTENT>Text</INFO_CONTENT></INFO></ROOT>
    1 row selected.

  • Security Bug?? Accessing WEB-INF/web.xml from a URL

    I can access http://localhost/NASApp/myApp/WEB-INF/web.xml (or any other
    files in WEB-INF) from my browser! This can't be right. How do I turn this
    off?
    Hopefully, I can do this in the appserver, but if not, please tell me how to
    do it in the webserver. I am using iWS 4.1 & iWS 6.0 on 2 different
    machines.
    Thanks,
    Matt

    This is known bug previously discussed in the following thread (search
    in the newsgroup mcom.ias):
    !!From - Fri Aug 31 08:12:02 2001
    !!From: [email protected] (David Ogren)
    !!Newsgroups: mcom.ias
    !!Subject: Can someone cross-check this sp3 security concern
    Matt Raible wrote:
    I can access http://localhost/NASApp/myApp/WEB-INF/web.xml (or any other
    files in WEB-INF) from my browser! This can't be right. How do I turn this
    off?
    Hopefully, I can do this in the appserver, but if not, please tell me how to
    do it in the webserver. I am using iWS 4.1 & iWS 6.0 on 2 different
    machines.
    Thanks,
    Matt

  • Operation Timed out retrieving large xml from SharePoint webservice

    When I try to retrive a large list from a SharePoint webservice the operation gets timed out. I had used an unusually large row size to get it back until now but since the list has grown, its timing out again. This is my code, can anybody suggest anything
    to stop it getting timed out please?
    XmlNode ndListItems = listService.GetListItems(ListName,
    null, ndQuery, ndViewFields,
    "47797", ndQueryOptions,
    null);
    using (var writer
    = System.IO.File.CreateText(AMSListName.Replace(" ",
    "") +
    ".xml")) {
                            writer.WriteLine(ndListItems.OuterXml);
    Sharepoint Dummy

    XSQL uses DOM.
    However, do you want to publish the document on Web?
    Why don't you paginate your document for display? If you do need to paginate the document, you can use the &lt;xsql:query skip-rows = "integer"/&gt; to reduce the size of the query result.
    This might help.

  • Error while calling a web service from Entity CRUD methodes

    Hi All,
    I have created an entity service with remote persistency(web service).I have mapped the entity service create methode with the web service create method.Similarly entity service edit method with the web service edit method.But when i am testing this in service browser i am getting a dataaAcess exception.
    And an empty row is being created in the data base. This is the exception sequence.
    com.sap.caf.rt.exception.CAFUpdateException: Data Layer Issues
    at com.hcl.xiprcas.besrv.iprtestservice.iprTestServiceServiceBean.update(iprTestServiceServiceBean.java:177)
    at com.hcl.xiprcas.besrv.iprtestservice.iprTestServiceServiceBean.update(iprTestServiceServiceBean.java:135)
    at com.hcl.xiprcas.besrv.iprtestservice.iprTestServiceServiceLocalLocalObjectImpl0.update(iprTestServiceServiceLocalLocalObjectImpl0.java:478)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.updateDependentObject(ServiceWrapper.java:489)
    at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.createDataContainerBean(ServiceWrapper.java:198)
    at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessBeanImpl.createDataObject(CAFServiceAccessBeanImpl.java:159)
    at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessLocalLocalObjectImpl20.createDataObject(CAFServiceAccessLocalLocalObjectImpl20.java:775)
    at com.sap.caf.rt.ui.cool.generic.AspectServiceAccess.insertAspectRow(AspectServiceAccess.java:215)
    at com.sap.caf.rt.ui.cool.generic.Aspect.insertRows(Aspect.java:1425)
    at com.sap.caf.rt.ui.cool.generic.Aspect.sendChanges(Aspect.java:1543)
    at com.sap.caf.rt.ui.cool.generic.ServiceModule.sendChanges(ServiceModule.java:298)
    at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.TableViewCC.saveData(TableViewCC.java:379)
    at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.wdp.InternalTableViewCC.saveData(InternalTableViewCC.java:208)
    at com.sap.caf.ui.servicebrowser.components.visualizer.views.TableViewCV.onActionSave(TableViewCV.java:394)
    at com.sap.caf.ui.servicebrowser.components.visualizer.views.wdp.InternalTableViewCV.wdInvokeEventHandler(InternalTableViewCV.java:371)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.caf.rt.exception.DataAccessException: Data Layer Issues
    at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.store(RemoteDataAccessService.java:1198)
    at com.hcl.xiprcas.besrv.iprtestservice.iprTestServiceServiceBean.update(iprTestServiceServiceBean.java:172)
    ... 47 more
    Caused by: com.sap.caf.mp.base.exception.EngineException: Data Layer Issues
    at com.sap.caf.mp.core.data.service.DataServiceFactory.executeOperationCommon(DataServiceFactory.java:648)
    at com.sap.caf.mp.core.data.service.DataServiceFactory.executeOperation(DataServiceFactory.java:511)
    at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.executeOperation(RemoteDataAccessService.java:159)
    at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.store(RemoteDataAccessService.java:1180)
    ... 48 more
    Caused by: com.sap.caf.mp.base.exception.EngineException: Data Layer Issues
    at com.sap.caf.mp.core.data.service.manager.wsdl11.WSDL11ServiceManager.executeOperation(WSDL11ServiceManager.java:247)
    at com.sap.caf.mp.core.data.service.DataServiceFactory.executeOperation(DataServiceFactory.java:259)
    at com.sap.caf.mp.core.data.service.DataServiceFactory.executeConsiderSSO(DataServiceFactory.java:1056)
    at com.sap.caf.mp.core.data.service.DataServiceFactory.executeOperationCommon(DataServiceFactory.java:622)
    ... 51 more
    Plz tell me what is the wrong with my approach?.
    Thanks
    Sampath.G

    Hi Swapna,
    from your screenshot it seems that you actually try to call the service in your Data Source Expression field. You should set path to the WSDL file here actually - this could be either URL to SAP or to filesystem, as Anton suggested (this could be faster). Have you created endpoint binding for your service in transaction SOAMANAGER? If yes, then simply download the corresponding WSDL with binding or copy the URL which leads to it. But also test whether you are able to retrieve the WSDL without logging into SAP (close all browser windows and then open a new one otherwise session ID from other browser windows can be reused).
    If you have to give username and password, then setup anonymous alias in transaction SICF, for example.
    Pleas, check my previous post on the same subject here: Re: BCM7 IVR : SOAP request for client identification in CRM .
    Maybe it could help.
    Regards,
    Dawood.

  • Return NamingEnumeration object from the webservice method.

    I am developing a webservice for creating a connection with LDAP and get user first name from LDAP. For this I developed the following webservice in netbeans 6.0 by using Glass Fish V2 server.
    package san.exam;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.naming.*;
    import javax.naming.directory.*;
    import java.util.*;
    @WebService()
    public class LDAP {
    @WebMethod
    public NamingEnumeration getUser(@WebParam(name = "firstName") String firstName) throws Exception {
    // TODO implement operation
    Hashtable env = new Hashtable();
         env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
         env.put(Context.PROVIDER_URL, "ldap://chdsez89674d:389/");
    env.put(Context.SECURITY_AUTHENTICATION,"simple");
         env.put(Context.SECURITY_PRINCIPAL,"cn=root"); // specify the username
    env.put(Context.SECURITY_CREDENTIALS,"vicky123");
         // Create the initial context
         DirContext ctx = new InitialDirContext(env);     
         Attributes matchAttrs = new BasicAttributes(true); // ignore attribute name case
         matchAttrs.put(new BasicAttribute("uid", firstName));
    NamingEnumeration answer = ctx.search("ou=white pages,dc=ibm",matchAttrs);
         ctx.close();
    return answer;
    We are not able deploy this webservice. I don�t know what the problem is. But we are able to make web service where we returned int or string or float and able to use this webservice by making webservice client.
    I think in this case we are trying to return NamingEnumeration object so the problem has come. Has anyone solve this problem or tell me how to return the NamingEnumeration object in the webservice?
    Any pointer regarding this problem is helpful for me.

    If you want to transfer an object through RMI it should be Serializable. Add 'implements Serializable' to your class. That's it
    import java.io.Serializable;
    class TransferObject implements Serializable {
    }

  • Calling java web service from another webservice app

    Hi,
    I am newbie to writing java webservices and also new to weblogic workshop environment. Our company already has an web-service application (not written by me) that basically receives soap messages M1(e.g. with fields A,B and C) and does a function. The format of the message is defined in .xsd file and the application also has .wsdl and .jws file.
    The modification now required is that this existing application will keep listening in port p1, but another copy of the same application will run in port p2. So i have to write a webservice code in weblogic workshop that basically recives message M1 and forward the message to port p1 or p2 depending upon field A=0 or 1.
    Message M1 ---->New Application
    |->forward to application running on port p1 if field A=0 in message M1
    OR
    Message M1 ---->New Application
    |->forward to application running on port p2 if field A=1 in message M1
    Please give me some example code/suggestions that i can start with. i am already starting to get a bit worried because i have to finish it in next 3 days and i don't have much experience with it.

    Hi Gianluca,
    here there is a little sample to implement a web service Proxy class that invokes a service from a Descriptor file.
    http://help.sap.com/saphelp_nw04/helpdata/en/6c/8aac34d2d6e64dbcfc3ffb10bb3e9e/frameset.htm
    Take care with SAP WebAS (Soap Runtime) and Apache Web Server. If the web Service is published on AXIS 1.0, SAP Soap ABAP runtime and AXIS 1.0 Soap Runtime aren't compliant.
    You could migrate the Java application from AXIS 1.0 to AXIS 2.0.
    If you need, don't hesitate to contact me!
    Cheers,
    Antonello

  • 9926 do not read AutoUnattend.xml from USB Key

    I had used a USB Key with an Autounattend.xml answer file from Windows Vista, Windows 7, Windows 8 until Windows 10 version 9979 without no problem.
    9926 do not read at all AutoUnattend.XML.
    I am interestind to know if somobody else had tried to deploy 9926 with an AutoUnattend.xml file ?

    Thank you for your answer.
    Here is my setupact.log and AutoUnattend.xml who work OK with all other versions of Windows 10 and Windows 8.1
    AutoUnattend.xml are not read by en_windows_10_enterprise_technical_preview_9926_x64_dvd_6244735 !
    X:\Windows\Setupact.log:
    2015-02-17 20:08:22, Info                  UI     Determining whether we should run ConX or legacy setup
    2015-02-17 20:08:22, Info                  UI     Running WinPE. Continue to run legacy setup
    2015-02-17 20:08:22, Info                  UI     Determining if we are in WDS/Unattend mode
    2015-02-17 20:08:22, Info                  UI     No need to hide autorun
    2015-02-17 20:08:22, Info       [0x0a000a] UI     Autorun:Autorun core successfully  initialized!!!
    2015-02-17 20:08:22, Info       [0x0a000b] UI     Autorun:Autorun UI successfully  initialized!!!
    2015-02-17 20:08:22, Info                  UI     AppWindow has layout style 0
    2015-02-17 20:08:22, Info                  UI     NavWindow has layout style 0
    2015-02-17 20:08:22, Warning    [0x0a0180] UI     Failed to change the UI language to en-US.
    2015-02-17 20:08:22, Info                  UI     CLocales::v_EnumLocalesProc - DownlevelGetLocaleInfoEx failed for locale ar-EG. Error: [1009]
    2015-02-17 20:08:22, Info                  UI     CLocales::v_EnumLocalesProc - DownlevelGetLocaleInfoEx failed for locale dz-BT. Error: [1009]
    2015-02-17 20:08:22, Info       [0x0a011c] UI     WizardDialogPost::SetActive
    AutoUnattend.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <servicing></servicing>
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>fr-CH</InputLocale>
                <SystemLocale>fr-CH</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>fr-CH</UserLocale>
                <SetupUILanguage>
                    <UILanguage>fr-FR</UILanguage>
                </SetupUILanguage>
            </component>
            <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DiskConfiguration>
                    <WillShowUI>OnError</WillShowUI>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Order>1</Order>
                                <Type>Primary</Type>
                                <Extend>true</Extend>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Active>true</Active>
                                <Format>NTFS</Format>
                                <Label>Local Disk</Label>
                                <Letter>C</Letter>
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <WillWipeDisk>true</WillWipeDisk>
                        <DiskID>0</DiskID>
                    </Disk>
                </DiskConfiguration>
                <UserData>
                    <AcceptEula>true</AcceptEula>
                    <FullName>Student</FullName>
                    <Organization>Cours</Organization>
                    <ProductKey>
                        <WillShowUI>OnError</WillShowUI>
                        <Key></Key>
                    </ProductKey>
                </UserData>
                <UseConfigurationSet>true</UseConfigurationSet>
                <ImageInstall>
                    <OSImage>
                        <InstallFrom>
                            <MetaData wcm:action="add">
                                <Key>/IMAGE/INDEX</Key>
                                <Value>1</Value>
                            </MetaData>
                        </InstallFrom>
                        <InstallToAvailablePartition>true</InstallToAvailablePartition>
                        <WillShowUI>OnError</WillShowUI>
                    </OSImage>
                </ImageInstall>
            </component>
            <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SetupUILanguage>
                    <UILanguage>fr-FR</UILanguage>
                </SetupUILanguage>
                <InputLocale>fr-CH</InputLocale>
                <SystemLocale>fr-CH</SystemLocale>
                <UILanguage>en-US</UILanguage>
                <UserLocale>fr-CH</UserLocale>
            </component>
            <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DiskConfiguration>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Extend>true</Extend>
                                <Order>1</Order>
                                <Type>Primary</Type>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Active>true</Active>
                                <Format>NTFS</Format>
                                <Label>LocalDisk</Label>
                                <Letter>C</Letter>
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <DiskID>0</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                    </Disk>
                </DiskConfiguration>
                <ImageInstall>
                    <OSImage>
                        <InstallToAvailablePartition>true</InstallToAvailablePartition>
                        <WillShowUI>OnError</WillShowUI>
                    </OSImage>
                </ImageInstall>
                <UserData>
                    <ProductKey>
                        <WillShowUI>Always</WillShowUI>
                    </ProductKey>
                    <AcceptEula>true</AcceptEula>
                    <FullName>Student</FullName>
                    <Organization>Cours</Organization>
                </UserData>
                <UseConfigurationSet>true</UseConfigurationSet>
            </component>
        </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Path>c:\windows\regedit.exe /S c:\WinApps\modifreg\modifreg.reg</Path>
                        <Order>1</Order>
                        <Description>ModifReg.reg</Description>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Path>c:\windows\system32\PNPUtil.exe -a c:\Drivers\HP3600\*.inf</Path>
                        <Order>2</Order>
                        <Description>HP3600</Description>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>3</Order>
                        <Path>c:\windows\system32\PNPUtil.exe -a c:\Drivers\INTEL\*.inf</Path>
                        <Description>DriversIntel</Description>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>4</Order>
                        <Description>NVIDIA210Silent</Description>
                        <Path>c:\windows\system32\PNPUtil.exe -a c:\Drivers\GeForce210\*.inf</Path>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>5</Order>
                        <Path>net user Administrateur /active:yes</Path>
                        <Description>net user Administrateur /active:yes</Description>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <AutoLogon>
                    <Password>
                        <Value>UABhACQAJAB3ADAAcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <LogonCount>1</LogonCount>
                    <Username>Administrateur</Username>
                    <Enabled>true</Enabled>
                </AutoLogon>
                <ComputerName>*</ComputerName>
                <CopyProfile>true</CopyProfile>
            </component>
            <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <StartPages>
                    <StartPage wcm:action="add">
                        <StartPageKey>google</StartPageKey>
                        <StartPageUrl>http://www.google.ch</StartPageUrl>
                    </StartPage>
                </StartPages>
                <Home_Page>http://www.google.ch</Home_Page>
                <TrustedSites>http://www.google.ch</TrustedSites>
                <DisableFirstRunWizard>true</DisableFirstRunWizard>
                <AllowedSites>http://www.google.ch;http://www.microsoft.com</AllowedSites>
            </component>
            <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
    xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <FavoritesList>
                    <FavoriteItem wcm:action="add">
                        <FavTitle>Microsoft</FavTitle>
                        <FavURL>http://www.microsoft.com</FavURL>
                        <FavID>1</FavID>
                    </FavoriteItem>
                    <FavoriteItem wcm:action="add">
                        <FavID>2</FavID>
                        <FavURL>http://social.technet.microsoft.com/Forums/fr-FR/home</FavURL>
                        <FavTitle>social.technet.microsoft.com/Forums</FavTitle>
                    </FavoriteItem>
                    <FavoriteItem wcm:action="add">
                        <FavID>3</FavID>
                        <FavURL>http://www.microsoftvirtualacademy.com/training-courses/new-windows-server-2012-r2-jump-start?o=3303#?fbid=SHBa4Q0ku0f</FavURL>
                        <FavTitle>MicrosoftAcademy</FavTitle>
                    </FavoriteItem>
                    <FavoriteItem wcm:action="add">
                        <FavURL>http://borntolearn.mslearn.net/mct/general/w/errorlog/default.aspx#fbid=iAFmlsKo_3S</FavURL>
                        <FavTitle>MSLearnErrorLog</FavTitle>
                        <FavID>5</FavID>
                    </FavoriteItem>
                    <FavoriteItem wcm:action="add">
                        <FavID>4</FavID>
                        <FavURL>http://borntolearn.mslearn.net/mct/windowsserver/w/wiki/default.aspx#fbid=iAFmlsKo_3S</FavURL>
                        <FavTitle>MSLearnWiKi</FavTitle>
                    </FavoriteItem>
                    <FavoriteItem wcm:action="add">
                        <FavID>6</FavID>
                        <FavTitle>Companion-MOC</FavTitle>
                        <FavURL>http://www.microsoft.com/learning/en-us/companion-moc.aspx </FavURL>
                    </FavoriteItem>
                    <FavoriteItem wcm:action="add">
                        <FavURL>http://technet.microsoft.com/en-us/library/dn250019.aspx</FavURL>
                        <FavTitle>NewinWindowsServer2012R2</FavTitle>
                        <FavID>7</FavID>
                    </FavoriteItem>
                </FavoritesList>
                <Home_Page>http://www.google.ch</Home_Page>
                <TrustedSites>http://www.microsoft.com;http://www.bluewin.ch</TrustedSites>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <AutoLogon>
                    <Enabled>true</Enabled>
                    <LogonCount>5</LogonCount>
                    <Username>LocalAdmin</Username>
                    <Password>
                        <Value>UABhACQAJAB3ADAAcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                        <PlainText>false</PlainText>
                    </Password>
                </AutoLogon>
                <Display>
                    <ColorDepth>32</ColorDepth>
                    <DPI>96</DPI>
                    <HorizontalResolution>1024</HorizontalResolution>
                    <RefreshRate>60</RefreshRate>
                    <VerticalResolution>768</VerticalResolution>
                </Display>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>C:\Windows\Setup\Scripts\FirstLogon.vbs</CommandLine>
                        <Description>FirstLogon</Description>
                        <Order>1</Order>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>C:\Windows\SETUP\SCRIPTS\RunOnceE.bat</CommandLine>
                        <Description>RunOnceE.bat</Description>
                        <Order>4</Order>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>C:\Windows\SETUP\SCRIPTS\CopyDel.bat</CommandLine>
                        <Description>CopyDel</Description>
                        <Order>5</Order>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>2</Order>
                        <Description>Office</Description>
                        <CommandLine>C:\Windows\ConfigSetRoot\Winapps\Office\setup.exe</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>3</Order>
                        <CommandLine>PowerShell Set-ExecutionPolicy remotesigned -force</CommandLine>
                        <Description>RemoteSigned</Description>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>6</Order>
                        <CommandLine>net user administrator /active:yes</CommandLine>
                        <Description>net user administrator /active:yes</Description>
                    </SynchronousCommand>
                </FirstLogonCommands>
                <OOBE>
                    <NetworkLocation>Work</NetworkLocation>
                    <HideEULAPage>true</HideEULAPage>
                    <ProtectYourPC>1</ProtectYourPC>
                </OOBE>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>UABhACQAJAB3ADAAcgBkAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>UABhACQAJAB3ADAAcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <Name>LocalAdmin</Name>
                            <Group>Administrators</Group>
                            <DisplayName>LocalAdmin</DisplayName>
                            <Description>LocalAdmin</Description>
                        </LocalAccount>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>UABhACQAJAB3ADAAcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                                <PlainText>false</PlainText>
                            </Password>
                            <DisplayName>Administrator</DisplayName>
                            <Description>Administrator</Description>
                            <Group>Administrators</Group>
                            <Name>Administrator</Name>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <TimeZone>W. Europe Standard Time</TimeZone>
                <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
            </component>
        </settings>
        <settings pass="auditSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <AutoLogon>
                    <Password>
                        <Value>UABhACQAJAB3ADAAcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <Enabled>true</Enabled>
                    <LogonCount>1</LogonCount>
                    <Username>Administrateur</Username>
                </AutoLogon>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="catalog:d:/win81/sources/install_windows 8.1 enterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

Maybe you are looking for

  • Remote Access VPN ASA

                  Hi Guys I have a problem with a Remote Access VPN on a ASA 5510 8.6.2 I have created a IPSEC Remote Access VPN through the wizard this is pretty much a base install on the ASA without much configuration. I can connect to the ASA via the

  • SQL Query in Prompt

    Hi, in "Show" section of my prompt i've following SQL Query: select Country."Company Description" from Prototype where Country."Country Code Company GOAL Code" IN (Select Entity_Relationship.Company from Prototype where Entity_Relationship.Parent IN

  • Help with plotting NMEA latitude and longitude data on a map

    Hello, I am working on developing a GPS application. I have suceeded in retrieving and interpreting the NMEA data to the required longitude and latitude information. can anyone tell me how i can show this information on the required map in a windows

  • Vendor in Multiple Roles

    Dear Experts, As per my client scenerio, They have A vendor Who is a service provider and he provides raw material also. Can I creat or extend in two Vendor account groups (ie DOME & SERV)? Plz help Regards, Mehul

  • RMI-IIOP NoSuchObjectException

    I have looked up an EJB from the Weblogic tree. I am attempting to call on method on this EJB, and the method takes a reference to my client object. I have created the stub for the client using JBuilder's rmic with the options of -v1.2 and -iiop. I a