• Sourav Hazra
  • NEWBIE
  • 0 Points
  • Member since 2014
  • Developer

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 4
    Replies
We are working on webservice based integration where trying to callout the service from Salesforce. While performing the call out, we are facing the below error 


Web service callout failed: WebService returned a SOAP Fault: axis2ns45:ResourceUnavailableFault faultcode=soapenv:Server faultactor=

Does any one face this error before and share some idea? 
Hi, 

We already have salesforce customer communities implementated in our project. We have adequate number of partner communities licenses available to suppor the application. Recently, we have received a new requirement to provide login capability to system admin users to login in the application on behalf of an account and get to see the application functionalities/data just like any other contact under that account. 
We are aware of "login as community/partner user" feature from contact tab but the request is to allow the system admin to login in communities with their credentials and not in-personalized by some other contact. The system admins definately belong to Salesforce system admin profile and shares salesforce license (not partner community). Is this at all feasible to provide this type of functionalities to system admin users? 
Hi, 

We have a requirement of displaying document fetched through a web service. Please refer below the controller and page section to fetch the document and display in a new page 

We are able to fetch the document but facing issue while displaying the document in a new page. The document is getting downloaded whenever redirects to new page on a onclick function instead of opening the document in browser. Can you please suggest? 

Controller section
=================

public class ViewPdf {
    
    public String pdf{get;set;}
    public String mimetype{get;set;}
    
    
    public void fetchDoc(){
        XXXNoDm_v1.XXXDocumentServicePort test = new XXXNoDm_v1.XXXDocumentServicePort();
   
        pdf = test.getDocument('XXXXX','2000000','XXXXXX');
       
    }
    
    
    
    
    
}




Page Section
===================

<apex:page controller="ViewPdf" sidebar="false" showHeader="false" action="{!fetchDoc}">
    <!-- {!pdf} -->
    
    <iframe src="data:'application/pdf';base64,{!pdf}" height="110%" width="100%"></iframe>
    
  
    
</apex:page>
                      
We are working on web service integraiton with salesforce where a document is getting transfered as a MIME attachment in the service. Is there any sample code available how to extract MIME attachment and display as document from salesforce? 
Any idea how to perform a server side post of html form from apex controller? is that possible?
Hi,

We have a requirement of integrating salesforce.com with OBIEE reporting system. The OBIEE reports are accessible from salesforce.com customer community. We have a Middleware component in between which exposes a web service to salesforce.com and invoked on a button from sfdc. 
The web service accepts few parameters and based on that returns a dashboard URL which is then used to display the reports. 
My question is can we catch that url inside a controller and then use ajax call out method to show the reports? The reports will be a shown in a pop up window and the back ground application will be inaccessible during that time.
We did try direct url redirection and iframe solution but in both cases exact url is being displayed in the address bar or view source window which is a potential security threat.
 
An early response is much appreciated. Please let me know if you need more details.
 
Regards,
Sourav 
 
We have a requirement to integration salesforce.com with OBIEE through middleware. The webservice is exposed from middleware and that being invoked from Salesforce.com and getting an URL back as response. The URL consists of different parameter values and OBI credentials. But there is no issue in the integration and reports are also coming properly. 

The issue is whenever report is opening in a new window (thats the requirement), the exact URL is being shown in the browser address bar. Since the url consists of parameters and credentials, it is a security threat. Can there be any easy way to mask the url/hide the address URL, so that the URL will not be exposed to end users?

Hi,

We have a requirement to provide a search option to salesforce.com communities which actually performs search within communities as well as invoke an external web service to get the results from the customer websites. We have a requirement to display both the search results in a single page (we can show as 2 separate block). 

We have tried below 2 options and faces 2 different problems 
1. Provide a custom search - we can call a method which in turn call the Web Service as well as use SOSL to get the result list from different SFDC objects. But we are unable to provide a hyperlink to the search results returned from SOSL queries, so that record detail page can be open.
2. Enable global search in communities - obviously we can not call web service from the global search 

any thoughts on this will be highly appreciated. 

Regards,
Sourav

 

Hi,

We have a requirement for showing two different profile images for the same user inside Salesforce.com  and salesforce community. Any insight how to achieve this?

Regards,
Sourav
Hi, 

Below is a part of WSDL file (schema part). WSDL2APEX was not able to parse this and throwing an error type missing for resultitem
<xsd:element name="XXXResponse">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element maxOccurs="unbounded" minOccurs="0" name="resultItem"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="resultItem">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element maxOccurs="1" name="header" type="xsd:string"/>
            <xsd:element maxOccurs="1" name="text" type="xsd:string"/>
            <xsd:element maxOccurs="1" name="url" type="xsd:string"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

I have changed the above part of WSDL like below 

<xsd:element name="XXXResponse">
        <xsd:complexType>
          <xsd:sequence>
     <xsd:element maxOccurs="unbounded" minOccurs="0" name="resultItem">
      <xsd:complexType>
                 <xsd:sequence>
                   <xsd:element maxOccurs="1" name="header" type="xsd:string"/>
                   <xsd:element maxOccurs="1" name="text" type="xsd:string"/>
                   <xsd:element maxOccurs="1" name="url" type="xsd:string"/>
                 </xsd:sequence>
      </xsd:complexType> 
        </xsd:element>
       </xsd:sequence>
     </xsd:complexType>
      </xsd:element>

Now WSDL2APEX parser is able to parse this but while calling out the web service, it encountered an issue - webservice call out failed -unexpected element. 

Wanted to understand if the the modification shown above is correct or there is other way out to change the WSDL. So that it can parsed by WSDL2APEX.
We are working on web service integraiton with salesforce where a document is getting transfered as a MIME attachment in the service. Is there any sample code available how to extract MIME attachment and display as document from salesforce? 
Hi,

We have a requirement of integrating salesforce.com with OBIEE reporting system. The OBIEE reports are accessible from salesforce.com customer community. We have a Middleware component in between which exposes a web service to salesforce.com and invoked on a button from sfdc. 
The web service accepts few parameters and based on that returns a dashboard URL which is then used to display the reports. 
My question is can we catch that url inside a controller and then use ajax call out method to show the reports? The reports will be a shown in a pop up window and the back ground application will be inaccessible during that time.
We did try direct url redirection and iframe solution but in both cases exact url is being displayed in the address bar or view source window which is a potential security threat.
 
An early response is much appreciated. Please let me know if you need more details.
 
Regards,
Sourav 
 
We have a requirement to integration salesforce.com with OBIEE through middleware. The webservice is exposed from middleware and that being invoked from Salesforce.com and getting an URL back as response. The URL consists of different parameter values and OBI credentials. But there is no issue in the integration and reports are also coming properly. 

The issue is whenever report is opening in a new window (thats the requirement), the exact URL is being shown in the browser address bar. Since the url consists of parameters and credentials, it is a security threat. Can there be any easy way to mask the url/hide the address URL, so that the URL will not be exposed to end users?
Hi,

We have a requirement for showing two different profile images for the same user inside Salesforce.com  and salesforce community. Any insight how to achieve this?

Regards,
Sourav