<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Validate my tESBProviderRequest payload using xsd in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Validate-my-tESBProviderRequest-payload-using-xsd/m-p/2305747#M77366</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems to be a syntax/compilation error in your tXSDValidator component. Please validate by checking the code section in your Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 13:33:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-27T13:33:16Z</dc:date>
    <item>
      <title>Validate my tESBProviderRequest payload using xsd</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-my-tESBProviderRequest-payload-using-xsd/m-p/2305746#M77365</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;i want to validate my SOAP request before doing any processing on it. I have seen the component tXSDValidator but i get this exception :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;org.talend.designer.runprocess.ProcessorException: Erreurs de compilation du Job 
Au moins le Job "brouillon" a des erreurs de compilation, réparez et réexportez.
Ligne en erreur: 1524
Message détaillé: Cannot cast from Document to String
Il peut y avoir d'autres erreurs causées par la compatibilité avec la JVM. Vérifiez que les paramètres de votre JVM sont les mêmes que dans le studio.

	at org.talend.designer.runprocess.JobErrorsChecker.checkLastGenerationHasCompilationError(JobErrorsChecker.java:338)

	at org.talend.designer.runprocess.DefaultRunProcessService.checkLastGenerationHasCompilationError(DefaultRunProcessService.java:510)

	at org.talend.designer.runprocess.RunProcessService.checkLastGenerationHasCompilationError(RunProcessService.java:316)

	at org.talend.designer.runprocess.ProcessorUtilities.generateBuildInfo(ProcessorUtilities.java:820)

	at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:601)

	at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1861)

	at org.talend.designer.runprocess.RunProcessContext$1.run(RunProcessContext.java:601)

	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:466)

	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:374)

	at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:527)

	at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:284)

	at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1190)

	at org.talend.designer.runprocess.RunProcessContext.exec(RunProcessContext.java:548)

	at org.talend.designer.runprocess.remote.RunRemoteProcessContext.exec(RunRemoteProcessContext.java:85)

	at org.talend.designer.runprocess.ui.ProcessComposite.exec(ProcessComposite.java:1401)

	at org.talend.designer.runprocess.ui.views.ProcessView$RunAction.run(ProcessView.java:701)

	at org.talend.designer.runprocess.ui.actions.RunProcessAction.run(RunProcessAction.java:58)

	at org.talend.designer.core.debug.JobLaunchConfigurationDelegate$1.run(JobLaunchConfigurationDelegate.java:84)

	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)

	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)

	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)

	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)

	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)

	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)

	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)

	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)

	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)

	at org.talend.rcp.intro.Application.start(Application.java:265)

	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)

	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)

	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)

	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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)

	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)

	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)


&lt;/PRE&gt; 
&lt;P&gt;Below my job and the config of the tESBProviderRequest ;&amp;nbsp; the schema produced there is one column "payload" of type "Document"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5QN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135172iBD473FFFE7FD0DBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5QN.png" alt="0683p000009M5QN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is the config of the tXSDValidator&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5kq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130073i8FA1155F24055FA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5kq.png" alt="0683p000009M5kq.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can anyone please help me get the right way to do that xsd validation of my incoming SOAP request&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Ousmane SOW&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-my-tESBProviderRequest-payload-using-xsd/m-p/2305746#M77365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Validate my tESBProviderRequest payload using xsd</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-my-tESBProviderRequest-payload-using-xsd/m-p/2305747#M77366</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems to be a syntax/compilation error in your tXSDValidator component. Please validate by checking the code section in your Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 13:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-my-tESBProviderRequest-payload-using-xsd/m-p/2305747#M77366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-27T13:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Validate my tESBProviderRequest payload using xsd</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-my-tESBProviderRequest-payload-using-xsd/m-p/2305748#M77367</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I finally got a solution. It is to convert the payload to string and validate the xml string in the tXSDValidator.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 890px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5Fd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137546i6EF3510F4D340AE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5Fd.png" alt="0683p000009M5Fd.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I use a tJavaRow to :&lt;/P&gt; 
&lt;P&gt;1. convert my xml payload to string&lt;/P&gt; 
&lt;P&gt;2. keep the original payload for further processing.&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;//Code généré selon les schémas d'entrée et de sortie
output_row.payload = input_row.payload;
output_row.payloadString = input_row.payload.toString();&lt;/PRE&gt; 
&lt;P&gt;Below the config of the tXSDValidator :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M57Z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133059i63F3200CE6A30F52/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M57Z.png" alt="0683p000009M57Z.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The outputs (main &amp;amp; reject) will have the data coming from the tJavaRow =&amp;gt; payload and payloadString.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope it can help anyone having the same problem&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 13:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-my-tESBProviderRequest-payload-using-xsd/m-p/2305748#M77367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-27T13:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Validate my tESBProviderRequest payload using xsd</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-my-tESBProviderRequest-payload-using-xsd/m-p/2305749#M77368</link>
      <description>&lt;P&gt;Awesome!!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for sharing the solution &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;, appreciate that.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 13:53:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-my-tESBProviderRequest-payload-using-xsd/m-p/2305749#M77368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-27T13:53:05Z</dc:date>
    </item>
  </channel>
</rss>

