Praveen Yendluri

Ranch Hand
+ Follow
since Apr 13, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Praveen Yendluri

I have a wsdl containing SAOP Header and SOAP Body. I generated client with eclipse and APACHE CXF and sent request. But request is failing saying Header is missed or invalid.
Below is my wsdl.

Can any one help me how to write client with header as per wsdl.

<?xml version="1.0" encoding="UTF-8"?>
<types>
<xsd:schema>
<xsd:import
namespace="http://finservice.cl.com/Services/financier/Operational/Messages/Request"
schemaLocation="financierRequest.xsd"/>
<xsd:import
namespace="http://finservice.cl.com/Services/financier/Operational/Messages/Response"
schemaLocation="financierResponse6.xsd"/>
<xsd:import namespace="http://finservice.cl.com/Services/Faults"
schemaLocation="finserviceFaults.xsd"/>
<xsd:import namespace="http://www.cl.com/Services/SOAPHeaders"
schemaLocation="CLSoapHeaders.xsd"/>
<xsd:import
namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
schemaLocation="oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
</xsd:schema>
</types>


<message name="WS-Security-SOAPHeader">
<part element="wssec:Security" name="Security"/>
</message>

<message name="CLSOAPHeader">
<part element="hdr_ns:RequestContextHeader" name="requestHeader"/>
<part element="hdr_ns:ProcessingNodesHeader" name="processingNodesHeader"/>
</message>


<message name="financierRequest">
<part element="req_ns:financierRequestElement" name="financierRequestElement"/>
</message>


<message name="financierResponse">
<part element="res_ns:financierResponseElement" name="financierResponseElement"/>
</message>


<message name="Fault_Exception">
<part element="fault_ns:Fault" name="fault"/>
</message>


<portType name="finServicePortType">
<operation name="getFinanciers">
<input message="tns:financierRequest"/>
<output message="tns:financierResponse"/>
<fault message="tns:Fault_Exception" name="Fault_Exception"/>
</operation>
</portType>


<binding name="finServiceBinding" type="tns:finServicePortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

<operation name="getFinanciers">
<soap:operation soapAction=""/>
<input>
<soap:body parts="financierRequestElement" use="literal"/>
<soap:header message="tns:CLSOAPHeader" part="requestHeader" use="literal"/>
<!-- soap:header message="tns:CLSOAPHeader" part="processingNodesHeader" use="optional"/-->
<soap:header message="tns:WS-Security-SOAPHeader" part="Security" use="literal"/>
</input>
<output>
<soap:body use="literal"/>
<soap:header message="tns:CLSOAPHeader" part="processingNodesHeader" use="literal"/>
<soap:header message="tns:WS-Security-SOAPHeader" part="Security" use="literal"/>
</output>
<fault name="Fault_Exception">
<soap:fault name="Fault_Exception" use="literal"/>
</fault>
</operation>
</binding>

<service name="financierService_v4">
<port binding="tns:finServiceBinding" name="finServicePort">
<soap:address location="http://finservice.qtcorpCL.cl.com:20021/finservService"/>
</port>
</service

Appreciate your help regarding this.
Thanks,
5 years ago
Hello All,

Please let me know, how to add TO_CHAR (emp.depId) =dep.id restriction in Hibernate.

Thanks,
Kumar
Hi Everyone,

Can any one tell me how to call Oracle procedure with hibernate in java?

My Oracle package specification has the following procedure which is copying data from STAGE tables to target tables.

PROCEDURE PROC_CUSTOMER (pv_err_msg in out varchar2, pn_err_cd in out number);

My Java side Hibernate code is:

Session session = sessionFactory.getCurrentSession();
session.createSQLQuery(CALL PKG_IMPORT.PROC_CUSTOMER(:errMsg,:errCode)).setParameter("errMsg","'S'").setParameter("errCode",new Integer(0));

But respective procedure is not calling at all.

Can anyone tell me the way to call package in oracle.

Thanks,
Praveen
Hi All,

My prolem was solved. Sample code below

HSSFCellStyle style = ((HSSFWorkbook)wb).createCellStyle();
HSSFPalette palette = ((HSSFWorkbook)wb).getCustomPalette();
palette.setColorAtIndex((short)57, (byte)255, (byte)228, (byte)225);
style.setFillForegroundColor(palette.getColor(57).getIndex());
style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);

Thanks very much everyone for your kind help.

Regards,
ypk
Hi Olivier,

I have tried with the given sample piece, but not working.

Please help me.


Thanks,
ypk
Hello All,

I have requirement to apply colors to headers in Excel Report. I am poi 3.8v to create cells and applying styles.
In the below fashion I have created style and callingwhen ever required. But it is not working .

private static CellStyle setThinBorder_NoneColor(Workbook wb, DataFormat df) {

HSSFWorkbook hssfwb = (HSSFWorkbook)wb;
HSSFPalette palette = hssfwb.getCustomPalette();
short colorIndex = 45;
palette.setColorAtIndex(colorIndex, (byte)201, (byte)221, (byte)255);
HSSFCellStyle style = ((HSSFWorkbook)wb).createCellStyle();
style.setFillForegroundColor(colorIndex);
style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
return style;
}

Can anyone help me how to apply custom colors with POI.

Thanks,
ypk
Hi Oliver,

Thanks, for your response.
But not worked out.

Is there any way to apply custom clors to cexcel cells with POI.

Thanks,
ypk
Hi Everyone,

I have to apply custom colors to Excel cells of HSSF Workbook. I have created cell style like but it is not applying expected clor

HSSFWorkbook hssfwb = (HSSFWorkbook)wb;
HSSFPalette palette = hssfwb.getCustomPalette();
short colorIndex = 45;
palette.setColorAtIndex(colorIndex, (byte)201, (byte)221, (byte)255);
CellStyle style = wb.createCellStyle();
style.setFillForegroundColor(colorIndex);
style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
return style;
Please help me on this.

Thanks,
ypk
Could anyone provide me solution on this?

Thanks,
Praveen
10 years ago
JSF
Thank you vey much guys for your response.

I have used Ajax to set bean property.

Thanks,
Praveen
10 years ago
JSF
Hello Everyone,

I am opening a pop-up in jsf page. The pop contains normal html Close button. Clicking on this button should go to javascript function and in this function it has to set value to property of managed bean.

Ex: setIsGlobal(boolean isGlobal)

I need set value to above mathod in managed bean to false.

Requesting you to help me on this?

Thanks,
Praveen
10 years ago
JSF
Hello Everyone,

How to apply scroll to <h:datatable> that to fixed header . I have tried for below code but it wont disply.

<h:dataTable styleClass="histScroll" headerClass="calltableheader" value="#{call.localHistory}"
var="result" rowClasses="callcolumn" >

<h:column >
<f:facet name="header">Call Data</f:facet>
<h:outputText id="mstoms" value="#{result.callHistory}" />
</h:column>
<h:column >

<f:facet name="header">Date</f:facet>
<h:outputText id="date" value="#{result.newvalue}" />
</h:column>
</h:dataTable>

CSS/Styles
.histScroll{


height:75px;
overflow-y: auto;

}

Could any one helpme on this?

Thank you,
Praveen
10 years ago
JSF
Hi Macro,

Yes, I want a button in a popup that was generated from parent window , clicking on that button should perform two things.

1) It has to change property of my backing bean (ex: boolean flag)
2) And it should simply closes window (without refreshing parent window)

I have tried with "action" and "action Listener" attributes of button, but after closing popup parent page is getting refreshed. But my requirement is it should not refresh parent page, simply it should closes and changing property of backing bean.

Thanks,
Praveen
10 years ago
JSF
Hi,

I am new to EXT JS, I am using JSF+ExtJs in my project.
I have a requirement like when clicking on Jsf command link (just a link in xhtml) , it should open new window in ext js and calls action method of Managed bean (JSF Managed bean). Managed beans fetches data from DB and displays those data in xhtml (front end) in tabular format.

That xhtml should be opened in the earlier pop up.

It would be great if any helps me in ths regard.

Thanks,
Praveen
10 years ago
JSF