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 7540899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:45:16+00:00 2026-05-30T07:45:16+00:00

Take the TripPriceService.wsdl from this link Add a service reference(ServiceReference1) to a windows application,

  • 0

Take the TripPriceService.wsdl from this link Add a service reference(ServiceReference1) to a windows application, by giving the wsdl from the mentioned wsdl file saved in local folder. My question has two parts

1) Is the below fault message a valid soap fault as per the wsdl(TripPriceServiceException)?

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:trip="http://trip.price.service">
   <soapenv:Header/>
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:client</faultcode>
         <faultstring>error</faultstring>
         <detail>
            <trip:TripPriceServiceException/>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

2)Now How to handle and catch the detail tag, when the response is a soap:fault?

Imports windowsapp1.ServiceReference1
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim obj As New ServiceReference1.TripPriceServiceFacadeClient
        Dim abc As New ServiceReference1.trip
        Dim a As Single
        Dim d As ServiceReference1.TripPriceServiceException
        a = obj.getTripPrice(abc)
    End Sub
End Class

The line obj.getTripPrice, invokes the service. However will it throw an exception if the response is a soap fault(of type TripPriceServiceException)? How to handle such cases, do we need to use ServiceReference1.TripPriceServiceException?I just used this wsdl to explain my current situation. We are in a need to handle such faults in our webservice client.

  • 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-30T07:45:17+00:00Added an answer on May 30, 2026 at 7:45 am

    Maybe I don’t understand your question. Why would you not use a Try/Catch/End Try block and catch TripPriceServiceException?

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

Sidebar

Related Questions

Take the tripservice wsdl from this link In this wsdl, I replaced the from
Take a look at this URL: http://download.mozilla.org/?product=firefox-9.0.1&os=win&lang=nl It is the direct link to download
Take the following code example: File package1/__init__.py : from moduleB import foo print moduleB.__name__
Take the code below, adapted from this question : //Borrowed from another question because
Take this code: <?php if (isset($_POST['action']) && !empty($_POST['action'])) { $action = $_POST['action']; } if
Take this non-compiling code for instance: public string GetPath(string basefolder, string[] extraFolders) { string
Take this class for an example: <?php class Person { private $name = null;
Take a look at this jsfiddle . I've used the jQuery dialogs before and
Take a look at this page and click on the arrows to activate the
Take a look at this fiddle - I've got three divs which all have

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.