• Mridu
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 15
    Questions
  • 9
    Replies

Class:public with sharing class MTRFWSHelperSD{
 
public MTRFSoftwareDownloadWS.GetDownloadsRssMTRResult_element sdresult=null;
     MTRFProdInfoWrapperSD  infowrap=new MTRFProdInfoWrapperSD();
     public void getValue(){
     
     
    MTRFSoftwareDownloadWS.RosServiceSoap rssmtrresult=new MTRFSoftwareDownloadWS.RosServiceSoap();
   system.debug('am here');
    rssmtrresult.timeout_x =60000;
   
    rssmtrresult.GetDownloadsRssMTR(1979,5);
    
   
     system.debug('am Done');
   
     }}

 

 

Webservice:

public class MTRFSoftwareDownloadWS {
    
    public class GetRosIds_element {
        public Integer pazId;
        private String[] pazId_type_info = new String[]{'pazId','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{'pazId'};
    }
    public class GetDownloadsRssResult_element {
   
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{};
    }
    public class GetDownloadsRssResponse_element {
        public MTRFSoftwareDownloadWS.GetDownloadsRssResult_element GetDownloadsRssResult;
        private String[] GetDownloadsRssResult_type_info = new String[]{'GetDownloadsRssResult','http://tempuri.org/','GetDownloadsRssResult_element','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{'GetDownloadsRssResult'};
    }
    public class GetDownloadsRss_element {
        public Integer pazId;
        public Integer maxItems;
        private String[] pazId_type_info = new String[]{'pazId','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
        private String[] maxItems_type_info = new String[]{'maxItems','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{'pazId','maxItems'};
    }
    public class GetDownloadsRssMTRResult_element {
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{};
    }
    public class GetRosIdsResponse_element {
        public String GetRosIdsResult;
        private String[] GetRosIdsResult_type_info = new String[]{'GetRosIdsResult','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{'GetRosIdsResult'};
    }
    public class RosServiceSoap {
        public String endpoint_x = 'http://cu-staging.customers.thomsonreuters.com:8088/Dev/ProductSupport/rosService.asmx';
        public Map<String,String> inputHttpHeaders_x;
        public Map<String,String> outputHttpHeaders_x;
        public String clientCertName_x;
        public String clientCert_x;
        public String clientCertPasswd_x;
        public Integer timeout_x;
        
        private String[] ns_map_type_info = new String[]{'http://tempuri.org/', 'MTRFSoftwareDownloadWS'};
        public String GetRosIds(Integer pazId) {
            MTRFSoftwareDownloadWS.GetRosIds_element request_x = new MTRFSoftwareDownloadWS.GetRosIds_element();
            MTRFSoftwareDownloadWS.GetRosIdsResponse_element response_x;
            request_x.pazId = pazId;
            Map<String, MTRFSoftwareDownloadWS.GetRosIdsResponse_element> response_map_x = new Map<String, MTRFSoftwareDownloadWS.GetRosIdsResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/GetRosIds',
              'http://tempuri.org/',
              'GetRosIds',
              'http://tempuri.org/',
              'GetRosIdsResponse',
              'MTRFSoftwareDownloadWS.GetRosIdsResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.GetRosIdsResult;
        }
        public MTRFSoftwareDownloadWS.GetDownloadsRssMTRResult_element GetDownloadsRssMTR(Integer pazId,Integer maxItems) {
           system.debug('Inside GetDownloadsRssMTR');
            MTRFSoftwareDownloadWS.GetDownloadsRssMTR_element request_x = new MTRFSoftwareDownloadWS.GetDownloadsRssMTR_element();
            MTRFSoftwareDownloadWS.GetDownloadsRssMTRResponse_element response_x;
            request_x.pazId = pazId;
            request_x.maxItems = maxItems;
            Map<String, MTRFSoftwareDownloadWS.GetDownloadsRssMTRResponse_element> response_map_x = new Map<String, MTRFSoftwareDownloadWS.GetDownloadsRssMTRResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(  //Here it shows this exception
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/GetDownloadsRssMTR',
              'http://tempuri.org/',
              'GetDownloadsRssMTR',
              'http://tempuri.org/',
              'GetDownloadsRssMTRResponse',
              'MTRFSoftwareDownloadWS.GetDownloadsRssMTRResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.GetDownloadsRssMTRResult;
        }
        public MTRFSoftwareDownloadWS.GetDownloadsRssResult_element GetDownloadsRss(Integer pazId,Integer maxItems) {
            MTRFSoftwareDownloadWS.GetDownloadsRss_element request_x = new MTRFSoftwareDownloadWS.GetDownloadsRss_element();
            MTRFSoftwareDownloadWS.GetDownloadsRssResponse_element response_x;
            request_x.pazId = pazId;
            request_x.maxItems = maxItems;
            Map<String, MTRFSoftwareDownloadWS.GetDownloadsRssResponse_element> response_map_x = new Map<String, MTRFSoftwareDownloadWS.GetDownloadsRssResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/GetDownloadsRss',
              'http://tempuri.org/',
              'GetDownloadsRss',
              'http://tempuri.org/',
              'GetDownloadsRssResponse',
              'MTRFSoftwareDownloadWS.GetDownloadsRssResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.GetDownloadsRssResult;
        }
    }
    public class GetDownloadsRssMTR_element {
        public Integer pazId;
        public Integer maxItems;
        private String[] pazId_type_info = new String[]{'pazId','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
        private String[] maxItems_type_info = new String[]{'maxItems','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{'pazId','maxItems'};
    }
    public class GetDownloadsRssMTRResponse_element {
        public MTRFSoftwareDownloadWS.GetDownloadsRssMTRResult_element GetDownloadsRssMTRResult;
        private String[] GetDownloadsRssMTRResult_type_info = new String[]{'GetDownloadsRssMTRResult','http://tempuri.org/','GetDownloadsRssMTRResult_element','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{'GetDownloadsRssMTRResult'};
    }
}

 

System.CalloutException: IO Exception: Read timed out
Class.MTRFSoftwareDownloadWS.RosServiceSoap.GetDownloadsRssMTR: line 79, column 1 Class.MTRFWSHelperSD.getValue: line 12, column 1

 

 

Please help me on this..

  • November 18, 2011
  • Like
  • 0

How to include fields from multiple objects in apex:repeat..i want both PS(Payment_Schedule__c) ans RC's (Receipt__c) duedate..hw i will gt?please find a solution

<table width="100%" border="0" cellspacing="0">
   
    <tr style="font-size:14px; font-weight:bold;">
        <td>Particulars</td>
        <td>Receipt No</td>
        <td>Due Date</td>
        <td>Amount Due</td>
        <td>Amount Paid</td>
        </tr>
        <apex:repeat value="{!col}"  var="PS">
  <apex:repeat value="{!rec}" var="RC">
       <tr style="font-size:14px;">
       <td>{!PS.Name}</td>
       <td>{!RC.Name}</td>
       <td><apex:outputtext value="{0,date,dd-MMM-yyyy}">
       <apex:param value="{!PS.Due_Date__c}"/>
       </apex:outputtext>
      
       </td>
       <td><apex:outputtext value="{0,number,###,###,###,##0.00}">
       <apex:param value="{!PS.Total__c}"/>
       </apex:outputtext>
       </td>
       <td>{!PS.Amount_Received__c}</td>
      </tr>
 </apex:repeat>
   </apex:repeat>
    <br/>
    <tr style="font-size:14px;">
    <td width="40%">
    <apex:outputText style="font-size:12px;text-align:right;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</apex:outputText>
<apex:outputText style="font-size:12px;text-align:right;" value="{0,number,###,###,###,##0.00}">
   <apex:param value="{!Opportunity.Total_Scheduled_Amount_before__c}"/>
   </apex:outputText>
    </td>
    </tr>
    <tr style="font-size:14px;">
    <td>
    <apex:outputText style="font-size:12px;text-align:right;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Balance to be paid:</apex:outputText>
    </td>
    </tr>
   
    </table>
 
public class AccountStateDet {

    public List<Payment_Schedule__c> col{get;set;}
    
    public List<Receipt__c> rec{get;set;}
    public AccountStateDet(ApexPages.StandardController controller) {
        String oppId = Apexpages.CurrentPage().getParameters().get('id');
        col= [Select Name,Display_Order__c,Tentative_Due_Date__c,Installment_Value_in__c,Balance__c,Installment_Basic_Value__c,
                VAT__c,Service_Tax__c,Deposits_Other_Charges__c,Total__c,Due_Date__c,Opportunity__r.Name,Amount_Received__c 
                from Payment_Schedule__c where Opportunity__c =: oppId Order By Display_Order__c]; 
         rec=[Select Name,Amount__c,Receipt_Date__c from Receipt__c  where Opportunity__c =:oppId Order By Receipt_Date__c]
  
    }
    }



  • August 19, 2011
  • Like
  • 0

Hi everyone,

 

i want to export data to excel using vfpage.

So i did like this.i put the content type as  folllows.its working fine.

<apex:page standardcontroller="Quote" contentType="application/vnd.ms-excel" cache="true">
  <apex:pageBlock title="Quotes">
      <apex:pageBlockTable value="{!Quote}" var="q">
         <apex:column />
         <apex:column value="{!q.id}"/>
         <apex:column value="{!q.Name}"/>
         <apex:column value="{!q.Subtotal}"/>
      </apex:pageBlockTable>
   </apex:pageBlock>
 
</apex:page>

 

Currently the filename of the excel and sheet name is my vfpage name-ExportQuotes.But if i want to display the products also in the same file but as different sheet.ie:Quote in Sheet1  and QuoteLine Items in Sheet2 in same page.is it posible.Can anyone help me on this?Its urgent.........

  • April 28, 2011
  • Like
  • 0

 

hi

i have installed SQL Server 2005  and visual web developer express 2005 .i want to get data from SQL say one table account-accountname and address  into salesforce.How we can connect sqL server to salesforce.Is it possible.Give me  a solution asap

  • January 28, 2011
  • Like
  • 2

 

hi

 

i could not able to find the optional checkbox in lead edit page -Assign using active assignment rule for displaying in vfpage.

i have created laed assignment rules.how to include that in vfpage which i have created for lead.It is exposed as site.When I click submit it should assign to the particular users for which I have created lead assignment rules. please give me immediate solution

  • January 27, 2011
  • Like
  • 0

I want to display serial nos like

1.0

     1.1

      1.2

2.0

     2.1

     2.2

 

how to display it

  • December 15, 2010
  • Like
  • 0

 

 

Hi

 

 

       I  have field called additional terms and standard terms in Terms & conditions section in Quotes.Standard terms can only be edited/deleted by admin.Additional terms can be edited by other users and should submit for admin's approval

If he  approves  he can edit the  additional terms to standard terms. I tried using approval process.Can anyone explain how workflow works?After approval  how admin can add the additional terms to standard terms.Only on admin's approval quote can be create.

  • December 15, 2010
  • Like
  • 0

Is it possible to create one more lead currency in custom objects in opportunity.Anyone know abt this.

  • December 10, 2010
  • Like
  • 0

 

 

i was trying to create quote in which i want to display the product family,under tat,product name,below that product desc-eg:iwant to display the product family like given below.

 

1.0    A1              -Pdtfamily                                                                                                                                 
1.1    a1                  Pdtname                                                                           50,000     40,000          1        40,000           
       -Pdtdescription
 1.0  A1  

1.2   a2           -pdtname
         -                                                                                                                 1,500        1,200        30     36,000
         -  Pdtdescription                                                                                                                   750           500        20     10,000
         --------------------------------------------------------------------------------------------------------------------
         Module Total [A]                                                                                                           86,000

 

But for me the product family name is repaeting in a2 also. i tried using group by,bt it does nt support  pdt description which is richtext area.how can i avoid repeating of pdtfamily in visual force page.

  • December 03, 2010
  • Like
  • 0

 

Hi,

 

I was trying to display the subtotal of product price for each product family.eg:A

A------- Product Family

a1-Product   p1-Price for product1

b1-Product2 p2-Price for product2

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

                         p3-Subtotal

B-Product family

b1-Product   p1-Price for product1

b2-Product2 p2-Price for product2

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

                         p3-Subtotal

 

I tried using Group By clause like this

 

for(QuoteLineItem Qli1:[select SUM(SubTotal),ProdFamily__c from QuoteLineItem where QuoteId = :quoteid GROUP BY (ProdFamily__c)])
        {
            amttt= amttt + Qli1.SubTotal;
          
        }  

But It is showing

Loop variable must be an SObject or list of AggregateResult error.please help me in this

  • November 30, 2010
  • Like
  • 0

I need to display the date in "Nov 25th,2010" format.How can i include "th" along with date format.

  • November 25, 2010
  • Like
  • 0

How to display Currency in Rs1,23,4000.00 using controller?

  • August 27, 2010
  • Like
  • 0

i want to display currency in Rs 1,00,000.00how?

  • August 27, 2010
  • Like
  • 0

how to use numberformat  for currency in apex class

  • August 27, 2010
  • Like
  • 0

 

hi

i have installed SQL Server 2005  and visual web developer express 2005 .i want to get data from SQL say one table account-accountname and address  into salesforce.How we can connect sqL server to salesforce.Is it possible.Give me  a solution asap

  • January 28, 2011
  • Like
  • 2

Hi everyone,

 

i want to export data to excel using vfpage.

So i did like this.i put the content type as  folllows.its working fine.

<apex:page standardcontroller="Quote" contentType="application/vnd.ms-excel" cache="true">
  <apex:pageBlock title="Quotes">
      <apex:pageBlockTable value="{!Quote}" var="q">
         <apex:column />
         <apex:column value="{!q.id}"/>
         <apex:column value="{!q.Name}"/>
         <apex:column value="{!q.Subtotal}"/>
      </apex:pageBlockTable>
   </apex:pageBlock>
 
</apex:page>

 

Currently the filename of the excel and sheet name is my vfpage name-ExportQuotes.But if i want to display the products also in the same file but as different sheet.ie:Quote in Sheet1  and QuoteLine Items in Sheet2 in same page.is it posible.Can anyone help me on this?Its urgent.........

  • April 28, 2011
  • Like
  • 0

 

Hi,

 

I was trying to display the subtotal of product price for each product family.eg:A

A------- Product Family

a1-Product   p1-Price for product1

b1-Product2 p2-Price for product2

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

                         p3-Subtotal

B-Product family

b1-Product   p1-Price for product1

b2-Product2 p2-Price for product2

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

                         p3-Subtotal

 

I tried using Group By clause like this

 

for(QuoteLineItem Qli1:[select SUM(SubTotal),ProdFamily__c from QuoteLineItem where QuoteId = :quoteid GROUP BY (ProdFamily__c)])
        {
            amttt= amttt + Qli1.SubTotal;
          
        }  

But It is showing

Loop variable must be an SObject or list of AggregateResult error.please help me in this

  • November 30, 2010
  • Like
  • 0

I need to display the date in "Nov 25th,2010" format.How can i include "th" along with date format.

  • November 25, 2010
  • Like
  • 0

how to use numberformat  for currency in apex class

  • August 27, 2010
  • Like
  • 0