Flex to the problem of web service communication

Hi, just like the title of State, I have problem during the web service-> Flex communication. I use class WebService ActionScript, to establish a connection with her, but I had a strange behavior. When I try to access the remote web services (particularly: http://109.74.206.146:8080/jax_ws/quarkservice? wsdl ) of my Flex Builder IDE, all is well. Even more, when I spend my folder and click ProjectName.swf project folder, without any server runs on my pc, the file is executed, communication with the web service is impeccable performed and response is retrieved. However, when I try to export a release build and to my Tomcat localhost, or if I try to copy ProjectName.swf to any other location on my drive, since the location of the project, where is stored, I got:

1. [RPC Fault faultString = "Error in security to access the url" faultCode = "Channel.Security.Error" faultDetail = "unable to load WSDL. If there are currently online, please verify the format of the WSDL and URI file (http://109.74.206.146:8080/jax_ws/quarkservice? wsdl) "] "

2A mx.rpc.wsdl::WSDLLoader/faultHandler() [E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\ws dl\WSDLLoader.as:98]

3A flash.events::EventDispatcher/dispatchEventFunction()

4. in the flash.events::EventDispatcher/dispatchEvent()

5 at mx.rpc::AbstractInvoker /() [E:\dev\3.0.x\frameworks\pro jects\rpc\src\mx\rpc\AbstractInvoker.as:168] http://www.adobe.com/2006/flex/mx/internal:dispatchRpcEvent

6 to mx.rpc::AbstractInvoker /() [E:\dev\3.0.x\frameworks\project s\rpc\src\mx\rpc\AbstractInvoker.as:220] http://www.adobe.com/2006/flex/mx/internal:faultHandler

7A mx.rpc::Responder/fault() [E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:49]

8A mx.rpc::AsyncRequest/fault() [E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest .as:103]

9A DirectHTTPMessageResponder / securityErrorHandler ([E:\dev\3.0.x\frameworks\projects\rpc\sr c\mx\messaging\channels\DirectHTTPChannel.as:368])

10. at flash.events::EventDispatcher/dispatchEventFunction()

11. in the flash.events::EventDispatcher/dispatchEvent()

12. to flash.net::URLLoader/redirectEvent()

[Error CPP faultString = "Error in security to access the url" faultCode = "Channel.Security.Error" faultDetail = "unable to load WSDL.

< br / > if there are currently online, please verify the format of the WSDL and URI file (http://109.74.206.146:8080/jax_ws/quarkservice? wsdl) "] to "

MX. RPC.wsdl::WSDLLoader/FaultHandler() [E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\wsd l\WSDLLoader.as:98]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent() to mx.rpc::AbstractInvoker / http://www.Adobe.com/2006/Flex/MX/internal:dispatchRpcEvent ([E:\dev\3.0.x\frameworks\pro jects\rpc\src\mx\rpc\AbstractInvoker.as:168])

to mx.rpc::AbstractInvoker / (http://www.adobe.com/2006/flex/mx/internal::faultHandler) [E:\dev\3.0.x\frameworks\project s\rpc\src\mx\rpc \AbstractInvoker.as:220] )

at mx.rpc::Responder/fault() [E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:49]

at mx.rpc::AsyncRequest/fault() [E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest .as:103]

to DirectHTTPMessageResponder / securityErrorHandler ([E:\dev\3.0.x\frameworks\projects\rpc\sr c\mx\messaging\channels\DirectHTTPChannel.as:368])

at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent()

at flash.net::URLLoader/redirectEvent()

Thus the same file committed since the FlexBuilder or invoked directly from the folder of the project, where it resides, works perfectly. When I try to call from a DIFFERENT location, including deployment on my local Tomcat (or even just my office), I got the above exception. So, anyone know what is the problem? Thank you

There is an implicit approval when you run the application in Flex Builder. Outside of Flex Builder, if the call to the Web service is not mandated by LiveCycle Data Services, Flash Player security will not allow the connection the remote service.

Try to add a crossdomain.xml to the ROOT.war of your respective application server. Something like that...

http://www.Macromedia.com/XML/DTDs/cross-domain-policy.DTD">

Steve

Tags: Adobe LiveCycle

Similar Questions

  • Unable to connect to the server of Web Services

    Hello

    I'm trying to implement my C310a for the first time.

    The printer is connected to my wireless router.

    My computers and iPads can access and print using the printer.

    BUT when I try to use Web tools

    (1) product update,

    (2) activate ePrint or

    (3) enable Web Services

    I get the error message USELESS "Problem connecting to the server of Web Services"

    I am able to connect to the Internet using a web browser, so I don't have an ISP issue.

    I'll put in place the printer at home behind a CGD24N wireless router.

    The implementation for the browser does not use a proxy, so I have no proxy information.

    Is anyone able to help.

    Thank you

    David

    I worked on it.

    I had put the impression of having a static IP address and did not address primary and auxiliary DNS server.

    Once he had these links now.

    Thank you.

  • problem in the use of Web service in my App ADF

    Hi, OTN

    I used this tutorial http://www.oracle.com/technetwork/testcontent/wsdc-085537.html to have a webservice in my ADF Application that returns as weather application.i used Jdeveloper 11 g 11.1.1.3.0. by following this tutorial that I could get the weather Info.but the first time I run my page or the first time I press the button getWeatherBy name after writing to the square there is an error message as follows

    System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: error occurred when get webservices record---> System.Data.SqlClient.SqlException: procedure or function 'GetLatByPlace' expects the parameter '@ZipcodeName', which was not provided. at System.Data.SqlClient.SqlConnection.OnError (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning () at System.Data.SqlClient.TdsParser.Run (RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData () at System.Data.SqlClient.SqlDataReader.get_MetaData () at System.Data.SqlClient.SqlCommand.FinishExecuteReader (SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds (CommandBehavior cmdBehavior, Boolean async, runBehavior RunBehavior, Boolean returnStream) to System.Data.SqlClient.SqlCommand.RunExecuteReader (cmdBehavior CommandBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader (RunBehavior runBehavior, CommandBehavior cmdBehavior, Boolean returnStream, method String) at System.Data.SqlClient.SqlCommand.ExecuteReader (CommandBehavior behavior, method String) at System.Data.SqlClient.SqlCommand.ExecuteReader (CommandBehavior behavior) at WeatherService.WeatherForecast.GetLatLonDataByPlaceName (String PlaceName) - end of the stack trace of inner exception - to WeatherService.WeatherForecast.GetLatLonDataByPlaceName (String PlaceName) at WeatherService.WeatherForecast.GetWeatherByPlaceName (String PlaceName) - end of inner exception stack trac

    When I press ok for this error Message.I can write the name of the place and had Info weather, so how can we stop this error messages that appear on each first time user call the weather page?

    Note: in the tutorial, I noticed that he has explained that there is an Error Message will appear (on the error window click OK.)

    Published by: Miar on 13 October 2010 06:03

    The scenario of the tutorial indeed translates this strange behavior.

    Note, however, that if you create a new page where you first drag the GetWeatherByZipCodeResults as a form, then drag the WeatherData in the form of a table and set the condition of all executables refresh to #{bindings. {ZipCode.inputValue not null}-page behaves as expected and only communicates with the Web service that there is a value in place.

  • Problem during the deployment of web services - bad location of WSDL files inside the jar

    Hi all.
    I create my web service from wsdl.

    First of all I run wsdlc and download archive jar that contains the generated sources - the highest level, it looks like this:
    META-INF
    MyPackage
    WSDLs

    After this, I change my web service class, in particular, that I decided that it will be session bean thus the SessionBean interface.

    Then I run jwsc and download archive final jar - module EJB with WebService
    The highest level, it looks like this:
    META-INF
    MyPackage

    And META-INF contains among other WSDL directory files.

    Everything seems OK, but when I try to deploy this I get an error (which I assume is caused by poorly located inside the ejb module generated WSDL files directory, it should probably be at the root of the jar not in META-INF):
    Please help me to force jwsc to generate the module with good location of WSDL dir files.

    WSDLC INVOCATION:

    < by default of the project = "generate-EventNotifierService-of-wsdl" >

    < taskdef = classname="weblogic.wsee.tools.anttasks.WsdlcTask"/ "wsdlc" name >

    < name target = "generate-EventNotifierService-of-wsdl" >
    "< wsdlc srcWsdl="src/main/wsdl_resources/EventNotifierService.wsdl ' destJwsDir = 'target' destImplDir = 'target' packageName = "mypackage" type = "JAXRPC" >
    < / wsdlc >
    < / target >

    < / project >

    JWSC INVOCATION:

    < by default of the project 'build EventNotifierService wsdl' = >

    < taskdef = classname="weblogic.wsee.tools.anttasks.JwscTask"/ "jwsc" name >

    < name target = "build EventNotifierService wsdl" >
    < jwsc srcdir = ' src/main/java' destdir = 'target' encoding = "UTF-8" >
    < queue = "mypackage/EventNotifierService.java TJ' compiledWsdl =" '... / peg-eai-wsdl/target/EventNotifierService_wsdl.jar ' "
    Type = "JAXRPC" >
    < / TJ >
    < / jwsc >
    < / target >

    < / project >

    ERROR:

    # < 24 March 2009 14:21:35 THIS > < error > < hats > <>< AdminServer > < ExecuteThread [ASSET]: '0' for the queue: '(self-adjusting) weblogic.kernel.Default' > < < WLS Kernel > > <><>< 1237900895770 > < BEA-149205 > < failed to initialize application "port" because of the error weblogic.application.ModuleException: Exception preparation module: EJBModule (EventNotifierService - 1.0 - SNAPSHOT.jar)


    Unable to deploy EJB: EventNotifierService - 1.0 - snapshot.jar EventNotifierService-1.0 - snapshot.jar:

    WSDL "wsdls/EventNotifierService.wsdl" is not in the deployment weblogic.utils.jars.JarFileDelegate@2bb9f2 - /var/peg/domains/wldev4/wldev4_domain/servers/AdminServer/tmp/_WL_user/port/edc553/EventNotifierService-1.0-SNAPSHOT.jar

    .
    weblogic.application.ModuleException: Exception preparation module: EJBModule (EventNotifierService - 1.0 - SNAPSHOT.jar)


    Unable to deploy EJB: EventNotifierService - 1.0 - snapshot.jar EventNotifierService-1.0 - snapshot.jar:

    WSDL "wsdls/EventNotifierService.wsdl" is not in the deployment weblogic.utils.jars.JarFileDelegate@2bb9f2 - /var/peg/domains/wldev4/wldev4_domain/servers/AdminServer/tmp/_WL_user/port/edc553/EventNotifierService-1.0-SNAPSHOT.jar


    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:452)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    to weblogic.application.internal.flow.DeploymentCallbackFlow$ 1.next(DeploymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
    to weblogic.application.internal.BaseDeployment$ 1.next(BaseDeployment.java:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
    at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
    to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doPrepare(DeploymentAdapter.java:39)
    at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
    to weblogic.management.deploy.internal.AppTransition$ 1.transitionApp(AppTransition.java:21)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    weblogic.wsee.ws.WsException: wsdl "wsdls/EventNotifierService.wsdl" is not in the deployment weblogic.utils.jars.JarFileDelegate@2bb9f2 - /var/peg/domains/wldev4/wldev4_domain/servers/AdminServer/tmp/_WL_user/port/edc553/EventNotifierService-1.0-SNAPSHOT.jar
    at weblogic.wsee.deploy.WSEEEjbModule.loadWsdlDefinitions(WSEEEjbModule.java:130)
    at weblogic.wsee.deploy.WSEEModule.loadWsdl(WSEEModule.java:292)
    at weblogic.wsee.deploy.WSEEModule.verifyWsdd(WSEEModule.java:147)
    at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:106)
    at weblogic.wsee.deploy.WsEJBDeployListener.prepare(WsEJBDeployListener.java:36)
    at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1193)
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:425)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    to weblogic.application.internal.flow.DeploymentCallbackFlow$ 1.next(DeploymentCallbackFlow.java:387)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
    to weblogic.application.internal.BaseDeployment$ 1.next(BaseDeployment.java:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
    at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
    to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doPrepare(DeploymentAdapter.java:39)
    at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
    to weblogic.management.deploy.internal.AppTransition$ 1.transitionApp(AppTransition.java:21)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >

    I think that the only solution is to manually update the webservices.xml.

  • Error SSE2 optimization in the deployment of Web Services

    I'm migrating from 2010 to 2011 SP1 web service [because web services 2010 SP1 were buggy]. At first, I could build and deploy the code very well. Now, I get the following deployment error:

    LabVIEW error: (Hex 0xFFFEFA45) LabVIEW Web Services: call to create a VI reference failed. The target does not support SSE2 optimization. Disable SSE2 optimization in the Advanced dialog box of the Web Service Properties page before continuing.

    Based on the online documentation, my hardware can support SSE2 - but no matter, I disabled it anyway. The error message persists. This message means anything this SSE2 optimization is enabled and is not supported? Based on the text of the error, it seems that turning off optimization should probably fix the problem...


  • Basic questions about the PL/SQL web services and data source names

    Hello

    I've successfully generated a web service for a procedure from PL/SQL packaged JDeveloper 11.1.1.3.0).

    The following code was generated in the base class for web services:
     __dataSource = (javax.sql.DataSource) __initCtx.lookup("java:comp/env/jdbc/dbconnectionDS");
    However in the weblogic server, the data source name is jdbc/Gisele for deployment fails in a first time.

    What is the recommended procedure to solve this problem? The obvious solution is to manually change the source - that's what I did and it worked fine. However if I re - generate the web service I won't lose my change. Is there a better way to do it?

    Another question - in the web.xml file that is generated, there is a resource-ref to the data source. I was hoping that change the data source name it would help, but it didn't work. What is - it used to in this context?

    Thank you
    Luis

    I forgot to add, so in case some time later and you want to update the connection to your service details, all you have to do is to add the following entry in your weblogic.xml:
    .

    JDBC/ref_name_from_web. XML
    JDBC/new_jndi_name

    .
    And in this way, you will not have to change any code level to point your web service to another connection.

    Vishal-

  • ORA - 31050:Access refused when trying to activate the native database Web servic

    Hi all

    I try to follow the instructions of OBE on "using Oracle XML DB Web Services for Service-Oriented Architecture" as this url http://st-curriculum.oracle.com/obe/db/11g/r1/prod/datamgmt/xmldb2_b/xmldb2_b.htm#http.

    I would like to enable native database Web service endpoint in Oracle XML DB, and I have already run the script to create Web Service endpoint.

    In any case, I got the following error.

    ORA-31050: access denied
    ORA-06512: at "XDB". DBMS_XDB', line 528
    ORA-06512: at "SYSTEM. ADDSERVLETMAPPING', line 91


    I found that this procedure has been created the diagram of the system, but the problem occurs when I tried to call the ADDSERVLETMAPPING procedure.


    It is a code that I used to activate.

    set pagesize 100
    set linesize 132
    long value 20000
    set echo on
    -conn sys/oracle as a sysdba

    create or replace procedure addServletMapping (model varchar2,
    ServletName varchar2,
    dispname varchar2,
    servletclass varchar2,
    servletschema varchar2,
    language varchar2,
    Description varchar2,
    securityRole xmltype) as
    xmltype xdbconfig.
    Start
    xdbconfig: = dbms_xdb.cfg_get ();
    Select deleteXML
    (
    xdbconfig,
    ' / xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet [servlet-name = "" | "] servletname | '"]'
    )
    in the xdbconfig
    Double;

    If (language = 'C') then
    Select insertChildXML
    (
    xdbconfig,
    "/ xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list."
    "servlet",.
    xmlElement
    (
    "servlet",.
    xmlAttributes (like "xmlns", ' http://xmlns.oracle.com/xdb/xdbconfig.xsd'),
    xmlForest
    (
    ServletName "servlet- name."
    as "servlet-language."
    dispname as "display name."
    Description like "description".
    ),
    securityRole
    )
    )
    in the xdbconfig
    Double;
    on the other
    Select insertChildXML
    (
    xdbconfig,
    "/ xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list."
    "servlet",.
    xmlElement
    (
    "servlet",.
    xmlAttributes (like "xmlns", ' http://xmlns.oracle.com/xdb/xdbconfig.xsd'),
    xmlForest
    (
    ServletName "servlet- name."
    as "servlet-language."
    dispname as "display name."
    Description as "description."
    servletclass "servlet-Class."
    servletschema as "servlet-pattern".
    )
    )
    )
    in the xdbconfig
    Double;
    end if;

    Select deleteXML
    (
    xdbconfig,
    ' / xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-mappings/servlet-mapping [servlet-name = "" | "] servletname | '"]'
    )
    in the xdbconfig
    Double;

    Select insertChildXML
    (
    xdbconfig,
    "/ xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-mappings.
    servlet "mapping."
    XmlType
    (
    ' < servlet-mapping xmlns = "http://xmlns.oracle.com/xdb/xdbconfig.xsd" >
    < servlet-model > ' | model | "< / servlet-model >
    < name servlet - > ' | ServletName | "< / servlet-name >
    < / servlet-mapping > '
    )
    )
    in the xdbconfig
    Double;

    xdb.DBMS_XDB.cfg_update (xdbconfig);

    end;
    /

    Call addServletMapping)
    ' / orawsv / *'.
    "orawsv,"
    'Oracle Web Service request',
    NULL,
    NULL,
    « C »,
    "Web Servlet Services."
    XmlType)
    ' < security-role-ref >
    < Role name > XDB_WEBSERVICES < / role name >
    < Role link > XDB_WEBSERVICES < / role-link >
    < / security-role-ref > '
    )
    )
    /

    Call addServletMapping)
    ' / orawsdl / *'.
    "orawsdl,"
    "Oracle WSDLs.
    NULL,
    NULL,
    « C »,
    "WSDL Servlet.
    XmlType)
    ' < security-role-ref >
    < Role name > XDB_WEBSERVICES < / role name >
    < Role link > XDB_WEBSERVICES < / role-link >
    < / security-role-ref > '
    )
    )
    /

    -grant XDB_WEBSERVICES oe
    grant XDB_WEBSERVICES to TESTDB
    /

    -For 11 g only
    -grant XDB_WEBSERVICES_OVER_HTTP oe
    grant XDB_WEBSERVICES_OVER_HTTP to TESTDB
    /
    -grant XDB_WEBSERVICES_WITH_PUBLIC oe
    grant XDB_WEBSERVICES_WITH_PUBLIC to TESTDB
    /

    -Clean afterwards
    drop procedure addServletMapping
    /





    Kind regards
    Zenoni

    Published by: zenoni on January 28, 2011 10:18

    Add the possible servlet mapping only by a user with the XDBADMIN or DBA roles

  • Problem creating Web Service in 11g of PeopleSoft WSDL

    I created a Web Service in PeopleSoft (8.48 tool version 9.0) of a component based on POSITION_DATA Interface. Trying to create a web service in JDeveloper 11 g to connect to it. Create a new Web Service, Web Service Proxy type. Select the Style of logic Web JAX - RPC. Paste the WSDL (http://xxx.com:11001/PSIGW/PeopleSoftListeningConnector/CI_Z_POSITION_DATA.1.wsdl) address. Any type or style, I get the same error.

    Document: http://xxx.com:11001/PSIGW/PeopleSoftListeningConnector/CI_Z_POSITION_DATA.1.wsdl is not a wsdl file or does not have an element root "definitions" in the namespace "http://schemas.xmlsoap.org/wsdl/" or the "http://www.w3.org/2004/08/wsdl" namespace :
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseDefinition(WSDLReaderImpl.java:723)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:661)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:610)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:333)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:570)
    at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:548)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:372)
    at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:294)
    at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.fetchWSDL(SpecifyWsdlPanel.java:1002)
    at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlAndMappingFilePanel.fetchWSDL(SpecifyWsdlAndMappingFilePanel.java:232)
    to oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$ 1.run(SpecifyWsdlPanel.java:346)
    at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:643)
    at java.lang.Thread.run(Thread.java:619)

    The WSDL looks like this. When I access them directly in Internet Explorer it says that it is active. Anyone have any ideas?
    <? XML version = "1.0"? >
    < wsdl:definitions name = "CI_Z_POSITION_DATA.1" targetNamespace = "http://xmlns.oracle.com/Enterprise/Tools/services/CI_Z_POSITION_DATA.1" xmlns:M264705. V1 = xmlns:M650531 'http://xmlns.oracle.com/Enterprise/Tools/schemas/M264705.V1 '. V1 = xmlns:M970925 'http://xmlns.oracle.com/Enterprise/Tools/schemas/M650531.V1 '. V1 = "http://xmlns.oracle.com/Enterprise/Tools/schemas/M970925.V1" xmlns:plnk = "http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns = "http://xmlns.oracle.com/Enterprise/Tools/services/CI_Z_POSITION_DATA.1" xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/" xmlns:wsp = "http://schemas.xmlsoap.org/ws/2002/12/policy" >
    < wsp:UsagePolicy wsdl: required = "true" / >
    < plnk:partnerLinkType name = "CI_Z_POSITION_DATA_PartnerLinkType" >
    < plnk:role name = "CI_Z_POSITION_DATA_Provider" >
    < name plnk:portType = "tns:CI_Z_POSITION_DATA_PortType" / >
    < / plnk:role >
    < / plnk:partnerLinkType >
    WSDL: < types >
    < xsd: Schema elementFormDefault = "qualified" container = "http://www.w3.org/2001/XMLSchema" >
    < xsd: import namespace = schemaLocation="M970925.V1.xsd"/ "http://xmlns.oracle.com/Enterprise/Tools/schemas/M970925.V1" >
    < xsd: import namespace = schemaLocation="M650531.V1.xsd"/ "http://xmlns.oracle.com/Enterprise/Tools/schemas/M650531.V1" >
    < xsd: import namespace = schemaLocation="M264705.V1.xsd"/ "http://xmlns.oracle.com/Enterprise/Tools/schemas/M264705.V1" >
    < / xsd: Schema >
    < / wsdl: types >
    < name = "M970925. "V1 wsdl: message" >
    < wsdl:documentation > M970925 < / wsdl:documentation >
    < element wsdl: part = 'M970925. V1:Get__CompIntfc__Z_POSITION_DATA"name ="parameter"/ >
    < / wsdl: message >
    < name = "M650531. "V1 wsdl: message" >
    < wsdl:documentation > M650531 < / wsdl:documentation >
    < element wsdl: part = 'M650531. V1:Get__CompIntfc__Z_POSITION_DATAResponse"name ="parameter"/ >
    < / wsdl: message >
    < name = "M264705. "V1 wsdl: message" >
    < wsdl:documentation > M264705 < / wsdl:documentation >
    < element wsdl: part = 'M264705. V1:IBResponse"name ="parameter"/ >
    < / wsdl: message >
    < name of wsdl: portType = "CI_Z_POSITION_DATA_PortType" >
    < name of wsdl: Operation = "CI_Z_POSITION_DATA_G" >
    < wsdl:documentation > CI_Z_POSITION_DATA_G < / wsdl:documentation >
    < message wsdl: Input = 'tns:M970925. V1 "name ="M970925." V1 "/ >"
    < message wsdl: output = 'tns:M650531. V1 "name ="M650531." V1 "/ >"
    < message wsdl: Fault = "tns:M264705. V1 "name ="M264705." V1 "/ >"
    < / wsdl: Operation >
    < / wsdl: portType >
    < name of binding wsdl: Binding = "CI_Z_POSITION_DATA_Binding" type = "tns:CI_Z_POSITION_DATA_PortType" >
    < style: binding soap = transport "document" = "http://schemas.xmlsoap.org/soap/http" / >
    < name of wsdl: Operation = "CI_Z_POSITION_DATA_G" >
    < soap: operation soapAction = "CI_Z_POSITION_DATA_G.V1" style = "document" / > "
    < wsp WSU: ID = "UsernameTokenSecurityPolicyPasswordOptional" xmlns:wsu = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" >
    < ExactlyOne >
    < wsp >
    < wsp:Usage = wsse:SecurityToken "" wsp: required "xmlns:wsse ="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">"
    WSSE: UsernameToken < wsse:TokenType > < / wsse:TokenType >
    < claims >
    < SubjectName MatchType = "wsse: Exact" / >
    < UsePassword wsp:Usage = "wsp: Optional" / >
    < / claims >
    < / wsse:SecurityToken >
    < / wsp >
    < / ExactlyOne >
    < / wsp >
    < name = "M970925. "V1 wsdl: Input" >
    <: body soap encodingStyle = use "http://schemas.xmlsoap.org/soap/encoding/" = "literal" / >
    < / wsdl: Input >
    < name = "M650531. "V1 wsdl: output" >
    <: body soap encodingStyle = use "http://schemas.xmlsoap.org/soap/encoding/" = "literal" / >
    < / wsdl: output >
    < wsdl: fault name = "M264705. V1 ">
    <: error soap encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/" name = 'M264705. V1 ' use = "literal" / > ".
    < / wsdl: Fault >
    < / wsdl: Operation >
    < / wsdl: Binding >
    < wsdl:service name = "CI_Z_POSITION_DATA" >
    < wsdl:documentation > CI_Z_POSITION_DATA < / wsdl:documentation >
    < binding wsdl: port = "tns:CI_Z_POSITION_DATA_Binding" name = "CI_Z_POSITION_DATA_Port" >
    < soap: address location = "http://ORACLE_ENDPOINT" / >
    < / wsdl: port >
    < / wsdl:service >
    < / wsdl:definitions >

    Hello

    You are looking at your URL of the WSDL document, the IB PeopleSoft should contain 'Service' in its name, it seems you are using rather your IB Gateway URL.

    That's what you posted:

    -http://xxx.com:11001/PSIGW/PeopleSoftListeningConnector/CI_Z_POSITION_DATA.1.wsdl

    Try the following, and this should solve your problem.

    -http://xxx.com:11001/PSIGW/PeopleSoftServiceListeningConnector/CI_Z_POSITION_DATA.1.wsdl

    Kind regards
    Dan

  • The use of Web services in BPM 12 c

    Hi all

    I seem to be a beginner with this discussion, but I was able to do in Jdev 11.1.1.7 and now with the 12 c I don't know how to do.

    I develop a process BPM SOA 12 c and I need to call a web service to exernal.

    In version 11 of composite, I clicked on right click and then insert and WebService.

    Now in version 12 c after a right-click in the list is not present.

    See the attachmement for a better understanding

    Could someone give me some ideas how to do it?

    Concerning

    In 12 c SOA, webservice name change just for SOAP.

    Webservice call just drag / move the SOAP component.

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

    Hello

    I write simple WebService Java Client to a simple wsdl.

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

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

    < env:Header >

    < ns1:Security >

    < ns1:UsernameToken >

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

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

    < / ns1:UsernameToken >

    < / ns1:Security >

    < / env:Header >

    < env:Body >

    < ns2:PersistCDADocumentRequest >

    < ns2:Document / >

    < / ns2:PersistCDADocumentRequest >

    < / env:Body >

    < / env:Envelope >

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

    Method 1:

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

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

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

    Methos 2:

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

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

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

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

    requestContext.put (MessageContext.HTTP_REQUEST_HEADERS, headers);

    Methos 3:

    @Generated ("oracle JDeveloper")

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

    TODO - provides the required identification information values

    String username = "weblogic";

    String password = "password";

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


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

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

    Boolean result =

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

    return the result;

    Returns true;

    }

    });

    credList.add (getSAMLTrustCredentialProvider ());

    requestContext.put (WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credList);

    }

    @Generated ("oracle JDeveloper")

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

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

    }

    @Generated ("oracle JDeveloper")

    public static CredentialProvider getSAMLTrustCredentialProvider() {}

    return new SAMLTrustCredentialProvider();

    }

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

  • How to limit the appeal of Web service method when the page loads?

    Hello

    I have an a choice selection list that is populated using a web service method. There are several different lists on the page. When a page loads, all of these methods of service web (methods are inside the POJO class) are executed.

    I would like to limit the call to the web service methods. The call occurs even if the component is not rendered. Basically, all methods in the page links are executed during the loading of the page. Is there a way to limit this behavior?

    More time is consumed during the loading of the page. Can someone help me on this?

    JDeveloper Version: 11.1.1.7.1

    Thank you
    Malenfant.

    You can play with the value of the condition of discount for links - see for example:

    https://blogs.Oracle.com/Shay/entry/delay_method_execution_when_us

  • Problem with Web service connector

    Hello

    I am trying set OOTB Webservice connector but get the following error when executing the search of the user of the IOM operation.

    oracle.wsm.policy.advertisement.AdvertisementException: WSM-01701: The Runtime PolicySet cannot be announced due to validation errors.

    PolicySet "PolicySet [subjectPattern = ResourcePattern [pattern=/oim_domain/soa_server1/soainfra/default/SXXXXWSConnector/WSConnector/1.0/soa_4ddd27bc-adea-4504-80cb-298d293a12ca/SERVICEs/wsconnector_client_ep/PORTs/WebservicesConnectorService_pt, subjectType = SCA_SERVICE, terms = {PORT = WebservicesConnectorService_pt, COMPOSITE = SalesforceWSConnector, = SCA_SERVICE, SUBJECT_TYPE = wsconnector_client_ep, REVISION = 1.0, LABEL = soa_4ddd27bc-adea-4504-80cb-298d293a12ca, PARTITION = by default, DOMAIN = oim_domain, SERVER = soa_server1}], domainExpression =http://org.identityconnectors.genericws#wsdl.endpoint(wsconnector_client_ep/WebservicesConnectorService_pt)]. , polmap = {oimcp/WS_CONNECTOR_OUTBOUND = {policy [wsp:http://schemas.xmlsoap.org/ws/2004/09/policy] [local-optimization: off] [provides:{}http://schemas.oracle.com/ws/2006/01/policy]} SOAP_HTTP, {http://schemas.oracle.com/ws/2006/01/policy} SOAP_JMS] [oraSmartDigest:1332670244] [status: enabled] [smartDigests:1332670244V1_2, 1332670244V1_2, 359294128V1_5359294128V1_5,] [wsu:http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd] [Id: WS_CONNECTOR_OUTBOUND] [orawsp:http://schemas.oracle.com/ws/2006/01/policy] [smartDigest:1332670244] [description} : IOM Webservices connector outbound policy. This policy does the outbound processing for target webservice invocation calls][attachTo:binding.client][Name:oimcp/WS_CONNECTOR_OUTBOUND][category:security][{SimpleAssertion[custom-executor][Silent:false][name:WSConnectorOutboundAssertion][Enforced:true][custom:http://schemas.oracle.com/ws/soa/custom][category:security/custom][{AssertionBindings[{Config[name:WSConnectorOutboundAssertion_properties][{PropertySet[name:standard-security-properties][{Property[type:string][contentType:optional][name:reference.priority]}]}]}]}]}]}}}, constraintedDataMap={ConstraintGroup [terms=[], size=0, weight=0]=ConstraintedData [status=FAILURE localoptimization = null, validationErrors = [ValidationError [m_errorCode = WSM-01775, m_errorMessage = null, m_errorContext=/oim_domain/soa_server1/soainfra/default/SalesforceWSConnector/1.0/soa_4ddd27bc-adea-4504-80cb-298d293a12ca/SERVICEs/wsconnector_client_ep/PORTs/WebservicesConnectorService_pt, m_errorLevel = error, m_resourceBundle = policyvalidation, m_errorMsgArgs = [SCA_SERVICE, binding.server, oim_domain/soa_server1/soainfra/default/SalesforceWSConnector/1.0/soa_4ddd27bc-adea-4504-80cb-298d293a12ca/SERVICEs/wsconnector_client_ep/PORTs/WebservicesConnectorService_pt and oimcp/WS_CONNECTOR_OUTBOUND a client end point]]] "[{[, overrides = [,], polRefs = [PolicyReference [policyURI oimcp/WS_CONNECTOR_OUTBOUND =, polRefQName = {http://schemas.xmlsoap.org/ws/2004/09/policy} PolicyReference, version =-1, attributes = {{http://schemas.oracle.com/ws/2006/01/policy} status = enabled, {http://schemas.oracle.com/ws/2006/01/policy} class = security}, overrideProps = null]]]}, locked = true]"

    validation errors: "WSM-01775: politics ' oimcp/WS_CONNECTOR_OUTBOUND' cannot be set ResourcePattern" / oim_domain/soa_server1/soainfra/default/SXXXXWSConnector/1.0/soa_4ddd27bc-adea-4504-80cb-298d293a12ca/SERVICEs/wsconnector_client_ep/PORTs/WebservicesConnectorService_pt "SubjectType 'SCA_SERVICE' of attachTo"binding.server"since it can only be used with" an endpoint client.. [/ oim_domain/soa_server1/soainfra/default/SalesforceWSConnector/1.0/soa_4ddd27bc-adea-4504-80cb-298d293a12ca/SERVICEs/wsconnector_client_ep/PORTs/WebservicesConnectorService_pt]

    " .

    at oracle.wsm.advertisement.AdvertisementEngine.checkPolicySetErrors(AdvertisementEngine.java:1196)

    at oracle.wsm.advertisement.AdvertisementEngine.advertise(AdvertisementEngine.java:229)

    at oracle.wsm.advertisement.AdvertisementEngine.advertisePolicySet(AdvertisementEngine.java:641)

    at oracle.j2ee.ws.server.WebServiceProcessor.addPolicyAnnotations(WebServiceProcessor.java:1495)

    at oracle.j2ee.ws.server.WebServiceProcessor.advertiseWSDL(WebServiceProcessor.java:1440)

    at oracle.j2ee.ws.server.provider.ProviderWSDLHandler.addPolicy(ProviderWSDLHandler.java:362)

    at oracle.j2ee.ws.server.provider.ProviderWSDLHandler.handle(ProviderWSDLHandler.java:152)

    at oracle.j2ee.ws.server.provider.ProviderWSDLHandler.presentWSDL(ProviderWSDLHandler.java:118)

    at oracle.j2ee.ws.server.provider.ProviderServlet.presentWsdl(ProviderServlet.java:1124)

    at oracle.j2ee.ws.server.provider.ProviderServlet.doGet(ProviderServlet.java:1103)

    at oracle.j2ee.ws.server.provider.ProviderServlet.doGet(ProviderServlet.java:1011)

    at oracle.integration.platform.blocks.soap.FabricProviderServlet.doGet(FabricProviderServlet.java:396)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

    In addition, performs the following step is required?

    --------------------------------------------------------------------------

    Configure the composite SOA in the composite.xml file. To do this, add the following in the < binding.ws > tags webservice entries that require decryption of password.

    < policyReference URI = "oimcp/WS_CONNECTOR_OUTBOUND".

    orawsp:category = orawsp:status 'security' = "enabled" / >

    < property name = "password" type = "xs: String" > abcd1234 < / property >

    < name = "password.field.xpath.locations property"

    Type = "xs: String" > / ns6:ListOfUser / ns6: User / ns6:Password < / property >

    < name = "target.payload.namespaces property"

    Type = "xs: String" > ns6 = urn: / acme/xml/password < / property >

    --------------------------------------------------------------------------

    Thank you

    You did deploy it after the connection of the wiring?

    It must be a field like [email protected] in there.

    Just to make sure, the oracle/log_policy is in the wsconnector_client_ep and your own web service?

  • The consumption of web services and paging data.

    Hi all

    I am building an ADF application where I need to make web service calls to two different external systems. Each of them say return 50 records. On the user interface, I want to display 10 records at a time. Also, I need check duplicate records.

    What is the best approach in this case. Will I call the web services and generate the data in a temporary table and ADF - BC allows to display these data on the user interface. In this case set the data of a given user will be a challenge. Or will I programatically create 100 your and use them to display data on the UI (tabular) with paging option.

    Help, please!

    Yes, the pagination of POJO would be appropriate.

  • How to set the timeout property Web Service partner link in the new version of the SOA Suite, it is missing

    Hello

    I have a use case in which I'll call synchronous external Web Service and the form of this service, I get the answer after 80 seconds.

    I know that this console form EM soa-infra-> SOA Administration-> BPEL proprieties-> under 'more BPEL Configuration Properties..' in SyncMaxWaitTime can I change the default 45 second in 80 seconds, but it will apply to all synchronous services in this area, and I want only the value appeal of Web Service of particular external reference (link partner).

    For the limit of timeout for the particular web service (partner of external reference link):

    I saw a post at < http://www.mandsconsulting.com/asynchronous-vs-synchronous-bpel-processes > in which there is an option in 'Link partner Edit' form property tab dialog box, we can add "timeout" property but in SOA Suite11.1.1.7 I am not able to find this property form the list.

    on this post < http://abhishek-soablog.blogspot.in/2010/06/timeout-for-partnerlink.html > is also described the same way, but it's just the source code of the highest way of GUI to set the timeout property and it does not work with a new version.

    Can someone please tell me in a new version (11.1.1.7) of SOA suite, which is how to set the timeout for the particular web service (partner of external reference link).

    Thank you

    Can someone please tell me in a new version (11.1.1.7) of SOA suite, which is how to set the timeout for the particular web service (partner of external reference link).

    VR;

    Click em-> composite-> Services and references-> select need to reference and click on-> properties: 'HTTP Timeout of read' and 'HTTP timeout.

    developing composites:

    Click on a reference-> property inspector-> link properties-> plu green and add oracle.webservices.httpConnTimeout with the necessary value and oracle.webservices.httpReadTimeout with the necessary value

    for the same domain defined: oracle.webservices.local.optimization = false

    You can watch

    Administration of Web Services - 11g Release 1 (11.1.1.7)

    How to set a timeout for a Web Service in SOA 11 g (Doc ID 979683.1)

    SOA 11 g: political malpractice not to intercept 'service Endpoint unreachable' error (Doc ID 1503989.1)

  • How to pass the name of user and password to BPEL of the java proxy web service?

    Hi all

    Environment: SOA Suite 11g

    I use basic http authentication in my SOA services using a strategy of "oracle/wss_http_token_client_policy. Now, I need to call these SOA web services from a java proxy.

    Please let me know how this can be done.

    Thanks in advance

    Have you tried the messages below?

    BPEL to invoke the secure with HTTP Basic authentication Web service
    Call a BPEL process using the HTTP Basic authentication

    http://docs.Oracle.com/CD/E21764_01/Web.1111/e13713/owsm_appendix.htm#CHDBAHBI

    Thank you
    Vijay

Maybe you are looking for