Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7521461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:14:18+00:00 2026-05-30T02:14:18+00:00

I have a wsdl (that I get from a Web Service) where I have

  • 0

I have a wsdl (that I get from a Web Service) where I have to replace the current address String to something else , The Idea was to use XSLT to do that. There is just one problem , I have never done anything with XSLT so i have no idea how to do that. I have found an simple example of how to do that but I dot get how do i Get the old string out of the wsdl so I can replace it.

Here is the Example

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:inm="http://www.inmagic.com/webpublisher/query" version='1.0'>
  <xsl:output method="text" encoding="UTF-8"/>

  <xsl:preserve-space elements="*"/>
  <xsl:template match="text()"></xsl:template>

  <xsl:template match="test">
    <xsl:apply-templates/>

    <xsl:for-each select="testObj">
      'Notes or subject' <xsl:call-template name="rem-html"><xsl:with-param name="text" select="SBS_ABSTRACT"/></xsl:call-template>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="rem-html">
    <xsl:param name="text"/>
<xsl:variable name="newtext" select="translate($text,'a','b')"/>
  </xsl:template>
</xsl:stylesheet>

UPDATE :

this is what i have now :

<soap:address location="http://localhost:4434/miniwebservice"/>

this is what i want to get :

<soap:address location="http://localhost:4433/miniwebservice"/>

I just replaced the number of the Port from 4434 to 4433

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:14:19+00:00Added an answer on May 30, 2026 at 2:14 am
    <xsl:template match="soap:address/@location">
        <xsl:attribute name="location">
            <xsl:call-template name="string-replace">
                <xsl:with-param name="haystack" select="current()"/>
                <xsl:with-param name="search">:4434/</xsl:with-param>
                <xsl:with-param name="replace">:4433/</xsl:with-param>
            </xsl:call-template>
        </xsl:attribute>
    </xsl:template>
    
    <xsl:template match="@* | node()">
        <xsl:copy>
            <xsl:apply-templates select="@* | node()"/>
        </xsl:copy>
    </xsl:template>
    

    Note that there are no built-in string replace function in XSLT, you’ll need to take it somewhere else (e.g. http://symphony-cms.com/download/xslt-utilities/view/26418/ was used when writing this stylesheet).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET web-service client that has been autogenerated from a wsdl-file using
I have the WSDL for a web service that I cannot currently connect to.
I'm calling someone else's web service, they have provided a WSDL file and a
I have defined a web service that will return the data from my mysql
I have a WSDL file defining a service that I have to implement in
I have and android client, that uses ksoap to communicate with a wsdl web
I have an WSDL / Web Service and I need to generate an set
I have a WSDL 1.1 file which describes my Web Service. Now I need
I have a web service that I want to access through SOAP. But I
I have to call a Web service that is extremely demanding (unstandard) regarding the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.