B2B Gateway fails to generate data xml for 997
Hi allI am faced with a particular problem with one of my test B2B case, where xml for 997 EDI X 12 file is not generated. The file EDI 997 is get picked up however it will fail to generate the request message. In the report so there will be no errors. When I click on the details link on the page of reports for the 997 message the message of application link is not active and does not redirect to the details of the application pop up message by clicking on it.
Could someone of you please think why this problem occurs... It worked perfectly in my case of dev...
Please also suggest if more details could be found in the log files of B2B.
concerning
Rakesh
Your real problem is configuration...
You must go to the Configuration under Administration tab and section of the page, set "notify functional Inbound" accused of reception and the "receipt functional managed automatically ' to 'true '. Otherwise the message from the Application does not get generated for your 997 s entering.
Tags: Fusion Middleware
Similar Questions
-
Generate output XML for a PL/SQL stored procedure concurrent program (EBS).
Hello
I trying to generate XML output for a simultaneous PL/SQL program and then use it as a model for BEEP.
Program PL/SQL for a report consist of sliders/queries and other calculations of output data.
Program (report) made up of topics, couple of col. values of one or more tables DB and rest of the columns are values read from DB colonel and calculated. The length of the neck extends up to 280 characters.
All out - put is shown using fnd_file.put_line (fnd_file.ouput,...);
before first fnd_file statement, included the following stmt.
fnd_file.put_line (fnd_file.output,' <? xml version = "1.0" encoding = "UTF - 8"? > ');
Using demand conc., notice ouptut poster error...
The XML page cannot be displayed
Invalid at the top level of the document. Error during processing of the resources ' http://ohcol0ws023.amp-ohio.org:8004/OA_CGI/FNDWRR.exe...
<? XML version = "1.0" encoding = "UTF-8"? >
I tried to add tags in the rest of the fnd_file.put_line stmts. as
fnd_file.put_line (fnd_file.output, '< Heading1 >' |) 'Report name ' | (/ head2 > '); etc.
View output shows the same error message.
PL. advise how go further or tell me the link, if it's already been answered earlier.
Thank you
PrakCopy the file from $APPLCSF / $APPLOUT to your customer and try to open it. Find out what's wrong with the code XML, for example, you may need to top level element:
Write to me if you can't get by - see my profile.
Kind regards
Gareth -
WSSE-Server CodecHandler toUnable Failed to find the xml for setting element
Hi all
I invoke a Java webservice with signature and encryption (WSSE) of the soap message in my client program.
The webservice is built with a JWSC ant task and deployed in weblogic 10.3.2 I get the below exception when calling it.
I invoke a web service that takes a string as input and returns a string output. This web service uses the signature and encryption on both directions.
I checked the public/private key certificates and everything seems to be ok.
I don't know how to fix the sub question. Let me know if you have encountered this problem and it is solved.
-[HTTP - https://cdctdevapp:7042/casestatusservice/CaseStatusService - 500 response]-
Date: Monday, October 15, 2012 03:24:12 GMT
X-powered-by: Servlet/JSP/2.1 2.5
Content-type: text/xml; charset = utf-8
Encoding: segmented
NULL: HTTP/1.1 500 Internal Server Error
< env:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:env > < env:Header / > < env:Server env:Body > < env:Fault > < faultcode > < / faultcode > < faultstring > [CodecHandler Server] could not decode
-& gt; Could not find the xml for setting element: message
< / faultstring > < details > < bea_fault:stacktrace xmlns:bea_fault = "http://www.bea.com/servers/wls70/webservice/fault/1.0.0" > weblogic.wsee.codec.CodecException: could not find the xml for setting element: message
at weblogic.wsee.codec.soap11.SoapDecoder.checkNullElement(SoapDecoder.java:397)
at weblogic.wsee.codec.soap11.SoapDecoder.decodeParams(SoapDecoder.java:285)
at weblogic.wsee.codec.soap11.SoapDecoder.decodeParts(SoapDecoder.java:172)
at weblogic.wsee.codec.soap11.SoapDecoder.decode(SoapDecoder.java:125)
at weblogic.wsee.codec.soap11.SoapCodec.decode(SoapCodec.java:182)
at weblogic.wsee.ws.dispatch.server.CodecHandler.decode(CodecHandler.java:139)
at weblogic.wsee.ws.dispatch.server.CodecHandler.handleRequest(CodecHandler.java:40)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
to weblogic.wsee.server.servlet.BaseWSServlet$ AuthorizedInvoke.run (BaseWSServlet.java:285)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3717)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
< / bea_fault:stacktrace > < / details > < / env:Fault > < / env:Body > < / env:Envelope >.
< WSEE:1 > create < SoapMessageContext. < init >: 48 >
< WSEE:1 > set Message called: com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl@996b65 < SoapMessageContext.setMessage:65 >
< WSEE:1 > set Message called: com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl@996b65 < SoapMessageContext.setMessage:65 >
< WSEE:1 > set Message called: com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl@996b65 < SoapMessageContext.setMessage:65 >
< WSEE:1 > set Message called: com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl@996b65 < SoapMessageContext.setMessage:65 >
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: [CodecHandler Server] could not decode
-> Could not find the xml for setting element: message
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:197)
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:130)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:125)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)
to $Proxy27.sayHello (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 weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)
to $Proxy28.sayHello (Unknown Source)
at org.adr.nydcci.wss.ws5UntSignEncryptHttps.client.ws5UntSignEncryptHttpsPortClient.main(ws5UntSignEncryptHttpsPortClient.java:44)Thank you very much, Sunil. I could solve the problem.
Demand has been framed properly, as my annotation TJS for my client was pointing to a fake name.
fixed the ' @WebParam (name = "") ")" attribute to my client and it worked well. " The problem is solved now.Thank you
Sriram -
Hey gurus,
I am trying to generate the XML code next to the double, however, I get an error message indicating that my higher level is not set. Any ideas? Thank you!
< PUDOOUTPUT >
< PKG >
< > 12345 SHIPMENTID < / SHIPMENTID >
< ERROR > 'NO DATA' < / ERROR >
< ERRORTEXT > "" error: could not find alias sender in SPL_SHIPPER_ACCOUNTS. "< / ERRORTEXT >"
< / PKG >
< / PUDOOUTPUT >
Select xmlelement ("PUDOOUTPUT", xmlelement ("PKG", xmlelement("SHIPMENTID",i.shipmentid),
XmlElement ("ERROR", "NO DATA")
XmlElement ("ERRORTEXT", "error: could not find the sender aliases in SPL_SHIPPER_ACCOUNTS.'")))
in p_wms_output
Double;It works on 10.2.0.3
select xmlelement("PUDOOUTPUT",xmlelement("PKG",xmlelement("SHIPMENTID",123456), xmlelement("ERROR",'NO DATA'), xmlelement("ERRORTEXT",'Error: Cannot find shipper alias in SPL_SHIPPER_ACCOUNTS.'))) from dual;
I suspect the question is because you have "i.shipmentid" in your SQL statement you have to table with an alias of 'I' in your SQL statement. Do you mean something like l_shipmentid as a variable from your PL/SQL code?
-
Generate data XML from Ref_cursor...
Thanks for the reply
Published by: 000111 on June 12, 2012 16:41
Published by: 000111 on June 12, 2012 16:42000111 wrote:
Hello
I'm now in xml... I'm trying to generate XML from a ref_cursor... can someone tell me how I can achieve this?Does this help start?
create or replace function my_func(ctr number) return sys_refcursor as l_cur sys_refcursor; begin open l_cur for select * from all_objects where rownum <= ctr ; return l_cur; end; /
One way to use it is:
select xmltype(my_func(2)) from dual ;
Another way is:
declare hnd dbms_xmlgen.ctxhandle; begin hnd := dbms_xmlgen.newcontext(my_func(2)); dbms_xmlgen.setrowsettag(hnd, 'CURSOR'); dbms_output.put_line(dbms_xmlgen.getxml(hnd)); end; /
-
Generate the xml in a program of Conc via the data model fails...
Hi all...
I hope, to a person, as a problem of beginner right front...
As the title States, Ive created a model of data below...
.. who I am trying to run in a data definition XML Pub.<dataTemplate name="UofS_Outstanding_Expenses_Report" description="SUEXPTRK - UofS Outstanding Expenses Report" dataSourceRef="FINTEST" version="1.0"> <parameters> <parameter name="p_claimant" dataType="character" /> <parameter name="p_expense_date_from" dataType="date" /> <parameter name="p_expense_date_to" dataType="date" /> <parameter name="p_raisedby" dataType="character" /> <parameter name="p_status" dataType="character" /> </parameters> <dataQuery> <sqlStatement name="Q1"> <![CDATA[ SELECT erh.invoice_num, pap.full_name Employee_Claiming, DECODE(NVL(erh.expense_status_code, 'Not yet Submitted (NULL)'), 'CANCELLED', 'CANCELLED', 'EMPAPPR', 'Pending Individuals Approval', 'ERROR', 'Pending System Administrator Action', 'HOLD_PENDING_RECEIPTS ', 'Hold Pending Receipts', 'INPROGRESS', 'In Progress', 'INVOICED', 'Ready for Payment', 'MGRAPPR', 'Pending Payables Approval', 'MGRPAYAPPR', 'Ready for Invoicing', 'PAID', 'Paid', 'PARPAID', 'Partially Paid', 'PAYAPPR', 'Payables Approved', 'PENDMGR', 'Pending Manager Approval', 'PEND_HOLDS_CLEARANCE', 'Pending Payment Verification', 'REJECTED', 'Rejected', 'RESOLUTN', 'Pending Your Resolution','RETURNED', 'Returned', 'SAVED', 'Saved', 'SUBMITTED', 'Submitted', 'UNUSED', 'UNUSED','WITHDRAWN','Withdrawn', 'Not yet Submitted (NULL)') Expense_Status_Code , erh.report_submitted_date Submit_Date, erh.expense_last_status_date Last_Update, erh.override_approver_name ER_Approver, fu.description ADMINISTRATOR, erh.total, erh.description FROM AP_EXPENSE_REPORT_HEADERS_all erh, per_all_people_f pap, fnd_user fu WHERE erh.employee_id = pap.person_id AND fu.user_id = erh.created_by AND NVL(erh.expense_status_code, 'Not yet Submitted') NOT IN ('MGRAPPR', 'INVOICED', 'PAID', 'PARPAID') AND pap.full_name = :p_claimant AND erh.report_submitted_date BETWEEN (:p_expense_date_from) AND (:p_expense_date_to) AND fu.description = :p_raisedby AND erh.expense_status_code = :p_status ]]> </sqlStatement> </dataQuery> <dataStructure> <group name="G_OUTST_EXPENSES" source="Q1"> <element name="pap.full_name" value="Claimant" /> <element name="erh.report_submitted_date" value="Submitted_Date_from" /> <element name="erh.report_submitted_date" value="Submitted_Date_to" /> <element name="fu.description" value="iExpenses_Administrator" /> <element name="erh.expense_status_code" value="iExpense_status" /> </group> </dataStructure> </dataTemplate>
But, when I run the program designed to generate the xml was generated all matches the parameters without fields or data anywhere...
.. No matter what I try to change in the select statement, nothing happens...<UOFS_OUTSTANDING_EXPENSES_REPORT> <P_CLAIMANT/> <P_EXPENSE_DATE_FROM>2009-01-01T00:00:00.000+00:00</P_EXPENSE_DATE_FROM> <P_EXPENSE_DATE_TO>2009-02-12T00:00:00.000+00:00</P_EXPENSE_DATE_TO> <P_RAISEDBY/> <P_STATUS/> <LIST_G_OUTST_EXPENSES> </LIST_G_OUTST_EXPENSES> </UOFS_OUTSTANDING_EXPENSES_REPORT>
Please can someone offer any assistance...?
Thanks for looking...
StevenHello
Your problem may be:
AND fu.description =: p_raisedbyIf p_raisedby is null your query returns no data.
You need:
AND fu.description = nvl(:p_raisedby,fu.description)Kind regards
Gareth -
ADFC-0619: failed the authorization check but system-jazn-"Data.xml" entry
Hello
I have an urgent problem with permission on production area.
I set the permission for my App. create custom pages so login and custom to redirect, the Spanish developer Login bean works fine, but on prodocution I got an exception:
WatchRule: (SEVERITY = "Error") AND ((MSGID = ' WL-101020') OR (MSGID = "WL-101017'") OR (MSGID = "WL-000802'") OR (MSGID = "BEA-101020'") OR (MSGID = "BEA-101017'") OR (MSGID = "BEA-000802'"))
[WatchData: DATE = July 7, 2014 11:05:33 AM EDT SERVER = AdminServer MESSAGE = [path of the module: app_name_test ServletContext@304698745[app:AppName: / app_name_test spec-version: 2.5]] Servlet failed with Exception
oracle.adf.controller.security.AuthorizationException: ADFC-0619: authorization check failed: 'viewcontroller.pageDefs.homePageDef', 'VIEW '.
at oracle.adf.controller.internal.security.AuthorizationEnforcer.handleFailure(AuthorizationEnforcer.java:182)
at oracle.adf.controller.internal.security.AuthorizationEnforcer.internalCheckPermission(AuthorizationEnforcer.java:162)
at oracle.adf.controller.internal.security.AuthorizationEnforcer.checkPermission(AuthorizationEnforcer.java:116)
at oracle.adfinternal.controller.state.ControllerState.checkPermission(ControllerState.java:663)
at oracle.adfinternal.controller.state.ControllerState.initializeUrl(ControllerState.java:700)
at oracle.adfinternal.controller.state.ControllerState.synchronizeStatePart2(ControllerState.java:473)
at oracle.adfinternal.controller.application.SyncNavigationStateListener.afterPhase(SyncNavigationStateListener.java:59)
to oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$ PagePhaseListenerWrapper.afterPhase (ADFLifecycleImpl.java:530)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchAfterEvent(LifecycleImpl.java:120)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchAfterPagePhaseEvent(LifecycleImpl.java:168)
to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$ PhaseInvokerImpl.dispatchAfterPagePhaseEvent (ADFPhaseListener.java:131)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:74)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:447)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
JPS - config.Xml
<? XML version = "1.0" encoding = "UTF - 8"? >
" < jpsConfig xmlns =" http://xmlns.Oracle.com/OracleAS/schema/11/JPs-config-11_1.xsd "" xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance " xsi: schemaLocation = " http://xmlns.Oracle.com/OracleAS/Schema/11/JPS-config-11_1.xsd HSD-config - 11_1.xsd" >
< = name="oracle.security.jps.jaas.mode"/ 'doasprivileged' property value >
< serviceProviders >
"< class ="oracle.security.jps.internal.idstore.xml.XmlIdentityStoreProvider serviceProvider"name =" idstore.xml.provider "type ="IDENTITY_STORE">
< description > XML-based IdStore provider < / description >
< / serviceProvider >
"< class ="oracle.security.jps.internal.policystore.xml.XmlPolicyStoreProvider serviceProvider"name =" policystore.xml.provider "type ="POLICY_STORE">
< description > XML-based PolicyStore provider < / description >
< / serviceProvider >
"< class ="oracle.security.jps.internal.anonymous.idm.IdmAnonymousServiceProvider serviceProvider"name =" anonymous.provider "type 'ANONYMOUS' = >
< description > anonymous access provider < / description >
< / serviceProvider >
"< class ="oracle.security.jps.internal.login.jaas.JaasLoginServiceProvider serviceProvider"name =" jaas.login.provider "type ="LOGIN">
< description > Service Provider for the connection Module < / description >
< / serviceProvider >
< / serviceProviders >
< serviceInstances >
< provider = "idstore.xml.provider serviceInstance" name ="idstore.xml" > "
"< value="./jazn-data.xml property "name ="location"/ >
< property value = 'OBFUSCATE' name="jps.xml.idstore.pwd.encoding"/ >
< value property = "jazn.com" name = "subscriber.name" / > "
< / serviceInstance >
< provider = "policystore.xml.provider serviceInstance" name ="policystore.xml" > "
"< value="./jazn-data.xml property "name ="location"/ >
< = 'false' name="oracle.security.jps.policy.principal.cache.key"/ property value >
< / serviceInstance >
< provider = "anonymous.provider serviceInstance" name = "anonymous" / > "
< provider = "jaas.login.provider serviceInstance" name ="anonymous.loginmodule" > "
< value = "oracle.security.jps.internal.jaas.module.anonymous.AnonymousLoginModule property" name = "loginModuleClassName" / > "
< property value = "REQUIRED" name="jaas.login.controlFlag"/ >
< property value = "true" name = "debug" / >
< property value = "true" name = "addAllRoles" / >
< / serviceInstance >
< provider = "jaas.login.provider serviceInstance" name ="idstore.loginmodule" > "
< value = "oracle.security.jps.internal.jaas.module.idstore.IdStoreLoginModule property" name = "loginModuleClassName" / > "
< property value = "REQUIRED" name="jaas.login.controlFlag"/ >
< property value = "true" name = "debug" / >
< property value = "true" name = "addAllRoles" / >
< = 'false' name="remove.anonymous.role"/ property value >
< / serviceInstance >
< / serviceInstances >
< jpsContexts default 'anonymous' = >
< name jpsContext 'anonymous' = >
< serviceInstanceRef ref = 'anonymous' / >
< serviceInstanceRef ref = "anonymous.loginmodule" / >
< / jpsContext >
< / jpsContexts >
< / jpsConfig >
Web.Xml
<? XML version = "1.0" encoding = "UTF - 8"? >
" < web - app xmlns =" http://Java.Sun.com/XML/NS/JavaEE "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance "
" xsi: schemaLocation =" http://Java.Sun.com/XML/NS/JavaEE http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"" "" "
version "2.5" = >
< context-param >
javax.faces.STATE_SAVING_METHOD < param-name > < / param-name >
customer of < param-value > < / param-value >
< / context-param >
< context-param >
javax.faces.PARTIAL_STATE_SAVING < param-name > < / param-name >
< param-value > false < / param-value >
< / context-param >
< context-param >
< description > if this parameter is set to true, there will be an automatic check of the date of the change of your JSP pages and saved state will be scrapped when JSP change. It will also automatically check if your css skinning files have changed without requiring you to restart the server. This facilitates the development, but adds above. For this reason, this parameter must be set to false when your application is deployed. < / description >
org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION < param-name > < / param-name >
< param-value > false < / param-value >
< / context-param >
< context-param >
< description > if the comment "generated by...» "down in pages ADF Faces HTML should contain version number information. < / description >
oracle.adf.view.rich.versionString.HIDDEN < param-name > < / param-name >
< param-value > false < / param-value >
< / context-param >
< context-param >
Oracle.ADF.jsp.provider.0 < param-name > < / param-name >
oracle.mds.jsp.MDSJSPProviderHelper < param-value > < / param-value >
< / context-param >
< context-param >
< description > File Upload < / description >
org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE < param-name > < / param-name >
< param-value > 10485760 < / param-value >
< / context-param >
< context-param >
< description > the safety precautions to prevent clickjacking: bust of executives if the area of window ancestor (Protocol, host and port) and the framework are different. Other options for this setting are always and never. < / description >
org.apache.myfaces.trinidad.security.FRAME_BUSTING < param-name > < / param-name >
differentOrigin < param-value > < / param-value >
< / context-param >
< context-param >
javax.faces.FACELETS_SKIP_XML_INSTRUCTIONS < param-name > < / param-name >
< param-value > true < / param-value >
< / context-param >
< context-param >
javax.faces.FACELETS_SKIP_COMMENTS < param-name > < / param-name >
< param-value > true < / param-value >
< / context-param >
< context-param >
javax.faces.FACELETS_DECORATORS < param-name > < / param-name >
oracle.adfinternal.view.faces.facelets.rich.AdfTagDecorator < param-value > < / param-value >
< / context-param >
< context-param >
javax.faces.FACELETS_RESOURCE_RESOLVER < param-name > < / param-name >
oracle.adfinternal.view.faces.facelets.rich.AdfFaceletsResourceResolver < param-value > < / param-value >
< / context-param >
< filter >
< filter-name > JpsFilter < / filter-name >
> class filter < oracle.security.jps.ee.http.JpsFilter < / class filter >
< init-param >
enable.anonymous < param-name > < / param-name >
< param-value > true < / param-value >
< / init-param >
< init-param >
Remove.anonymous.role < param-name > < / param-name >
< param-value > false < / param-value >
< / init-param >
< / filter >
< filter >
< name of filter > Trinidad < / filter-name >
> class filter < org.apache.myfaces.trinidad.webapp.TrinidadFilter < / class filter >
< / filter >
< filter >
< filter-name > adfBindings < / filter-name >
> class filter < oracle.adf.model.servlet.ADFBindingFilter < / class filter >
< / filter >
< filter >
< filter-name > ADFLibraryFilter < / filter-name >
> class filter < oracle.adf.library.webapp.LibraryFilter < / class filter >
< / filter >
< filter mapping >
< filter-name > JpsFilter < / filter-name >
< url-pattern > / * < / url-pattern >
< distributor > BEFORE < / dispatcher >
< distributor > APPLICATION < / dispatcher >
< distributor > INCLUDE < / dispatcher >
< / filter-mapping >
< filter mapping >
< name of filter > Trinidad < / filter-name >
< name servlet - > Faces Servlet < / servlet-name >
< distributor > BEFORE < / dispatcher >
< distributor > APPLICATION < / dispatcher >
< distributor > ERROR < / dispatcher >
< / filter-mapping >
< filter mapping >
< filter-name > adfBindings < / filter-name >
< name servlet - > Faces Servlet < / servlet-name >
< distributor > BEFORE < / dispatcher >
< distributor > APPLICATION < / dispatcher >
< / filter-mapping >
< filter mapping >
< filter-name > ADFLibraryFilter < / filter-name >
< url-pattern > / * < / url-pattern >
< distributor > BEFORE < / dispatcher >
< distributor > APPLICATION < / dispatcher >
< / filter-mapping >
< filter mapping >
< filter-name > adfBindings < / filter-name >
< name servlet - > adfAuthentication < / servlet-name >
< distributor > BEFORE < / dispatcher >
< distributor > APPLICATION < / dispatcher >
< / filter-mapping >
<>earpiece
oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack <-listener class > < / listener class >
< / earphone >
<>earpiece
oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack <-listener class > < / listener class >
< / earphone >
<>earpiece
Oracle.BC4J.MBean.BC4JConfigLifeCycleCallBack <-listener class > < / listener class >
< / earphone >
< servlet >
< name servlet - > Faces Servlet < / servlet-name >
> the servlet class < javax.faces.webapp.FacesServlet < / servlet-class >
< load-on-startup > 1 < / load-on-startup >
< / servlet >
< servlet >
resources < name of the servlet > - < / servlet-name >
> the servlet class < org.apache.myfaces.trinidad.webapp.ResourceServlet < / servlet-class >
< / servlet >
< servlet >
< name servlet - > BIGRAPHSERVLET < / servlet-name >
> the servlet class < oracle.adf.view.faces.bi.webapp.GraphServlet < / servlet-class >
< / servlet >
< servlet >
< name servlet - > BIGAUGESERVLET < / servlet-name >
> the servlet class < oracle.adf.view.faces.bi.webapp.GaugeServlet < / servlet-class >
< / servlet >
< servlet >
< name servlet - > MapProxyServlet < / servlet-name >
> the servlet class < oracle.adf.view.faces.bi.webapp.MapProxyServlet < / servlet-class >
< / servlet >
< servlet >
< name servlet - > GatewayServlet < / servlet-name >
> the servlet class < oracle.adfinternal.view.faces.bi.renderkit.graph.FlashBridgeServlet < / servlet-class >
< / servlet >
< servlet >
< name servlet - > adflibResources < / servlet-name >
> the servlet class < oracle.adf.library.webapp.ResourceServlet < / servlet-class >
< / servlet >
< servlet >
< name servlet - > adfAuthentication < / servlet-name >
> the servlet class < oracle.adf.share.security.authentication.AuthenticationServlet < / servlet-class >
< init-param >
success_url < param-name > < / param-name >
/faces/home.jspx < param-value > < / param-value >
< / init-param >
< load-on-startup > 1 < / load-on-startup >
< / servlet >
< servlet-mapping >
< name servlet - > Faces Servlet < / servlet-name >
< url-pattern > /visages / * < / url-pattern >
< / servlet-mapping >
< servlet-mapping >
resources < name of the servlet > - < / servlet-name >
< url-pattern > /adf / * < / url-pattern >
< / servlet-mapping >
< servlet-mapping >
resources < name of the servlet > - < / servlet-name >
< url-pattern > /afr / * < / url-pattern >
< / servlet-mapping >
< servlet-mapping >
< name servlet - > BIGRAPHSERVLET < / servlet-name >
< url-pattern >/servlet/GraphServlet / * < / url-pattern >
< / servlet-mapping >
< servlet-mapping >
< name servlet - > BIGAUGESERVLET < / servlet-name >
< url-pattern >/servlet/GaugeServlet / * < / url-pattern >
< / servlet-mapping >
< servlet-mapping >
< name servlet - > MapProxyServlet < / servlet-name >
< url-pattern > /mapproxy / * < / url-pattern >
< / servlet-mapping >
< servlet-mapping >
resources < name of the servlet > - < / servlet-name >
< url-pattern > /bi / * < / url-pattern >
< / servlet-mapping >
< servlet-mapping >
< name servlet - > GatewayServlet < / servlet-name >
< url-pattern > /flashbridge / * < / url-pattern >
< / servlet-mapping >
< servlet-mapping >
< name servlet - > adflibResources < / servlet-name >
< url-pattern > /adflib / * < / url-pattern >
< / servlet-mapping >
< servlet-mapping >
< name servlet - > adfAuthentication < / servlet-name >
<>url-pattern / adfAuthentication < / url-pattern >
< / servlet-mapping >
< mapping mime - >
SWF < extension > < / extension >
mime-type application/x-shockwave-flash <>< / mime-type >
< / mime map >
< mapping mime - >
AMF < extension > < / extension >
<>mime-type application/x-amf < / mime-type >
< / mime map >
< jsp-config >
< jsp-property-group >
*.jsff < url-pattern > < / url-pattern >
true < East - xml > < / xml is >
< / jsp-property-group >
< / jsp-config >
< security constraint >
< web-resource-collection >
< web-resource-name > adfAuthentication < / web-resource-name >
<>url-pattern / adfAuthentication < / url-pattern >
< / web-resource-collection >
<>auth-constraint
valid users - < role name > < / role name >
< / auth-constraint >
< / security constraint >
<>login-config
FORM < auth-method > < / auth-method >
< form-login-config >
/faces/login.jspx < form-login-page > < / form-login-page >
/faces/login.jspx < form-error-page > < / form-error-page >
< / form-login-config >
< / login-config >
<-security role >
valid users - < role name > < / role name >
< / security role >
< / web - app >
jazn-"Data.xml"
<? XML version = "1.0" encoding = "UTF - 8" standalone = 'Yes'? "" >
" < jazn-data xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "
" xsi: noNamespaceSchemaLocation = ' http://xmlns.Oracle.com/OracleAS/schema/jazn-data.xsd "> "
< default = "jazn.com Kingdom-jazn" >
< domain >
< name > jazn.com < / name >
< / domain >
< / Kingdom-jazn >
< policy store >
applications <>
< application >
< name > AppName < / name >
< jazn > political
<>grant
< dealer >
< directors >
< principal >
< name > authenticated role < / name >
oracle.security.jps.internal.core.principals.JpsAuthenticatedRoleImpl < class > < / class >
< / main >
< / directors >
< / dealer >
<>permissions
< permission >
oracle.adf.share.security.authorization.RegionPermission < class > < / class >
< name > viewcontroller.pageDefs.homePageDef < / name >
Display < share > < / actions >
< / authorization >
< / authorization >
< / grant >
< / jazn-policy >
< / application >
< / applications >
< / policy-store >
< / jazn-data >
My fragment of connection method:
HttpServletRequest request = (HttpServletRequest) () .getRequest () ctx.getExternalContext; try {} Topic topic = Authentication.login (new URLCallbackHandler (UN, pw)); weblogic.servlet.security.ServletAuthentication.runAs (object, request); HttpServletResponse response = (HttpServletResponse) ctx.getExternalContext (m:System.NET.FtpWebRequest.GetResponse ()); sendForward (request, response, LOGIN_URL); } catch (FailedLoginException fle) {} LOG.severe (fle); String errorText = rsBundle.getString ("ERROR_LOGIN"); FacesMessage msg = new FacesMessage (FacesMessage.SEVERITY_ERROR, errorText, errorText); ctx.addMessage (null, msg); } I use Jdev 11.1.2.4
Any help why this configuration works on production envirement?
My system-jazn-"Data.xml" has entered correct...
Finally, I found... Administrator develop new envirement and they use java 1.8 (WTF). Have to kill them immediately after to write this post...
I found that the search to setDomainEnv.sh
Changed start at 1.6 and all works like magic... IM really surprised that start weblogic with java 8 and generate strange symtomps with authentication...
I thank all of you for the help
-
SQL query to generate nested XML data
Hello
I use Oracle 11 g R2 SOE...
I have two main tables
COMMERCIALS_PROPERTIES (PK, com_id, com_size, project number, com_type number number number)
COM_PHOTOS (PK ID number, number com_id FK, content mimetype varchar2, blob)
Please, note that the following has nothing to do with my problem:
CONTENT and mimetype columns. In addition, the tables of research: PROJECTS, COM_TYPE
Apex (Application Express) we can expose a report as a RESTful web service in XML format:
I use this query to generate the XML 1 feed, but I need to change the query to generate flow XML 2 .
How is this possible?
H1. XML 1Select "COM"."COM_ID" as "COM_ID", "COM"."COM_SIZE" as "SIZE", "PROJECTS"."PROJECT_NAME_EN" as "PROJECT", "COM_TYPES"."COM_TYPE" as "COM_TYPE", 'http://fam-erp.com/apex/erp/fateh/'||IMG.ID as "ImgURL" FROM COM_PHOTOS IMG inner join COMMERCIALS_PROPERTIES "COM" on IMG.COM_ID = COM.COM_ID inner join "PROJECTS" "PROJECTS" on "PROJECTS"."PROJECT_ID"="COM"."PROJECT_ID" inner join "COM_TYPE_LOOKUP" "COM_TYPES" on "COM_TYPES"."TYPE_ID"="COM"."COM_TYPE" WHERE COM.COM_ID < 80 order by 1
H2. Please look only < COM_ID > and < ImgURL >
---------------------------<ROWSET> <ROW> <COM_ID>77</COM_ID> <SIZE>842</SIZE> <PROJECT>Bayswater Tower</PROJECT> <COM_TYPE>Office</COM_TYPE> <ImgURL>http://fam-erp.com/apex/erp/fateh/1410</ImgURL> </ROW> <ROW> <COM_ID>77</COM_ID> <SIZE>842</SIZE> <PROJECT>Bayswater Tower</PROJECT> <COM_TYPE>Office</COM_TYPE> <ImgURL>http://fam-erp.com/apex/erp/fateh/1412</ImgURL> </ROW> <ROW> <COM_ID>78</COM_ID> <SIZE>756</SIZE> <PROJECT>Bayswater Tower</PROJECT> <COM_TYPE>Office</COM_TYPE> <ImgURL>http://fam-erp.com/apex/erp/fateh/1425</ImgURL> </ROW> <ROW> <COM_ID>78</COM_ID> <SIZE>756</SIZE> <PROJECT>Bayswater Tower</PROJECT> <COM_TYPE>Office</COM_TYPE> <ImgURL>http://fam-erp.com/apex/erp/fateh/1429</ImgURL> </ROW> </ROWSET>
H1. XML 2
H2. Please look only < COM_ID > and < Images > and < ImgURL >
<ROWSET> <ROW> <COM_ID>77</COM_ID> <SIZE>842</SIZE> <PROJECT>Bayswater Tower</PROJECT> <COM_TYPE>Office</COM_TYPE> <Images> <ImgURL>http://fam-erp.com/apex/erp/fateh/1410</ImgURL> <ImgURL>http://fam-erp.com/apex/erp/fateh/1412</ImgURL> </Images> </ROW> <ROW> <COM_ID>78</COM_ID> <SIZE>756</SIZE> <PROJECT>Bayswater Tower</PROJECT> <COM_TYPE>Office</COM_TYPE> <Images> <ImgURL>http://fam-erp.com/apex/erp/fateh/1425</ImgURL> <ImgURL>http://fam-erp.com/apex/erp/fateh/1429</ImgURL> </Images> </ROW> </ROWSET>
Hi, Fateh
One possible way is to use the XML features to create your XML file.
Using XML, you can make the IMAGES as a subquery XMLAGG rather than join at the table of the image.Here is an example of the use of schema SCOTT:
SQL> select xmlelement( 2 "ROWSET" 3 , xmlagg( 4 xmlelement( 5 "ROW" 6 , xmlforest( 7 d.deptno as "ID" 8 , d.dname as "NAME" 9 , ( 10 select xmlagg( 11 xmlelement( 12 "ImgUrl" 13 , 'http://the.server.com/'||e.empno 14 ) 15 order by e.empno 16 ) 17 from scott.emp e 18 where e.deptno = d.deptno 19 ) as "Images" 20 ) 21 ) 22 order by d.deptno 23 ) 24 ) the_xml 25 from scott.dept d 26 /* joins to the other tables EXCEPT image table */ 27 / THE_XML --------------------------------------------------------------------------------
10 ACCOUNTING http://the.server The output is an XMLTYPE column (think of it as a CLOB with addition of feature ;-))
My SQL * PLUS the output of cuts, but believe me, it's all there.
Just to show, here is the same example, wrapped in a function XMLSERIALIZE to print the XML file:SQL> select xmlserialize( 2 content 3 xmlelement( 4 "ROWSET" 5 , xmlagg( 6 xmlelement( 7 "ROW" 8 , xmlforest( 9 d.deptno as "ID" 10 , d.dname as "NAME" 11 , ( 12 select xmlagg( 13 xmlelement( 14 "ImgUrl" 15 , 'http://the.server.com/'||e.empno 16 ) 17 order by e.empno 18 ) 19 from scott.emp e 20 where e.deptno = d.deptno 21 ) as "Images" 22 ) 23 ) 24 order by d.deptno 25 ) 26 ) 27 as varchar2(4000) 28 indent size=2 29 ) the_xml 30 from scott.dept d 31 /* joins to the other tables EXCEPT image table */ 32 / THE_XML --------------------------------------------------------------------------------
10 ACCOUNTING http://the.server.com/7782 http://the.server.com/7839 http://the.server.com/7934 20 RESEARCH http://the.server.com/7369 http://the.server.com/7566 http://the.server.com/7788 http://the.server.com/7876 http://the.server.com/7902 30 SALES http://the.server.com/7499 http://the.server.com/7521 http://the.server.com/7654 http://the.server.com/7698 http://the.server.com/7844 http://the.server.com/7900 40 OPERATIONS For a Web service you don't need to print the XML that is returned by the Web service.
I do not know APEX, so I don't know if APEX supports exposing an already built piece of XML, rather than expose a query result.
But my guess is that it should do very well if you ask an XMLTYPE data type (i.e. - to use the first of my examples, and not automatically printed.)If you do not have APEX to do it this way, then I suggest that you try asking in the APEX forum rather than the SQL forum ;-)
-
Hello
I need to generate this XML:
<? XML version = "1.0" encoding = "utf-8"? >
< message >
< pippo id = "30" content = "AMALI" / >
< id pluto = "14" content = "BBBBBBBBBBBBB" / >
< receptacle duckling = datetime 'CCC' = "' 10/10 / 2010:11:11:11 ' status ="0"/ >"
< / messages >
In this table, only lines with INDICATOR = 0:
CREATE TABLE TOPOLINO
(
NAME VARCHAR2 (20 BYTE),
IDENTIFICATION NUMBER NOT NULL,
DATE_TIME DATE,
CONTENT_MEX CLOB,
INDICATOR NUMBER
)
INDICATOR OF CONTENT DATE_TIME NAME ID ID2
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Pippo | 30. || ABDELLAH | || 0
Pluto | 14. || BBBBBBBBBBBBB | || 0
Duckling | || CCC | || 10/10 / 2010:11:11:11 | 0
Minni | 35. || KKKKKKKKKKKK | || 1
I'm doing some tests with XMLelements, XMLattributes, XMLconcat but not corrected its results.
Thank you very much.
Best regards.
Published by: city_andre on February 10, 2011 9.29
Published by: city_andre on February 10, 2011 9.42Hello
Please use the {code} tags to display the formatted text.
It is explained here: http://forums.oracle.com/forums/help.jspaYou don't mention ID2 column in the CREATE TABLE statement.
I guess that in fact, it looks like this? (if not, display the corrected structure)SQL> select * 2 from topolino 3 ; NAME ID ID2 DATE_TIME CONTENT_MEX FLAG -------------- ---------- ----------- ----------- ------------------ ---------- Pippo 30 AAAAAAAAAAA 0 Pluto 14 BBBBBBBBBBBBB 0 Paperino CCC 10/10/2010 0 Minni 35 KKKKKKKKKKKK 1
With SQL/XML functions, an element name can be dynamic, but it is not directly possible with the attributes.
Thus, in the query below, I had to hard-code the attribute name "duckling":select xmlelement("messages", xmlagg( case when id is not null then xmlelement(evalname(name), xmlattributes( id as "id", to_char(content_mex) as "content" ) ) else xmlelement("receptacle", xmlattributes( id2 as "Paperino", to_char(date_time, 'DD/MM/YYYY HH24:MI:SS') as "datetime", 0 as "status" ) ) end ) ) from topolino where flag = 0 ;
With XQuery, however, you can generate any expression attribute name:
with t as ( select xmltype( cursor( select name, id, id2, to_char(date_time,'DD/MM/YYYY HH24:MI:SS') date_time, content_mex from topolino where flag = 0 ) ) as doc from dual ) select xmlquery( '
{ for $i in /ROWSET/ROW return if ($i/ID) then element {$i/NAME} { attribute id {$i/ID}, attribute content {$i/CONTENT_MEX} } else element receptacle { attribute {$i/NAME} {$i/ID2}, attribute datetime {$i/DATE_TIME}, attribute status {0} } } ' passing t.doc returning content ) from t ;Published by: odie_63 on 10 Feb. 2011 20:37
-
When I open a program I get the error message "failed to set data for D3.
When I opened this program, the first thing that happens is a message that says: failed to set data for 'D3 '.
I click OK and the program opens and works BUT what does this mean message and how can I get rid of him?
Thank you
Finally resolved to get rid of my shopping list and bought a much better program called SPEEDY SHOPPER. After a few minor bumps, he works and the creator is very good about helping so that I will meet a prob.
Thank you all
-
Hello
I will apply patch bundle and my oracle database 11.2.0.2 and Microsoft Windows x 86 platform. As read the file Readme Oracle recommends to use OPatch utility version 11.2.0.1.3 or later. To check the inventory availability I use the command lsinventory % ORACLE_HOME%/OPatch/opatch.
It ended to give details below.
Citing O 11.2 patch .0.1.1
OPatch could not create/open history for writing file: * my home oracle path***\cfgtoollogs\opatch\opatch_history.txt
**ORACLE_HOME***\cfgtoollogs\opatch\opatch_history.txt (access is denied)
Setup Oracle interim Patch version 11.2.0.1.1
Copyright (c) 2009, Oracle Corporation. All rights reserved.
OPatch could open the log file, the recording is not possible
Home Oracle: *.
Inventory Center: C:\Program Files\Oracle\Inventory
from: n/a
OPatch version: 11.2.0.1.1
YES version: 11.2.0.2.0
YES location: * ORACLE_HOME * \oui
Location of the log file: **ORACLE_HOME**\cfgtoollogs\opatch\opatch2015-04-09_16-27-49PM.log
History of patch file: **ORACLE_HOME**\cfgtoollogs\opatch\opatch_history.txt
Failure of the load of the inventory... OPatch failed to load the inventory for the given Oracle Home.
LsInventorySession failed: LsInventory failed to create the log directory * ORACLE_HOME * \cfgtoollogs\opatch\lsinv\lsinventory2015-04 -.
09_16-27 - 49 PM .txt
OPatch failed with error code = 73
Can someone please help me solve this problem?
Do I need to install the last opatch utility?
Hello
This error message " LsInventorySession failed: LsInventory failed to create the log directory * ORACLE_HOME * \cfgtoollogs\opatch\lsinv\lsinventory2015-04 - .
09_16-27 - 49 PM .txt "
indicates that you have a permission problem with your file systems: cfgtoollogs/ORACLE_HOME/opatch
Check the owner of this file system.
Kind regards
-
Failed to configure the data source for EPMA in 11.1.2.3
I'm updating 11.1.2.1 to 11.1.2.3 via update on Windows 2008 R2 64 bit
4 .NET installed.
I get the below error.
[2013 05-13 T 17: 21:45.375 - 04:00] [EPMCFG] [ERROR] [EPMCFG-07303] [oracle. EPMCFG] [tid: 20] [ecid: 0000JuVlEW8Fw000jzwkno1H ^ L ^ ^ 000004, 0:138] [SRC_CLASS: com.hyperion.awb.config.AWBDBConfigurator] Oracle Data Provider for .NET entry does not exist in C:\Windows/Microsoft.NET/Framework64/v4.0.30319/CONFIG/machine.config, install it before configuring the repository of EPMA
[2013 05-13 T 17: 21:45.375 - 04:00] [EPMCFG] [ERROR] [EPMCFG-01020] [oracle. EPMCFG] [tid: 20] [ecid: 0000JuVlEW8Fw000jzwkno1H ^ L ^ ^ 000004, 0:138] [SRC_CLASS: com.hyperion.config.wizard.impl.RunAllTasks] error: []
com.hyperion.cis.config.ProcessingException
at com.hyperion.awb.config.AWBDBConfigurator.configure(AWBDBConfigurator.java:145)
at com.hyperion.config.wizard.impl.RunAllTasks.executeDbConfigTask(RunAllTasks.java:650)
at com.hyperion.config.wizard.impl.RunAllTasks.execute(RunAllTasks.java:296)
at com.hyperion.config.wizard.impl.RunnAllTasksState.run(RunnAllTasksState.java:92)
at java.lang.Thread.run(Thread.java:662)In accordance with the exception.
*Oracle Data Provider for .NET entry doesn't exist
*
ODP for .net is required by EPMA dimension server, which you can find here-->
http://www.Oracle.com/technetwork/database/Windows/downloads/utilsoft-087491.html
Thank you
hyperionEPM
Please check the answers as useful or correct for others to find them easilyPublished by: hyperionEPM on May 14, 2013 20:17
-
I now of tables:
Is there a way to generate under xml in a sql statement?DEPT DEPT_ID DEPT_NAME GRP_NAME --------- ------------- ------------------------ 1 Engineering Research and Development 2 Tool Design Research and Development EMP EMP_ID FIRST_NAME MIDDLE_NAME LAST_NAME DEPT_ID HIRE_DATE ---------- ------------ ------------- ------------ --------- ----------- 1 Roberto Luc Tamburello 1 1997-12-12 2 Rob (null) Walters 2 1998-01-05 3 Thierry (null) D'Hers 2 1998-01-11 4 Janice B. Galvin 2 2001-01-23 EMP_TEL EMP_ID TEL_ID -------- ---------- 1 1 1 5 2 2 3 3 4 4 TEL TEL_ID AREA_CODE PHONE_NO EXT TEL_TYPE_ID -------- ----------- ---------- ------ ------------- 1 111 1111111 111 1 2 222 2222222 222 1 3 333 3333333 333 1 4 444 4444444 444 1 5 555 5555555 (null) 2 TEL_TYPE TEL_TYPE_ID TEL_TYPE_CD ------------- ----------- 1 OFFICE 2 FAX 3 CELL
<Company> <Department> <DepartmentName>Engineering</DepartmentName> <GroupName>Research and Development</GroupName> <Employee> <FirstName>Roberto</FirstName> <MiddleName>Luc</MiddleName> <LastName>Tamburello</LastName> <HireDate>1997-12-12</HireDate> <Telephone> <TelephoneType>OFFICE</TelephoneType> <TelephoneNumber>111-111-1111</TelephoneNumber> <Extension>111</Extension> </Telephone> <Telephone> <TelephoneType>FAX</TelephoneType> <TelephoneNumber>555-555-5555</TelephoneNumber> </Telephone> </Employee> </Department> <Department> <DepartmentName>Tool Design</DepartmentName> <GroupName>Research and Development</GroupName> <Employee> <FirstName>Rob</FirstName> <LastName>Walters</LastName> <HireDate>1998-01-05</HireDate> <Telephone> <TelephoneType>OFFICE</TelephoneType> <TelephoneNumber>222-222-2222</TelephoneNumber> <Extension>222</Extension> </Telephone> </Employee> <Employee> <FirstName>Thierry</FirstName> <LastName>D'Hers</LastName> <HireDate>1998-01-11</HireDate> <Telephone> <TelephoneType>OFFICE</TelephoneType> <TelephoneNumber>333-333-3333</TelephoneNumber> <Extension>333</Extension> </Telephone> </Employee> <Employee> <FirstName>Janice</FirstName> <MiddleName>B.</MiddleName> <LastName>Galvin</LastName> <HireDate>2001-01-23</HireDate> <Telephone> <TelephoneType>OFFICE</TelephoneType> <TelephoneNumber>444-444-4444</TelephoneNumber> <Extension>444</Extension> </Telephone> </Employee> </Department> </Company>
Is there a way to generate under xml in a sql statement?
Yes, in this way:
SQL> select xmlelement("Company", 2 xmlagg( 3 xmlelement("Department", 4 xmlforest(dept_name as "DepartmentName", 5 grp_name as "GroupName" 6 ), 7 (select xmlagg( 8 xmlelement("Employee", 9 xmlforest(FIRST_NAME as "FirstName", 10 MIDDLE_NAME as "MiddleName", 11 LAST_NAME as "LastName", 12 to_char(HIRE_DATE,'yyyy-mm-dd') as "HireDate" 13 ), 14 (Select xmlagg( 15 xmlelement("Telephone", 16 xmlforest(TEL_TYPE_CD as "TelephoneType", 17 AREA_CODE||'-'||PHONE_NO as "TelephoneNumber", 18 EXT as "Extension" 19 ) 20 ) 21 ) 22 from TEL t, TEL_TYPE tt, EMP_TEL et 23 where t.TEL_TYPE_ID=tt.TEL_TYPE_ID 24 and et.EMP_ID = e.EMP_ID 25 and et.TEL_ID = t.TEL_ID 26 ) 27 ) 28 ) 29 from emp e 30 where e.DEPT_ID=d.DEPT_ID 31 ) 32 ) 33 ) 34 ).extract('/*') doc 35 from DEPT d; DOC ----------------------------------------------------------------------------------------------------
Engineering Research and Development Roberto Luc Tamburello 1997-12-12 OFFICE 111-1111111 111 FAX 555-5555555 Tool Design Research and Development Rob Walters 1998-01-05 OFFICE 222-2222222 222 Thierry D'Hers 1998-01-11 OFFICE 333-3333333 333 Janice B. Galvin 2001-01-23 OFFICE 444-4444444 444 Max
[My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/17/supporto-di-xml-schema-in-oracle-xmldb/] -
SQL Server Setup fails due to error XML Serializer
I tried (19 times) to install SQL Server 2008 Express on my Windows XP Home Edition with SP 3. Whenever it produces a "generation of the document XML error". I contacted the support for the software vendor of the program that requires SQL Server must be installed. There were attributed to an error in the XML serializer in Windows, they do not have the expertise to help me fix it. How can I fix it?
I have not messed with the "bowels" of Windows or edited before registry keys (which many solutions to similar questions seem to demand), so I'll need pretty detailed instructions.
The summary of the last attempt log is:
Summary of all:
Final result: failed: see details below
Exit code (decimal):-2068774911
Exit facility code: 1201
Exit error code: 1
Exit message: there was an error generating the XML document.
Start time: 2009-10-15 10:45:31
End time: 2009-10-15 10:45:56
Requested action: RunRulesComputer properties:
The machine processor count: 1
OS version: Windows XP
Operating system service pack: Service Pack 3
Region of the BONE: United States
OS language: English (United States)
Operating system architecture: x 86
Process architecture: 32-bit
Cluster OS: No.The package properties:
Description: SQL Server Database Services 2008
SQLProductFamilyCode: {628F8F38-600E-493D-9946-F4178F20A8A9}
ProductName: SQL2008
Type: RTM
Version: 10
SPLevel: 0
Installation location: c:\3c69b307a229367a4cccd3b804\x86\setup\
Edition of installation: EXPRESSThe user input parameters:
ACTION: RunRules
CONFIGURATIONFILE:
FEATURES: SQL, TOOLS
HELP: false
INDICATEPROGRESS: false
INSTANCENAME: SQLEXPRESS
MEDIASOURCE: c:\3c69b307a229367a4cccd3b804\
QUIET: true
QUIETSIMPLE: false
RULES: GlobalRules
X 86: falseConfiguration file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20091015_104514\ConfigurationFile.ini
Detailed results:
Rules with failures:
Global rules:
There is no scenario-specific rules.
Carry-over rules file: report of result of rule file is not available.
Exception of summary:
What follows is an exception stack listing the exceptions in outermost to deep order
Inner exceptions are being indentedException type: Microsoft.SqlServer.Chainer.Infrastructure.ChainerInfrastructureException
Message:
There was an error generating the XML document.
Data:
DisableWatson = true
Battery:
at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SerializeObject (String rootPath, Object objectToSerialize, Boolean saveToCache)
at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SerializeObject (object objectToSerialize)
at Microsoft.SqlServer.Chainer.Infrastructure.InputSettingService.SaveInputSettingValueToObject (InputSettingInfo inputSettingInfo, values from list 1)
at Microsoft.SqlServer.Chainer.Infrastructure.InputSettingService.SaveParsedArgumentsIntoInputSettingStore (InputSettingSource source, dictionary 2 parsedArguments, Boolean chainerSetting, Boolean ignoreSettingsForNotAllowedScnearios)
at Microsoft.SqlServer.Chainer.Infrastructure.InputSettingService.ProcessCommandLineArguments (String [] commandLineArguments, Boolean chainerSetting)
at Microsoft.SqlServer.Configuration.BootstrapExtension.ProcessFeatureCommandLineArgumentsAction.ExecuteAction (String actionId)
at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute (String actionId, TextWriter errorStream)
at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction (WorkflowObject metabase, TextWriter statusStream)
at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions (WorkflowObject metaDb, TextWriter loggingStream)
Type of the internal exception: System.InvalidOperationException
Message:
There was an error generating the XML document.
Battery:
to System.Xml.Serialization.XmlSerializer.Serialize (XmlWriter xmlWriter, Object o, namespaces in XmlSerializerNamespaces, String encodingStyle, string id)
to System.Xml.Serialization.XmlSerializer.Serialize (TextWriter textWriter, Object o, XmlSerializerNamespaces namespaces)
to System.Xml.Serialization.XmlSerializer.Serialize (TextWriter textWriter, Object o)
at Microsoft.SqlServer.Chainer.Infrastructure.DataStoreService.SerializeObject (String rootPath, Object objectToSerialize, Boolean saveToCache)
The inner exception type: System.Security.Cryptography.CryptographicException
Message:
The system cannot find the specified file.
Battery:
at System.Security.Cryptography.ProtectedData.Protect (Byte [], Byte [] optionalEntropy, DataProtectionScope scope userData)
to Microsoft.SqlServer.Common.SqlSecureString.WriteXml (XmlWriter writer)
to System.Xml.Serialization.XmlSerializationWriter.WriteSerializable (serializable IXmlSerializable, String name, String ns, Boolean isNullable, Boolean wrapped)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSqlEngineSetupPublic.Write6_SqlEngineSetupPublic (String n, String ns, SqlEngineSetupPublic o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSqlEngineSetupPublic.Write7_SqlEngineSetupPublic (Object o)The relevant error is:
The inner exception type: System.Security.Cryptography.CryptographicException
Message:
The system cannot find the specified file.
Battery:
at System.Security.Cryptography.ProtectedData.Protect (Byte [], Byte [] optionalEntropy, DataProtectionScope scope userData)
to Microsoft.SqlServer.Common.SqlSecureString.WriteXml (XmlWriter writer)
to System.Xml.Serialization.XmlSerializationWriter.WriteSerializable (serializable IXmlSerializable, String name, String ns, Boolean isNullable, Boolean wrapped)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSqlEngineSetupPublic.Write6_SqlEngineSetupPublic (String n, String ns, SqlEngineSetupPublic o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSqlEngineSetupPublic.Write7_SqlEngineSetupPublic (Object o)Looks like it's either just a missing file or you do not have permission to open it. Are you an administrator on the system you are trying to install this on? Have you tried all the options found here CIW (http://blogs.msdn.com/sqlexpress/archive/2009/06/15/installing-sql-server-2008-guidance.aspx)?
-
generation of XML for each record
I have a table db with a few thousand records in it. I need to generate an xml file for each record so that it can power a search machine.
Can someone help me with this? I could not get it. Here is the example of table.
create table test_xml)
number of U_ID
title varchar2 (500),
VARCHAR2 (500) keywords.
Description varchar2 (500),
VARCHAR2 (500) of the user.
e-mail varchar2 (500),
initiator_function varchar2 (500),
function_impacted varchar2 (500),
old_request_num varchar2 (500),
project_region varchar2 (500)
);
insert into test_xml values (1, "Heading1 test", "blah bla1", "test 123 ', 1234567',' [email protected]', 'test init funct', 'funct hit test', '55556677', 'abc' ');
insert into test_xml values (2, 'Title2 test', 'blah bla2', ' test 1232', 1234522',' [email protected]', 'test init funct2 ',' test power supply impacted2', ' 55556679', 'abcccs' ");
the end result is an XML for each record in this format.
<? XML version = "1.0" encoding = "utf-8"? >
<! DOCTYPE gsafeed PUBLIC "-//Google//DTD GSA RSS / / IN" "" > "".
< gsafeed >
< header >
< datasource > ID 1 < / datasource >
< feedtype > full < / feedtype >
< / header >
<>Group
" < analysis record immediately = 'true' url = ' http://test.com/SearchResult.php?id=1 "action = 'Add' mimetype =" text/html"lock ="true"> "
< content > <! [CDATA]
< html >
< head >
Heading1 test < title > < /title >
< meta name = "Keywords" content = "bla bla1" / >
< name meta = "description" content = "testing 123" / >
< name meta = "user" content = "1234567" / >
" < name meta = 'EMAIL' content = ' [email protected] " />
< name meta = "Source" content = "1" / >
< / head >
< body >
< p > user: 1234567
< p > EMAIL: bob . [email protected]
< p > INITIATOR_FUNCTION: test init funct
< p > FUNCTION_IMPACTED: test hit funct
< p > OLD_REQUEST_NUM: 555566777
< p > PROJECT_REGION: abc
< /p > < / body >
< / html >
[]] > < / content / >
< / recording >
< / Group >
< / gsafeed >
Thanks for any help.
I'd use SQL/XML functions, more rapid way to generate XML from relational data data.
Something like the following should you get.
It displays a document (such as a CLOB) per line in the base table:
with html_content as ( select xmlcdata( xmlserialize(document xmlelement("html" , xmlelement("head" , xmlelement("title", t.title) , xmlelement("meta", xmlattributes('Keywords' as "name", t.keywords as "content")) , xmlelement("meta", xmlattributes('description' as "name", t.description as "content")) , xmlelement("meta", xmlattributes('user' as "name", t.user_ as "content")) , xmlelement("meta", xmlattributes('EMAIL' as "name", t.email as "content")) , xmlelement("meta", xmlattributes('Source' as "name", t.u_id as "content")) -- ?? ) , xmlelement("body" , xmlelement("p", 'EMAIL: '||t.email) , xmlelement("p", 'INITIATOR_FUNCTION: '||t.initiator_function) , xmlelement("p", 'FUNCTION_IMPACTED: '||t.function_impacted) , xmlelement("p", 'OLD_REQUEST_NUM: '||t.old_request_num) , xmlelement("p", 'PROJECT_REGION: '||t.project_region) ) ) indent ) ) as content from test_xml t ) select '' || '' || xmlserialize(document xmlelement("gsafeed" , xmlelement("header" , xmlelement("datasource", 'ID 1') , xmlelement("feedtype", 'full') ) , xmlelement("group" , xmlelement("record" , xmlattributes( 'true' as "crawl-immediately" , 'http://test.com/searchresult.php?ID=1' as "url" , 'add' as "action" , 'text/html' as "mimetype" , 'true' as "lock" ) , xmlelement("content", html.content) ) ) ) indent ) from html_content html ;
NB: indent option is to print only, you can remove it if you don't need.
Maybe you are looking for
-
Thunderbird was working yesterday but my mac does the necessary conditions today!
I downloaded and installed Thunderbird 3.1.11 yesterday on Powermac G5 OS x 10.4.11 Tiger, put away all the 'Indies' stuff, read all my new messages (in Thunderbird). On today, he said "your system does not have to run Thunderbird. On verification, i
-
I got the habit to have firefox save all tabs and windows loading and then save automatically the next time that the computer turns on. I leave firefox market with windows 2 or 3 and 5 tabs on average at home during the shutdown, it was safe, well th
-
Office Paviliion p6610f: Hard Drive failure Imminent seek error rate
-
Is there another (non-it) Toshiba forum?
I'm looking for a Toshiba official forum for appliance, not computers.I have a new DVD video recorder with the fact that I have a problem, and while I found a few unofficial websites vaguely relevant, sure I can leave comments, I'm surprised that it
-
Portege 3440CT reinstalling the operating system and error NTLDR
Hi all I have a Portege 3400 I picked up a few years ago when starting a business. The machine was made by many, and it no longer starts. I want to reinstall the OS - the only problem is that I don't have the original CD Rom drive that came with the