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

  • SEARCH
  • Home
  • 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 7617849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:14:57+00:00 2026-05-31T03:14:57+00:00

Again I am back with a question related to the same wsdl, this time

  • 0

Again I am back with a question related to the same wsdl, this time wanted to remove all namespaces in the request, and conforming to the wsdl.

The same wsdl tripservice wsdl from the link ,simply replace the “from” element with the below.

<xs:element minOccurs="0" name="from" nillable="true">
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:minLength value="1"/>
                <xs:maxLength value="12"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:element>

Using soapui we know that the below request xml conforms to wsdl.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:trip="http://trip.price.service" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Header/>
  <soapenv:Body>
    <trip:getTripPrice>
      <trip>
        <adults>9</adults>
        <duration>9</duration>
        <from xsi:nil="true" />
        <rooms>3</rooms>
      </trip>
    </trip:getTripPrice>
  </soapenv:Body>
</soapenv:Envelope>

I removed almost all namespaces from the request, however not able to remove xsi namespace from the request, so as to conform to wsdl

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Header/>
  <Body>
    <getTripPrice xmlns="http://trip.price.service">
      <trip xmlns="">
        <adults>9</adults>
        <duration>9</duration>
        <from xsi:nil="true" />
        <rooms>3</rooms>
      </trip>
    </getTripPrice>
  </Body>
</Envelope>

How to remove xsi namespace as well, still valid as per the wsdl?

  • 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-31T03:14:59+00:00Added an answer on May 31, 2026 at 3:14 am

    This is a generic XML processing question, “How do you control the use and production of namespace prefixes in XML producer ‘x'”? In your case, according to the comments, ‘xml producer X is xslt.’ It will then depend on what implementation of XSLT you are using and whether it has any options to control this particular behavior.

    In general, xslt takes the usual attitude that namespace prefixes are just syntactic sugar, and does not offer convenient mechanisms for controlling their use. You may be able to encourage it make more use of prefixes by declaring them at the top of your XSLT definition.

    I recommend compression as the real solution to reducing bandwidth usage.

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

Sidebar

Related Questions

Back again with yet another DirectSound question, this one regarding the ways DirectSound Buffers
Back again with a javascript question within sharepoint. I would like to hide a
back again with some more SQLAlchemy shenanigans. Let me step through this. My table
Again I have a question regarding this plugin: http://t.wits.sg/2008/06/20/jquery-progress-bar-11/ What I want to achieve
Back again with another rookie question. While working on a function for my homework
Back again with another Flex question. I have an XML structure like... <Student> <Name>X</Name>
This question is related to this question yesterday . Please see current jsfiddle here
I am back again with a question in zend framework. Can someone explain me,
This one is related to my previous question on the performance of Arrays and
Once again back with a Plone question. I have Plone 4 installed and I

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.