<?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: SOAP username in mediation route in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SOAP-username-in-mediation-route/m-p/2282293#M56566</link>
    <description>Hello,
Sorry for delay.
We have redirected your issue to our ESB experts and then come back to you as soon as we can.
Best regards
Sabrina</description>
    <pubDate>Tue, 06 Jun 2017 08:27:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-06T08:27:43Z</dc:date>
    <item>
      <title>SOAP username in mediation route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SOAP-username-in-mediation-route/m-p/2282292#M56565</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We have a mediation route deployed to our runtime (6.3.1) which has basic authenticon active. The authentication is based on the Jaas domain karaf (default installation) and works. Only I want to be able to retrieve the supplied username and determine if the user has access to this resource.&lt;/P&gt; 
&lt;P&gt;So far I added an&amp;nbsp; Authorization header to the soap call (instead of the WS username stuff) which I could parse to a talend subjob called from the route. &amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="auth1.PNG" style="width: 343px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuHf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147226i12C7D1784572D4D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuHf.png" alt="0683p000009LuHf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Only when deploy this errors all over the place &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This error message:&lt;/P&gt; 
&lt;P&gt;Execution of Talend job 'expense_portal.basicauthentication_0_1.BasicAuthentication' with args:&lt;BR /&gt;[--context=Default,&lt;BR /&gt;--context_param accept-encoding=gzip,deflate,&lt;BR /&gt;--context_param Authorization=Basic a2FyY...............wMQ==,&lt;BR /&gt;&amp;nbsp;--context_param breadcrumbId=ID-ES-A-ESB-01-49219-1494881483209-1-1,&lt;BR /&gt;&amp;nbsp;--context_param CamelAuthentication=Subject:&lt;BR /&gt;&amp;nbsp;Principal: UserPrincipal[karaf]&lt;BR /&gt;&amp;nbsp;Principal: RolePrincipal[viewer]&lt;BR /&gt;&amp;nbsp;Principal: GroupPrincipal[admingroup]&lt;BR /&gt;&amp;nbsp;Principal: RolePrincipal[manager]&lt;BR /&gt;&amp;nbsp;Principal: RolePrincipal[admin]&lt;BR /&gt;&amp;nbsp;Principal: RolePrincipal[systembundles]&lt;BR /&gt;, --context_param CamelCxfMessage=&lt;BR /&gt;{SOAPAction=&lt;A href="http://www.talend.org/service/MasterData" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talend.org/service/MasterData&lt;/A&gt;, http.base.path=&lt;A href="https://localhost" target="_blank"&gt;https://localhost&lt;/A&gt;, HTTP.REQUEST=Request(POST /expense/Expense)@718c7b88,&lt;BR /&gt;&amp;nbsp;org.apache.cxf.transport.Destination=org.apache.cxf.transport.servlet.ServletDestination@4b6ebccc, HTTP.CONFIG=org.eclipse.jetty.servlet.ServletHolder$Config@7daa54d1,&lt;BR /&gt;&amp;nbsp;org.apache.cxf.binding.soap.SoapVersion=org.apache.cxf.binding.soap.Soap11@407ea915, org.apache.cxf.message.Message.QUERY_STRING=null, javax.xml.ws.wsdl.operation={&lt;A href="http://www.talend.org/service/}MasterData" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talend.org/service/}MasterData&lt;/A&gt;, javax.xml.ws.wsdl.service={&lt;A href="http://www.talend.org/service/}Expense" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talend.org/service/}Expense&lt;/A&gt;, org.apache.cxf.wsdl.interceptors.DocLiteralInInterceptor.DocLiteralInInterceptor.keep-parameters-wrapper=true, org.apache.cxf.security.transport.TLSSessionInfo=org.apache.cxf.security.transport.TLSSessionInfo@52bccaa9, org.apache.cxf.message.Message.ENCODING=UTF-8, HTTP.CONTEXT=ServletContext@HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.apache.cxf.cxf-rt-transports-http_3.1.7 [116], contextID=default]}, Content-Type=text/xml;charset=UTF-8, org.apache.cxf.security.SecurityContext=org.apache.cxf.interceptor.security.DefaultSecurityContext@6c0a84ee, org.apache.cxf.continuations.ContinuationProvider=org.apache.cxf.transport.http.Servlet3ContinuationProvider@43a94962, org.apache.cxf.message.Message.PROTOCOL_HEADERS={accept-encoding=[gzip,deflate], Authorization=[Basic a2FyY................wMQ==], connection=[keep-alive], Content-Length=[955], content-type=[text/xml;charset=UTF-8], Host=[localhost], SOAPAction=["&lt;A href="http://www.talend.org/service/MasterData" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talend.org/service/MasterData&lt;/A&gt;"], User-Agent=[Apache-HttpClient/4.1.1 (java 1.5)]}, org.apache.cxf.request.url=&lt;A href="https://localhost/expense/Expense" target="_blank"&gt;https://localhost/expense/Expense&lt;/A&gt;, org.apache.cxf.interceptor.DocLiteralInInterceptor.DocLiteralInInterceptor.keep-parameters-wrapper=true, Accept=null, org.apache.cxf.request.uri=/expense/Expense,&lt;BR /&gt;&amp;nbsp;org.apache.cxf.service.model.MessageInfo=[MessageInfo INPUT: {&lt;A href="http://www.talend.org/service/}MasterDataRequest" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talend.org/service/}MasterDataRequest&lt;/A&gt;], org.apache.cxf.message.Message.PATH_INFO=/expense/Expense,&lt;BR /&gt;&amp;nbsp;org.apache.cxf.transport.https.CertConstraints=null, HTTP.RESPONSE=HTTP/1.1 200&lt;BR /&gt;Date: Tue, 16 May 2017 08:27:51 GMT&lt;/P&gt; 
&lt;P&gt;, soap.body.ns.context={ser=&lt;A href="http://www.talend.org/service/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talend.org/service/&lt;/A&gt;, soapenv=&lt;A href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;}, org.apache.cxf.headers.Header.list=[], schema-validation-enabled=NONE, org.apache.cxf.request.method=POST, org.apache.cxf.async.post.response.dispatch=true, org.apache.cxf.message.Message.IN_INTERCEPTORS=[org.apache.cxf.transport.https.CertConstraintsInterceptor@762a7603], HTTP_CONTEXT_MATCH_STRATEGY=stem, http.service.redirection=null, org.apache.cxf.message.Message.BASE_PATH=/expense/Expense, javax.xml.ws.wsdl.port={&lt;A href="http://www.talend.org/service/}ExpensePort" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talend.org/service/}ExpensePort&lt;/A&gt;, org.apache.cxf.configuration.security.AuthorizationPolicy=org.apache.cxf.configuration.security.AuthorizationPolicy@42f703ed, javax.xml.ws.wsdl.interface={&lt;A href="http://www.talend.org/service/}ExpensePortType" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talend.org/service/}ExpensePortType&lt;/A&gt;, javax.xml.ws.wsdl.description=/Expense?wsdl, org.apache.cxf.message.Message.FIXED_PARAMETER_ORDER=false}, --context_param CamelHttpCharacterEncoding=UTF-8, --context_param CamelHttpMethod=POST, --context_param CamelHttpPath=, --context_param CamelHttpUri=/expense/Expense, --context_param CamelRedelivered=true, --context_param CamelRedeliveryCounter=2, --context_param CamelRedeliveryMaxCounter=2, --context_param connection=keep-alive, --context_param Content-Type=text/xml;charset=UTF-8, --context_param Host=localhost, --context_param operationName=MasterData, --context_param operationNamespace=&lt;A href="http://www.talend.org/service/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talend.org/service/&lt;/A&gt;, --context_param org.apache.cxf.headers.Header.list=[], --context_param SOAPAction=&lt;A href="http://www.talend.org/service/MasterData" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talend.org/service/MasterData&lt;/A&gt;, --context_param User-Agent=Apache-HttpClient/4.1.1 (java 1.5)]' failed, see stderr for details&amp;lt;/faultstring&amp;gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In this you can clearly see that the user is karaf, so I was wondering which part of the exchange this is saved. Because I prefer to use the default stuff instead of creating my own. Found only some old java&amp;nbsp;classes which won't work anymore.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So a pointer to a (preferabel) Simple expression to retrieve the Userprincipal would be nice.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SOAP-username-in-mediation-route/m-p/2282292#M56565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: SOAP username in mediation route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SOAP-username-in-mediation-route/m-p/2282293#M56566</link>
      <description>Hello,
Sorry for delay.
We have redirected your issue to our ESB experts and then come back to you as soon as we can.
Best regards
Sabrina</description>
      <pubDate>Tue, 06 Jun 2017 08:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SOAP-username-in-mediation-route/m-p/2282293#M56566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-06T08:27:43Z</dc:date>
    </item>
  </channel>
</rss>

