Xslt: calling custom Service Application Proxy from xslt

Hi,
Basically, i have creted my custom service application and i wrote webpart to consume it. I have a requirement, to add a button in the SharePoint-Blog XSLTListViewWebPart located in the ~/blog/post/post.aspx page. In this page, they have 2 XSLTListViewWebPart,
and i want to add a button in it to call my service application webservices. I have 2 problems:
a. how to get the target url of my service app because in Custom Service App, it add reference to my AppClientService class in my service app:
using
(SPSite
oSite = properties.OpenSite())
AppServiceClient
serviceClient = new
AppServiceClient(SPServiceContext
.GetContext(oSite));
serviceClient.InsertTest("UserName"
b.
how to integrate the calling of my custom Service Application in the XSLTListWebPart?
Any
article about custom application with xsltListWebpart would be appreciated.
Thank you.
Thank
you.
Regards,
Jerry

In the blog.xsl file below span tag renders the author
So you can use RenderAuthor template to display the author name
<!-- For the author field, render it using the span style and preceed it with the word "by"-->
<span class="ms-postfootercolor"><xsl:value-of select="$thisNode/../@resource.wss.ByPrefix"/></span><xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text><xsl:call-template name="RenderAuthor"/>

Similar Messages

  • How to call custom BSP application (copied from standard)

    Hi,
    I came across 1 interesting link in SDN.
    [Enhancement procedure of BSP application HRRCF_RECRUITER in eRecruitment]
    My requirement is also similar.
    I need to copy the HRRCF_TRM_SRCH application.
    I know how to make the changes for the logic (like copying the standard controller & iterator class etc.)
    But I donu2019t know how to call the custom BSP application.
    One requirement is, I need to call a BSP application, in which there are only UI(user interface/screen) changes .
    That is, if there are only changes made to hitlist_cand.bsp page . And no changes made to hitlist_cand.do page.
    Eg: Removing one button from screen.
    Second requirement is, I need to call a BSP application in which there are logic changes also.
    (I know how to  change the standard controller class to custom class)
    Eg: Changing logic of button.
    We tried renaming the application name from standard to custom one (with Namespace=SAP itself, though it gave a warning) in the table T77RCF_LOG_APPL .
    Then we used this name to configure the start page link. But still the execution control is going to standard page & not to custom BSP application.
    How will I know which BSP application(Appl A), is calling the BSP application (Appl B) in which I want to make changes ?
    The starting application is HRRCF_START_INT.
    Would really appreciate solutions posted.
    Thanks,
    Nisha Vengal.

    Hi Nisha,
    I think you have an issue to call custom BSP.
    -     Ignore the warning message (in the table T77RCF_LOG_APPL) as it is just a warning message. I did not touch start page link at all.
    -     Additionally you need to make (I had to made) an entry in table u2018V77RCF_SMG_NAVIu2019.
    Let me know, if you need anything else.
    ...Naddy

  • Calling FM in external system from XSLT

    Hi,
    I know that in XSLT interpreter provided by SAP supports calling function modules.
    I need to call FM in external system from XSLT in message mapping and its result insert into one of element result XML message.
    Do you think it is possible ?
    If so is available any documentation for that.
    Any help is appreciated.
    Thank you.
    Marian Morzol

    Hi Vijaya,
    this is very helpfull document for me. However I need some other explanation.
    Does it meen that I need to write "Helper java class" ( e.g. in text editor - Notepad) and deploy the source to to Entegration Engine directory or an Adapter Directory ( maybe using Visual Administrator).
    It is not clear for me.
    I have XI 3.0 running on Windows 2003 Professional so to copy some files to some folders should not be a problem but I need an exact guide what I have to do.
    Thank you.
    Marian

  • I have an old iPhone 4 that finally stopped working.  I have an unlimited data plan and want to keep it.  When I called customer service, I was told like in the past that if you purchase the new phone at full price, you can keep your old plan.  However, a

    I have an old iPhone 4 that finally stopped working.  I have an unlimited data plan and want to keep it.  When I called customer service, I was told like in the past that if you purchase the new phone at full price, you can keep your old plan.  However, after some time on the phone i was told by the csr and supervisor that their system is not allowing them to complete the transaction without changing to a limited data plan.  I was told to try going to a store and buy the phone.  Same thing happened.  Has Verizon changed something and not told their employees?

    Seems like people having this problem are those coming from a phone that doesn't have a nano SIM card...so when Verizon issues them one they end up changing their plan. No clue why this keeps happening but stay on top of them. As long as you initiated the request for your plan to be reinstated within the 14 day time frame they should put it back. Interested in seeing how this plays out. There is still one phone in my house that hasn't been upgraded (an iPhone 4). I'm hoping when we do upgrade it at full retail they won't mess with her unlimited data plan

  • Apparently the default country for an account is US. I want it changed to Netherlands without having to call customer service. In need of assistance please.

    Hi,
    Apparently the default country for an account is US. I want it changed to Netherlands without having to call customer service. In need of assistance please, is there someone from Adobe on this forum who can help me? Or does someone know an email address?
    thanks!
    Arjan de Jong

    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html

  • Why doesnt the MBP 2011 w/Lion battery last as long? is it Lion or should I call customer service?

    is it Lion or should I call customer service? I just bought it Wednesday btw

    brianna the student wrote:
    Well I bought it from Best Buy so should I just call or go there?
    If you're going to call AppleCare, call AppleCare. If you're going to return it, I'd expect you'll need to return it to BB. An AppleStore will also provide service.

  • ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http

    I am getting error message ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http PL/SQL package,
    when browsed through some of the messages they point to setting Oracle Wallet Manager.
    I am trying to connect
    Any idea on how to resolve this issue ?
    your input is appreciated.
    Thanks
    Ravi

    Duplicate post ... please ignore.

  • Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service. 

    Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service.  I would prefer to talk to someone directly.

    Are you using any disk cleaner or optimization tools like CleanMymac or Mackeeper?
    Regards,
    Ashutosh

  • HT1349 I have purchased itunes card whenever enter the card number asking me to call customer service and treatment sinners

    I have purchased itunes card whenever enter the card number asking me to call customer service and treatment sinners

    Do as it says and contact customer service instead of posting to these user to user technical support forums.

  • Customer Service application on the Portal

    Hello all,
    I want to implement a customer service application in the Portal, Is there any business package for this?
    We are using notifications in the CS module on our R/3 and want to make it available on the enterprise portal.
    Lots of thanks,
    Ron Lampel.

    Hi Ron,
    I don't know about CS BP, but if you want to use it in portal than there are two ways for that.
    1. You can create transaction iview in Portal to use the same.
    2. You can create a WebDynpro application for the same and used it in portal by creating WebDynpro iView in portal.
    You will find lots of documents for both the methods.
    Let me know if you need more information.
    Regards,

  • I paid my bill $50.23 but my plan is $45. i called customer service that my balance is $0.00 where is my $5.00? my data also have only 500MB.

    i paid my bill $50.23 but my plan is $45. i called customer service that my balance is $0.00 where is my $5.00? my data also have only 500MB.

    Taxes?

  • Call Custom Service from Event Receiver as Current User

    Hello,
    i bang my head on this problem for days now:
    My custom web service hosted in Sharepoint 2013 needs to know the logged on user name. I used to have a self-written impersonation in my service client before, but with switching to claims authentication this should be obsolete.
    So within my service i decode the user from
    IClaimsPrincipal icp = Thread.CurrentPrincipal as IClaimsPrincipal;
    IClaimsIdentity ci = (IClaimsIdentity)icp.Identity;
    String User = ci.ToString();
    This works well when i call the service from a custom aspx page.
    It utterly fails when i call the service from a List Item Event Receiver. The User always is the Application Pool Account.
    This is the Client code to open the Channel:
    private void SetChannelFactory(
    MyServiceApplicationProxy proxy,
    Uri address)
    if (null == proxy)
    throw new ArgumentNullException("proxy");
    if (null == address)
    throw new ArgumentNullException("address");
    // Check for a cached channel factory
    string endpointConfigurationName = GetEndpointConfigurationName(address);// Get the endpoint configuration name
    if ((null == s_ChannelFactory) || (endpointConfigurationName != m_EndpointConfigurationName))
    lock (s_ChannelFactoryLock)
    if ((null == s_ChannelFactory) || (endpointConfigurationName != m_EndpointConfigurationName))
    // Create a channel factory without specifying an endpoint address
    // so it can be cached and used for multiple endpoint addresses
    s_ChannelFactory = new ConfigurationChannelFactory<IMyServiceContract>(
    endpointConfigurationName, proxy.Configuration, null);
    // Configure the channel factory for claims-based authentication
    s_ChannelFactory.ConfigureCredentials(SPServiceAuthenticationMode.Claims);
    foreach (var operation in s_ChannelFactory.Endpoint.Contract.Operations)
    DataContractSerializerOperationBehavior behavior = operation.Behaviors.Find<DataContractSerializerOperationBehavior>() as DataContractSerializerOperationBehavior;
    if (behavior != null)
    behavior.MaxItemsInObjectGraph = 2147483647;
    // Store the current endpoint configuration name.
    m_EndpointConfigurationName = endpointConfigurationName;
    private IMyServiceContract GetChannel(
    MyServiceApplicationProxy proxy,
    Uri address)
    //Create Channelfactory
    SetChannelFactory(proxy, address);
    // Create a channel from the channel factory.
    return s_ChannelFactory.CreateChannelActingAsLoggedOnUser(new EndpointAddress(address));
    All research pointed out that "CreateChannelActingAsLoggedOnUser" would pass the current user (which is correctly identified within the event receiver!) to the service, but it doesn't work for my event receiver...
    Any advice on this would be great!
    With kind regards,
    Joachim

    You should be able to get the current user id from the SPListItemEventProperties object. From here you should be able to create a Claim. For example get the user by using
    user = SPWeb.Users.GetByID(properties.CurrentUserId)
    SPClaim claim = SPClaimProviderManager.CreateUserClaim(user.email, SPOriginalIssuerType.TrustedProvider, issuerIdentifier);
    https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.claims.spclaimprovidermanager.createuserclaim(v=office.14).aspx
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • How to call custom BSP application on click of BACK button for SC in EBP.

    Hi All,
    We are implementing OCI using custom BSP applications.In EBP SC screen ,in step1 (Select Goods/Services), the links for these BSP applications are displayed.
    The user can create a shopping cart using these applications , after the items are transfered from BSP to SC on standard  EBP screen , in step2
    there are four buttons ,
    1)Refresh
    2)Check
    3)Back
    4)Continue.
    We need to call one of our custom BSP applications on click of  this BACK button
    How can i acchieve the same?
    Do i need to make changes in the standard ITS application or thers some other way?
    Thanks,
    Anubhav.
    Edited by: Anubhav Jain on Jul 1, 2008 7:24 AM

    To call a wd abap application from BSP use the method CL_WD_UTILITIES=>CONSTRUCT_WD_URL then just create a link in bsp with the url returned like this:
    <a href="url">Link</a>
    To pass data from wd abap to bsp or vice versa that a look at this blog: /people/koen.labie2/blog/2006/11/29/eating-cookies-with-webdynpro-and-bsp
    regards,
    Fabio Louzada Saito

  • 400 Error Calling Custom Services in _vti_bin

    Hi all,
    I am having an issue in my development VM. I have a site with a number of custom web parts that are throwing 400 errors when attempting to access them. The page itself loads fine, but the web parts are showing 400 errors when calling services that run them
    that reside in the _vti_bin. No errors are showing in the ULS logs, only the 400s in Fiddler. I have been looking into this all day and had no luck.
    Any ideas or thoughts on directions to pursue would be greatly appreciated. Please let me know if any other info is needed and I will include it.
    Thanks,
    J.

    Hi,
    Per my understanding, there is a 400 error thrown in your custom web part.
    To narrow down the issue, I suggest you create a Console Application to test if the code snippet about calling web service works properly without issue, then adding
    the working code into the web part project. By doing this, it would be easier to address the issued part of this solution.
    Here is a demo about how to work with SharePoint web service for your reference:
    http://mohamedakb.blogspot.com/2012/01/use-web-services-to-access-sharepoint.html
    Best regards
    Patrick Liang
    TechNet Community Support

  • Remove Web Application Proxy from ADFS 3.0

    We have two Web Application Proxies deployed with ADFS 3.0, however we'd like to remove one. We uninstalled the role from the server, however on the other Web Application Proxy it still shows the uninstalled server under Clustered Servers on the Remote
    Management mmc. How can I get this completely removed from ADFS?

    Hi,
    According to your description, are these two web application proxy servers clustered?
    By “on the other Web Application Proxy it still shows the uninstalled server under Clustered Servers”, do you mean that the uninstalled proxy server still shows as a node of cluster?
    If that’s the case, then it is normal, because uninstalling web application proxy role doesn’t remove its role as a node of cluster.
    More information for you:
    How to Evict a Node from a Windows Server 2008 Failover Cluster
    http://technet.microsoft.com/en-us/library/bb676524(v=EXCHG.80).aspx
    Best Regards,
    Amy Wang

Maybe you are looking for

  • How to block release item in Goods Issue if the stock is 0

    Dear All, I have an item that is placed in 2 warehouses. For example in Warehouse 1 there are stock as much as 5 And there is No stock at all in Warehouse 2. But when I create Goods Issue, SAP didn't block me to release the item from Warehouse 2 even

  • Printing a document without opening it in Oracle Forms 10g

    Hi Friends, This is my first thread in this forum. Please any one give me a solution for my below request. We use oracle 10g and windows (any version). I want to print some files available in a folder without opening it (run in background) through or

  • How to add "ATTACHMENTS" assignment block in standard component ERP_H

    Dear All, I have a requirement where i have to add the "Attachments" assignment block to standard component "ERP_H". I have taken following steps so far and i am able to display the view in the component ERP_H, however no funtionality has been define

  • WOW I hate App Store software updates!!!!

    Does anyone else's phone take forever to update an application? Has anyone else updated an App only have it send your phone into a reset? I just updated Texas Hold'em on my phone. After 10 minutes of waiting for the thing to update, I re-synced my ph

  • XSL and XSQL

    I am querying a database with XSQL and then returning the results in XML which is interpreted by an XML-stylesheet. The stylesheet is used to convert the xml to html. I have trouble however putting the output from my sql query into the value fields o