Failure of the Validation of WSDL (Web Services)

I want to create a Service-Based Web Application in LabVIEW and I'm trying to go through the steps in the tutorial http://zone.ni.com/devzone/cda/tut/p/id/4728.

I tried the following web services, but I still get the same error.

http://coeservice.en.KKU.AC.th:8080/TemperatureConvertor/TemperatureConvertorService? WSDL

http://www.ecubicle.NET/iptocountry.asmx?WSDL

Error:

The WSDL Validation failed.

Validation failed. The URL is not formatted correctly and must be in the following form: http://localhost/test/good.asmx?WSDL

I set a proxy with authentication. Without that, I have another error:

Validation failed.

The possible reasons are:

1. the URL does not exist or the WSDL file is bad.

2. authentication is not correct.

3 proxy information is not correct.

So, it seems that the proxy information is ok. But the web service I want to access is not located on the localhost - I want to access a Web service. Can someone give me a hint? I tried to change some parameters of the LabVIEW Web server. But it did not help anything.

David

Hi David,

I tried second link you gave and worked perfectly (without authentication). One gives me the error that you mentioned.

Are you sure that this URL exists?

Andrea Perin

Application engineer

OR Germany

Tags: NI Software

Similar Questions

  • How to move all of the FORM to a Web service?

    What is the proper way to pass all of the form to a Web service? I can do my work of CFCS with 1 param, who is the FORM, but when I try to use the CFC as a Web service I get a type mismatch error. The must be a way to pass all of the form to a Web service rather than to me, creating a bunch of parameters for each element of the form, I just can't find an example of anywhere. I know I can't be the only person to ask this question.

    ..

  • Basic authentication for the WSDL Web Service for load test

    I am trying to load test a web service; the URL of the WSDL is behind a user name and password using http basic authentication. I can add the URL of the WSDL without problem with the user name and password, but when I read the script, I receive a "401 Unauthorized" errors

    I looked at the preferences > recording > Web Services > the Proxy Configuration, and then refer you to the preferences > recording > HTTP > the Proxy settings. I also looked at similar settings under Preferences > reading.

    I'm running OpenScript (9.1), how to configure it...?

    Thank you very much!

    KM

    Published by: KM 14 Sep, 2011 12:12

    Hello

    You can right click on the section to initialize your script and then:

    Add-> other-> HTTP-> authentication.

    You need 3 parameters:

    A - http://someurl - url that will authenticate any url that contains the http://someurl string for example http://someurl.com/index.html
    A password
    A user

    The following code should be added in your script:

    http.addAuthentication("http://someurl", "username",
                        deobfuscate("5blNah5kX/XuZnepYwInFw=="));
    

    Hope this helps

    Alex

  • Error creating the WSDL web service in 11.1.2.0.0

    Hello

    I just install JDeveloper 11.1.2.0.0. I tried to test a web service created (and tested successfully) in 11.1.1.5.0. The service is deployed on WebLogic Server internal but when I call 'Test Web Service' is the error I get:

    The tester of Web services can be invoked, because the WSDL for the service selected document cannot be read.

    java.lang.IllegalStateException: SSLContextImpl is not initialized.
    at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
    at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
    at oracle.jdevimpl.credential.LazySSLContextSpi.engineGetSocketFactory(LazySSLContextSpi.java:67)
    at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getNewReaderInstance(CachedWSDLReader.java:398)
    to oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$ 1.initialValue(CachedWSDLReader.java:298)
    to oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$ 1.initialValue(CachedWSDLReader.java:294)
    at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
    at java.lang.ThreadLocal.get(ThreadLocal.java:131)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getReaderImpl(CachedWSDLReader.java:308)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:531)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLDirect(CachedWSDLReader.java:471)
    to oracle.jdevimpl.webservices.tcpmonitor.ServiceTester$ 3.run(ServiceTester.java:262)
    at java.lang.Thread.run(Thread.java:662)

    Then I tried to create a new project and the web service in Java from WSDL, but on the second step of the wizard 'Java Web Service WSDL' when I select the WSDL file in the drive and click on 'Next' I get

    java.lang.IllegalStateException: SSLContextImpl is not initialized.

    java.lang.IllegalStateException: SSLContextImpl is not initialized.
    at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
    at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
    at oracle.jdevimpl.credential.LazySSLContextSpi.engineGetSocketFactory(LazySSLContextSpi.java:67)
    at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getNewReaderInstance(CachedWSDLReader.java:398)
    to oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$ 1.initialValue(CachedWSDLReader.java:298)
    to oracle.jdeveloper.webservices.wsdl.CachedWSDLReader$ 1.initialValue(CachedWSDLReader.java:294)
    at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141)
    at java.lang.ThreadLocal.get(ThreadLocal.java:131)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.getReaderImpl(CachedWSDLReader.java:308)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:531)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:484)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:455)
    at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.fetchWSDL(SpecifyWsdlPanel.java:1050)
    to oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$ 1.run(SpecifyWsdlPanel.java:364)
    at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
    at java.lang.Thread.run(Thread.java:662)

    I did the new facility of this new version of JDeveloper in New Middleware House with all the default options and it's the first thing I tried.

    Any tips?

    Thank you
    Bruno

    Bruno,

    You can try the following to me?

    1. Tools-> preferences
    2. the powers-> HTTPS Credential

    Ideally take me a screenshot here.

    3. press the button "default".

    Then restart your tool. It is for me as we take hold of your https from a previous version settings.

    Sorry for the oversight,

    Gerard

    (The developer of the HTTP parser)

  • HOW URL WSDL Web Service: Web Service call in the workflow

    have a 1 step, Web service workflow: call the Web Service.  I wish I could pass a string parameter to the url of the endpoint for the parameter of the URL of the WSDL in the Web service settings dialog box as oppose to the transmission of the actual url (http://machine/some_service.svc?wsdl).

    The reason is that we are moving the workflow between environments DEV, TEST, etc., we do not want to reopen the workflow in each env and update the DEV, TEST endpoint.

    I tried the following without success

    1. create a parameter of type String devURL

    2 by default, set the value on http://machine/some_service.svc?wsdl

    3 Goto service web appeal stage and set the URL of the WSDL to the /process_data/@devURL

    I get the error:

    java.io.FileNotFoundException: \process_data\@devURL

    at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:94)

    at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:103)

    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity (unknown Source)

    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion (unknown Source)

    at org.apache.xerces.parsers.XML11Configuration.parse (unknown Source)

    at org.apache.xerces.parsers.XML11Configuration.parse (unknown Source)

    at org.apache.xerces.parsers.XMLParser.parse (unknown Source)

    at org.apache.xerces.parsers.DOMParser.parse (unknown Source)

    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse (unknown Source)

    at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)

    at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)

    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)

    to org.apache.axis.wsdl.gen.Parser$ WSDLRunnable.run (Parser.java:361)

    at java.lang.Thread.run(Thread.java:595)

    I don't think that the URL of the WSDL parameter can even accept a parameter as the username + password settings.

    Is this possible?  OR if not, how can this be achieved?

    Under the Service Web Options change 'The Option' use 'variable' instead of 'literal '. Then click the Green + and it will create a variable of type WebServiceSettingBean.

    You can use a setValue before the stage of web service to set this variable.

    Jasmine

  • Receiving the EventInfo object for Web Service alerts as null?

    I have set up the web as service:

    Service endpoint interface

    @WebService (targetNamespace = "http://prosight.com/wsdl/7.0/EventSink/")

    @SOAPBinding (style = Style.RPC)

    public interface {OPPMAlertWebService}

    @WebMethod public void itemAddedToPortfolio (PsPortfoliosItemAddedToPortfolioEventInfo eventObj);

    @WebMethod public void categoryConditionMet (PsPortfoliosCategoryConditionMetEventInfo eventObj);

    @WebMethod public void multipleCategoryConditionMet (PsPortfoliosMultipleCategoryConditionsMetEventInfo eventObj);

    @WebMethod public void phaseModified (PsPortfoliosPhaseModifiedEventInfo eventObj);

    @WebMethod public void deliverableModified (PsPortfoliosDeliverableModifiedEventInfo eventObj);

    @WebMethod public void actionItemModified (PsPortfoliosActionItemModifiedEventInfo eventObj);

    }


    Implementation of the service

    @WebService (endpointInterface = "com.ws.OPPMAlertWebService", targetNamespace = "http://prosight.com/wsdl/7.0/EventSink/")

    / public class OPPMAlertWebServiceImpl implements OPPMAlertWebService {}

    Item added to the triggered event portfolio

    @Override

    {} public void itemAddedToPortfolio (PsPortfoliosItemAddedToPortfolioEventInfo eventObj)

    System.out.println ("added \n--Item method called-");

    }

    Category Condtion meeting triggered event

    @Override

    {} public void categoryConditionMet (PsPortfoliosCategoryConditionMetEventInfo eventObj)

    System.out.println ("\n--Category filled Condition method called-");

    }

    Several categories filled Condition triggered event

    @Override

    {} public void multipleCategoryConditionMet (PsPortfoliosMultipleCategoryConditionsMetEventInfo eventObj)

    System.out.println ("\n--Multiple category method called - filled Condition");

    }

    Updated the event triggered the phase

    @Override

    {} public void phaseModified (PsPortfoliosPhaseModifiedEventInfo eventObj)

    System.out.println ("\n--Phase method called - changed");

    }

    Events updated the deliverable triggered

    @Override

    {} public void deliverableModified (PsPortfoliosDeliverableModifiedEventInfo eventObj)

    System.out.println ("\n--Deliverable method called - changed");

    }

    Follow-up activity for change event triggered

    @Override

    {} public void actionItemModified (PsPortfoliosActionItemModifiedEventInfo eventObj)

    System.out.println ("\n--Action element modified method called-");

    }


    Editor of endpoint

    public class OPPMAlertWebServicePublisher {}

    Public Shared Sub main (String [] args) {}

    URL of the Web Service

    " String url = ' http://URL ";

    System.out.println ("\nOPPM Alert Web Service published on" + url);

    Endpoint.Publish (url, new OPPMAlertWebServiceImpl());

    }

    }

    The service works very well all the get methods called on respective alert events here, but whenever I tried to use the EventInfo object he throws NullPointer Exception. I get the EventInfo objects as null in these methods but the audit log shows event information are sent by the Madaboutangling. Y at - it another way to configure this service to receive the EventInfo object or where I have to change to receive the EventInfo object?

    EventInfo object using there is Exception as:

    -Added point method called-

    October 15, 2015 05:30:52 com.sun.xml.internal.ws.server.sei.TieHandler createResp

    onse

    GRAVE: null

    java.lang.NullPointerException

    at com.ws.OPPMAlertWebServiceImpl.itemAddedToPortfolio(OPPMAlertWebServiceImpl.java:25)

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

    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

    at java.lang.reflect.Method.invoke (unknown Source)

    at sun.reflect.misc.Trampoline.invoke (unknown Source)

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

    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

    at java.lang.reflect.Method.invoke (unknown Source)

    at sun.reflect.misc.MethodUtil.invoke (unknown Source)

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

    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

    at java.lang.reflect.Method.invoke (unknown Source)

    at com.sun.xml.internal.ws.api.server.MethodUtil.invoke (unknown Source)

    to com.sun.xml.internal.ws.api.server.InstanceResolver$ 1.invoke(Unknown Source)

    to com.sun.xml.internal.ws.server.InvokerTube$ 2.invoke (unknown Source)

    to com.sun.xml.internal.ws.server.sei.SEIInvokerTube.processRequest (Unknown Source)

    at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun (unknown Source)

    at com.sun.xml.internal.ws.api.pipe.Fiber._doRun (unknown Source)

    at com.sun.xml.internal.ws.api.pipe.Fiber.doRun (unknown Source)

    at com.sun.xml.internal.ws.api.pipe.Fiber.runSync (unknown Source)

    to com.sun.xml.internal.ws.server.WSEndpointImpl$ 2. process (unknown sourcee)

    to com.sun.xml.internal.ws.transport.http.HttpAdapter$ HttpToolkit.handle(unknown Source)

    at com.sun.xml.internal.ws.transport.http.HttpAdapter.handle (unknown SouNCE)

    at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handleExchange(Unknown Source)

    to com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handle (acalled Source)

    to com.sun.net.httpserver.Filter$ Chain.doFilter (unknown Source)

    at sun.net.httpserver.AuthFilter.doFilter (unknown Source)

    to com.sun.net.httpserver.Filter$ Chain.doFilter (unknown Source)

    to sun.net.httpserver.ServerImpl$ Exchange$ LinkHandler.handle (unknown SouNCE)

    to com.sun.net.httpserver.Filter$ Chain.doFilter (unknown Source)

    to sun.net.httpserver.ServerImpl$ Exchange.run (unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    at java.lang.Thread.run (unknown Source)

    I rarely use java for Madaboutangling, but I would check the to see if the psPortfoliosEventInfo object has been generated with the correct namespace.  Here is a c# class generated from a web job alert.

    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.18020")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://prosight.com/type/Portfolios/5.0/psPortfoliosWebServiceAlert")]
    public partial class psPortfoliosItemAddedToPortfolioEventInfo : psPortfoliosEventInfo {
    
    private psADDED_CREATED addedCreatedField;
    
    private psPortfoliosItemInfo addedItemInfoField;
    
    /// 
    public psADDED_CREATED AddedCreated {
    get {
    return this.addedCreatedField;
    }
    set {
    this.addedCreatedField = value;
    }
    }
    
    /// 
    public psPortfoliosItemInfo AddedItemInfo {
    get {
    return this.addedItemInfoField;
    }
    set {
    this.addedItemInfoField = value;
    }
    }
    }
    
    /// 
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(psPortfoliosMultipleCategoryConditionsMetEventInfo))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(psPortfoliosCategoryConditionMetEventInfo))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(psPortfoliosPhaseModifiedEventInfo))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(psPortfoliosActionItemModifiedEventInfo))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(psPortfoliosDeliverableModifiedEventInfo))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(psPortfoliosItemAddedToPortfolioEventInfo))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.18020")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://prosight.com/type/Portfolios/5.0/psPortfoliosWebServiceAlert")]
    public partial class psPortfoliosEventInfo {
    
    private string alertGuidField;
    
    private string alertNameField;
    
    private psPortfoliosItemInfo scopeInfoField;
    
    private System.DateTime eventDateTimeField;
    
    private int ownerIdField;
    
    private string ownerLoginField;
    
    /// 
    public string AlertGuid {
    get {
    return this.alertGuidField;
    }
    set {
    this.alertGuidField = value;
    }
    }
    
    /// 
    public string AlertName {
    get {
    return this.alertNameField;
    }
    set {
    this.alertNameField = value;
    }
    }
    
    /// 
    public psPortfoliosItemInfo ScopeInfo {
    get {
    return this.scopeInfoField;
    }
    set {
    this.scopeInfoField = value;
    }
    }
    
    /// 
    public System.DateTime EventDateTime {
    get {
    return this.eventDateTimeField;
    }
    set {
    this.eventDateTimeField = value;
    }
    }
    
    /// 
    public int OwnerId {
    get {
    return this.ownerIdField;
    }
    set {
    this.ownerIdField = value;
    }
    }
    
    /// 
    public string OwnerLogin {
    get {
    return this.ownerLoginField;
    }
    set {
    this.ownerLoginField = value;
    }
    }
    }
    

    V/r,

    Gene

  • The unauthorized JAX - RPC web service client?

    I try to call a 3rd web service part using a WSDL I can't control.  I was unable to send requests by using a style JAX - WS client and errors have led me to believe that this was due to the WSDL using the RPC/Document model.  Checks showed there is, in fact, the primitive methods of return base schema.  My understanding is that I have to use a JAX - RPC client in this case.

    JDev generated successfully objects, but I got whitelist errors that I have deployed in the cloud.  Basically, any class that referred to java.rmi failed (as documented) - and that's almost all main objects for the customer.

    Is there a way around this problem?

    • Is there another method to generate JAX - RPC clients?
    • The cloud is possible to accept the java.rmi. * classes?
    • Is there a way to force the web services JAX - WS upset WSDL RPC/Document?

    Thank you

    Alex

    I do not think that RPC is supported, see unsupported features and API which States:

    Feature not supported Alternative

    Web services based on JAX - RPC.

    Convert in JAX - WS web services.

    Remote invocations with a transport protocol other than HTTPS (including the HTTP text).

    Does not apply.

    --

    Jani Rautiainen

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • Set the Proxy Server for Web services

    Hello

    I am trying to create a web service via the WSDL Wizard (Apex 4.0.2). We are behind a firewall and connect to the internet through a proxy server. The proxy server requires authentication with a user name and password. Does anyone know how to include the user name and password to set the Proxy Server in the Application definition page or possibly in another location on the page of the Web Service Wizard of manual? I guess the basic definition of the proxy server's [http://]host[:port]]

    Thanks in advance,
    The

    You can add your user name and password to the definition of the proxy server. Then it will look like
    http://:@:

  • Can't access to the following endpoint: (external Web service)

    Hi all

    I'm trying to connect to a web service using WSDL, which is given by the osm, using Oracle SOA.
    I created the emconsole key file and created the user in adminconsole and applied the wss_http_token_client_policy to this webservice. When I try to connect to the Oracle SOA web service, I get exception below:

    < env:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:env >
    < env:Header / >
    < env:Body >
    < env:Fault >
    env:Server < faultcode > < / faultcode >
    oracle.fabric.common.FabricInvocationException < faultstring >: can't access to the following endpoint: http://hostname/osm/wsapi < /faultstring >
    < faultactor / >
    < detail >
    < exception > unable to access to the following endpoint: http://hostname/osm/wsapi < /exception >
    < / details >
    < / env:Fault >
    < / env:Body >
    < / env:Envelope >

    Can someone help me in problem solving.

    Thanks in advance,
    Ajay

    Published by: Ajay8706 on October 18, 2012 23:36

    Try the wss_username_token_client_policy

    Check here: BPEL to invoke the secure with HTTP Basic authentication Web service

  • JSF keeps displaying the old values after the failure of the Validation Phase

    Hi all
    I would like to ask for help to understand a given behavior that JSF indicates that the Phase of Validation fails.
    I use:

    -Tomcat 7.0.2
    -JSF 1.2_12
    -RichFaces 3.3.3

    Description of the problem.
    I wrote a form with input fields 4: an inputText and selectOneMenu 3. There the inputText while the selectOneMenus require no validation.
    Attached to the first selectOneMenu (line 32) is an a4j tag: support, so that, whenever the change event is triggered, the list of items of the second
    and the third (line 44 and 58) selectOneMenu are filled correctly (note that the agent of the inputText is ignored with the ajaxSingle attribute).
    In particular, after the loading of two lists of items, the actionListener requires the value of the second and the third selectOneMenu null.
    This mechanism seems to work fine until I submit the entire form without completing the text entry: as expected, JSF validation fails but if I change the value of
    the first selectOneMenu again (causing a new submission), page guard showing the specified values before JSF validation failed for the second and third
    selectOneMenu (note that the actionListener is still called and the values of the second and the third selectOneMenu are always forced to null).

    Since I'm on a simple PhaseListener, I noticed the following: before JSF validation fails, whenever I change the value of the first selectOneMenu, life JSF
    cycle always calls the get method for the second and the third selectOneMenu during the Render response Phase. In this way, JSF is able to 'see' that
    These values have been set to null in the appeal Phase.
    After the validation failure, JSF stop to call these getters when I change the value of the first selectOneMenu.

    I hope that my explanation was clear enough, thank you very much for your help.

    Kind regards
    Nico

    Web page
    <?xml version='1.0' encoding='UTF-8' ?> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:a4j="http://richfaces.org/a4j"
          xmlns:rich="http://richfaces.org/rich">
    
    <head>
      <title>Prove Rich</title>
    </head>
    
    <body>
    
      <h2>Prove Rich</h2>
      
      <f:view>
      
      <a4j:outputPanel ajaxRendered="true">
        <h:messages style="color:red" />
      </a4j:outputPanel>
      
      <h:form>
      
      <p>
         Input required: <h:inputText value="#{provaProbReplyBean.inputRequired}" required="true" />
      </p>
      
      <p>
           <h:outputText value="Scegli il canale:" />
           <h:selectOneMenu value="#{provaProbReplyBean.canale}">
         
            <f:selectItem itemLabel="--" itemValue="" />
            <f:selectItem itemLabel="Profamily" itemValue="Profamily" />
            <f:selectItem itemLabel="Captive" itemValue="Captive" />
            
            <a4j:support event="onchange" action="#{provaProbReplyBean.caricaProcBanche}"
                                  ajaxSingle="true" reRender="procedure, banche" />
         </h:selectOneMenu>
      </p>
      
      <p>
           <h:outputText value="Scegli la procedura:" />
           <h:selectOneMenu id="procedure" value="#{provaProbReplyBean.procedura}">
         
            <f:selectItem itemLabel="--" itemValue="" />
         
            <f:selectItems value="#{provaProbReplyBean.procedureList}" />
            
            <!-- immediately save the current value -->
            <a4j:support event="onchange" ajaxSingle="true" />
            
         </h:selectOneMenu>
      </p>
      
      <p>
           <h:outputText value="Scegli la banca:" />
           <h:selectOneMenu id="banche" value="#{provaProbReplyBean.banca}">
         
            <f:selectItem itemLabel="--" itemValue="" />
         
            <f:selectItems value="#{provaProbReplyBean.bancheList}" />
            
            <!-- immediately save the current value -->
            <a4j:support event="onchange" ajaxSingle="true" />
            
         </h:selectOneMenu>
      </p>
      
      <p><h:commandButton value="Submit" /></p>
      
      </h:form>
      
      </f:view>
      
    </body>
    
    </html>
    Bean
    public class ProvaProbReply {
    
         private String inputRequired;
    
         private String canale;
         private String procedura;
         private String banca;
         
         private Map<String, List<SelectItem>> canaliProc = new HashMap<String, List<SelectItem>>();
         private Map<String, List<SelectItem>> canaliBanche = new HashMap<String, List<SelectItem>>();
         
         private List<SelectItem> procedureList = new ArrayList<SelectItem>();
         private List<SelectItem> bancheList = new ArrayList<SelectItem>();
         
         public ProvaProbReply() {
         
              List<SelectItem> l = new ArrayList<SelectItem>();
              l.add(new SelectItem("Cessione del quinto"));
              l.add(new SelectItem("Credito al consumo"));
              l.add(new SelectItem("Mutui"));
         
              canaliProc.put("Profamily", l);
              
              l = new ArrayList<SelectItem>();
              l.add(new SelectItem("Credito al consumo"));
              
              canaliProc.put("Captive", l);
              
              l = new ArrayList<SelectItem>();
              
              canaliBanche.put("Profamily", l);
              
              l = new ArrayList<SelectItem>();
              l.add(new SelectItem("BDL"));
              l.add(new SelectItem("BM"));
              l.add(new SelectItem("BPM"));
              l.add(new SelectItem("CRA"));
              
              canaliBanche.put("Captive", l);
         }
         
         public String getInputRequired() {
         
              return inputRequired;
         }
         
         public void setInputRequired(String ir) {
         
              inputRequired = ir;
         }
         
         public String getCanale() {
         
              return canale;
         }
         
         public void setCanale(String c) {
         
              canale = c;
         }
         
         public String getProcedura() {
         
              System.out.println("\ngetProcedura called\n");
              return procedura;
         }
         
         public void setProcedura(String p) {
         
              procedura = p;
         }
         
         public String getBanca() {
         
              System.out.println("\ngetBanca called\n");
              return banca;
         }
         
         public void setBanca(String b) {
         
              banca = b;
         }
         
         public List<SelectItem> getProcedureList() {
         
              return procedureList;
         }
         
         public List<SelectItem> getBancheList() {
         
              return bancheList;
         }
         
         public String caricaProcBanche() {
         
              System.out.println("\nListener called\n");
         
              procedureList.clear();
              bancheList.clear();
              
              if(canale != null && !canale.equals("")) {
              
                   procedureList.addAll(canaliProc.get(canale));
                   bancheList.addAll(canaliBanche.get(canale));
              }
         
              System.out.println("BEFORE setting:\n");
         
              System.out.println("\nProcedura: "+procedura+"\n");
              System.out.println("Banca: "+banca+"\n");
         
              procedura = null;
              banca = null;
         
              System.out.println("\n\n\nAFTER setting:\n");
         
              System.out.println("\nProcedura: "+procedura+"\n");
              System.out.println("Banca: "+banca+"\n");
         
              return "";
         }
    }
    Published by: 869000 on 14.05 giu-28-2011

    I think it has to do with the fact that the UIComponents use the localValue after the validation failure. This prevents values are overwritten when the re-rendering of the page, i.e. the entries keep the value defined by the user.

    The solution is to manipulate the components directly in the AJAX request, when the first drop down menu is changed. Use the binding attribute to place them in your beans and clear the value directly. In this way, that it won't matter that the expression is not evaluated.

  • How to avoid the redéclarant your web service interface?

    Hello

    How can I avoid having to redeclare her your interface wsdl on each mxml page, where it is available? I want to only declare the web service and the operation is both and then just include it in the component where I access/update of data.

    I'm new to flex so this can be obviouse to another but not me. I tried including it in its own mxml file and then using the normal component include the tag to put. I get errors not being able to access the webservice via its ID.

    for example

    Error: Access of undefined property WebService.
    [mxmlc] WebService.getSiteOptions.send ();


    Thank you

    The solution is to place the web definition in a separate file and then use the "include" as feature to define your own namespace in the xml file. You do to include it in the main file of the application.

    for example
    <>
    ' xmlns:MX =' http://www.adobe.com/2006/mxml '
    xmlns:WebService = "webservice.*".
    Width = '100% '.
    Height = "100%".
    title = "Menu".
    creationComplete = "onInit (); » >

    On the main page of the application to include your web service file, do a

    The webservices.mxml file will contain your definitions.


    http://www.Adobe.com/2006/mxml '.
    height = '0 '.
    Visible = "false" >


    Import mx.rpc.soap.mxml.WebService;
    Import mx.rpc.events.FaultEvent;
    Import mx.controls.Alert;

    [Bindable]
    "public var webServiceWSDL:String =' http://127.0.0.1:8080 / jumpingbean/services/AddWebService? wsdl";
    public void onServiceFault(evt:FaultEvent):void
    {
    var err: error = new error (evt.fault.faultCode + "," + evt.fault.faultString);
    parentApplication.showError (err);
    }

    public void onSuccess(evt:Event):void
    {
    Alert.Show (evt. ToString());
    }

    ]]>



    etc.

    In the components of your child you can refer to the component by making a "parentApplication.services.webservice".

  • WSDL (Web Service) has collection arrayCollection as first item

    I use the option import data with a backend .NET web service (WSDL). Starting with the beta version of FlexBuilder 3 I see a record of data type of collection arrayCollection as the first recording in my data returned. The rest of the records is strongly typed data from the web service. What is the expected result? This new behavior is at the forefront of all my web services.

    terrynj,

    Can you please fill out a bug in the Flex bug base to http://bugs.adobe.com/flex/.

    Thank you
    Peter

  • OfficeJet Pro 8625 not connected to the network - no active web services

    Just bought this printer and cannot get the active web services! Keeps telling me printer not connected to the network. Printing and scanning very well. It is connected via USB.

    Hello

    You need to connect the printer to a network in order to enable Web Services, those who will not work with a USB connection, such as those that require an internet connection.

    You can follow the steps below to connect the printer to the network and configuration for the ePrint printer:

    http://support.HP.com/us-en/document/c03721293

    Shlomi

  • Delete the MSE 3.0 (Web Services Enhancement?) before the upgrade from Vista to Windows 7

    Eager to upgrade Vista to Windows 7. Windows 7 compatibility report recommends to uninstall 'Microsoft WSE 3.0' of different searches, I think it's Web Services Enhancemment, a Microsoft Developers application.  (But I also get many results Windows secuity Essentials). In any case, I can't find WSE 3.0 in the normal control panel > uninstall program page.  I can't find it under start > all programs of research with Windows Explorer.  The compatibility report is specific says that I have Version3.0.5305.0. But where is it and how do I uninstall it. Thank you

    Hello

    Thank you for your response.

    Glad to know that you have addressed the issue.

    Your efforts to solve this problem is appreciated. Please do not hesitate to answer, in the case where you are facing in the future other problems with Windows.

  • ADF Mobile Page with the data control of Web Service not showing latest results

    Hello

    I developed a simple mobile application of ADF. It has two functions members and subscriptions. These two pages are part of my Taskflow. On the members page I show all members in a list by using the Web Service method data Find command. In the list item have a listener property Set where I'm storing MemberId in a variable of pageFlowScope for action. On the subscription page, I have a bar graph that gets the data with the help of a Find method in control of data to the Web Service. The find method is based on a view created criteria which has a member ID of input parameter. in the model of ADFBC project. I connected the variable using the AMX page binding. The variable is being levied on the pageFlowScope variable.

    The page displays the chart first to a member. And shows the same graph for the other members. I printed the memberId variable and it shows the value of the respective members. But the cards are not get updated every time I select new Member.

    I use JDeveloper 11.1.2.4.0.

    Any suggestions?

    Thank you

    Mehabub

    Go to the Connections tab, and then click the Green plus sign on the central section - you need to add a 'invokeAction. Give it a name, and then select the iterator that built the table, and that's all you should have to do. The invokeAction fires whenever you visit the page and should update the list.

    Rich,

Maybe you are looking for

  • MBA does not play audio on JBL EXTREME

    Hello I tried to play music on my new JBL EXTREME of blue tooth speaker that proved no problem on my phone I have 6 s +. However, I can't be able to remove from my Mac Book Air! It's 'pairs' very well with the JBL speaker sound! He has played from th

  • Cannot open a new tab manually

    When I open FF, the first (my home page) page opens. However, the prompt "+" for a new tab that is not responding. When I click on a URL in an e-mail message, the new tab opens automatically, but the new (second) tab will not open manually. How can I

  • I can't rename my hard drive.

    When I try and rename the hard drive of my iMac, I get the message: "name... cannot be used. "Try using a name with fewer characters, or no punctuation." I know I'm trying to change my name is in the right format - not too many characters or punctuat

  • Page updated Windows not check my pc for updates... Error number: 0x8DDD0004

    I manually check windows updates regularly. When I went to the windows update page it asked me to install something. Nothing happened much except that I now have an icon on this page, in the bar above the task bar that when I roll my mouse, it says '

  • Opening of the user profile service has not... other ways to fix it without deleting the profile?

    I get the message "user profile service logon failure." I'm not a very excitable person, and I don't know how to do all of the technical things to fix. I would try some if they do not mess up my computer, because I can't do that. I don't want to dele