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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:22:39+00:00 2026-05-31T21:22:39+00:00

I am trying to send a soap message to an external system, this system

  • 0

I am trying to send a soap message to an external system, this system already has predefined data types which I must integrate in my code, using arrays and enumerators.

My problem is the enumerator variables are giving me the following error:

Error 1 Cannot implicitly convert type ‘UpdateRatePacks._Default.Rate.AvailAppType’ to ‘UpdateRatePacks.IService.AvailAppType?’. An explicit conversion exists (are you missing a cast?)

The error says it cannot convert the type on my page to the type on my webservice, but the data structures are the same, Have I missed something?

I have searched this error out everywhere,also searched out on enumerators in web service, enumerators in arrays, converting enumerators to arrays but nothing has worked. The error is still the same.

Even included this line of code for the parse conversion:

ureq.RatePackages[2].Rates[1].AvailabilityApplicationType = Rate.AvailAppType)Enum.Parse(typeof(Rate.AvailAppType), val);

The complexity of this code is it contains enumerators in arrays so I don’t know whether I am going wrong in the enumerator or in the array itself or in the entire web service.

This is part of my code that sends the update as a message where the error comes from

 protected void SendSoapMessage()
 {

  Rate.AvailabilityApplicationType val  =  Rate.AvailAppType.SET;
  ureq.RatePackages[1].Rates[0].AvailAppType = val;

ureq is UpdateRatePacks method from the webservice I am sending to

Classes/ Objects defined below:

public class UpdateRatePacks
{
 public string Username;
 public string Password;
 public UpdateRatePack[] RatePackages;
}

    public class UpdateRatePack
    {
        public Int64 RatePackageId;
        public Rate[] Rates;

    }


    public class Rate
    {


        public enum AvailAppType { SET , INCREASE, DECREASE };


    }

Any advise would be greatly appreciated.

  • 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-31T21:22:40+00:00Added an answer on May 31, 2026 at 9:22 pm

    It looks like you’re creating your own version of the AvailAppType enumeration, when its already available in the generated proxy code of the web service you’re hitting. Use the generated proxy code’s version of the enumeration, which is I believe UpdateRatePacks.IService.AvailAppType? as the type rather than define your own. Even though they have the same enumeration names, they’re in separate namespaces rendering them different in the eyes of the compiler.

    Hope that helps.

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

Sidebar

Related Questions

This has been bugging me for days; I'm trying to send a SOAP post
I'm trying to send a SOAP message. I'm adding manually header to the message,
I am trying to compose a SOAP message(including header) in C# .NET to send
I'm trying to send-retrive message from server by SOAP... but soapConnection.call( soapMessage, endpoint )
Here's the scenario: I'm trying to send a SOAP message to an intermediary router
I have been trying to encrypt soap message and send to the server, so
I'm trying to dynamically send a SOAP request to different webservices. Each webservice has
I'm trying to send a SOAP request using SOAPpy as the client. I've found
So I'm trying to send an xml-rpc message to moses xml-rpc server in Java,
I am trying to send the XML data to a web service. But 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.