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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:38:09+00:00 2026-06-17T10:38:09+00:00

The operation ‘PRPA_IN201301UV02’ could not be loaded because it has a parameter or return

  • 0

The operation 'PRPA_IN201301UV02' could not be loaded because it has a parameter or return type of type System.ServiceModel.Channels.Message or a type that has MessageContractAttribute and other parameters of different types. When using System.ServiceModel.Channels.Message or types with MessageContractAttribute, the method must not use any other types of parameters.

I’m running a WCF on a console host, this is the contract:

[MessageContract]
public class opRequest
{
    [MessageBodyMember]
    public string myProperty;
}

[ServiceContract(Namespace = "urn:hl7-org:v3")]
public interface IHL7v3
{
    [OperationContract(Name = "PRPA_IN201301UV02", Action = "urn:hl7-org:v3:PRPA_IN201301UV02")]
    string PIXManager_PRPA_IN201301UV02(opRequest clientID);
}

It does run when I remove from opRequest class the [MessageContract] and [MessageBodyMember]

I’m completely not sure if that will get me to what I need, so i’ll give the wider scope – I’m trying to get the SOAP body to be without an enclosing tag of the parameter name.
for example (the body extract from the SOAP message) instead of:

<s:Body>
<PRPA_IN201301UV02 xmlns="urn:hl7-org:v3">
  <clientID>the xml document is enclosed</clientID>
</PRPA_IN201301UV02>

I want it to be like this:

<s:Body>
<PRPA_IN201301UV02 xmlns="urn:hl7-org:v3">
  my given xml document will go here...
</PRPA_IN201301UV02>

I need it like that to conform to a standard (HL7v3 PIX Manager SOAP Web Service).

Any ideas?

  • 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-06-17T10:38:11+00:00Added an answer on June 17, 2026 at 10:38 am

    Looks like you should use MessageContract for your return parameter as well

    EDITED:
    Have a look at this MSDN article for more details Using Message Contracts
    If you design your contract with messages you can’t use other types either as a parameter or a return value.

    Here is a code snippet from the article:

    [OperationContract]
    bool Validate(BankingTransaction bt);
    // Invalid, the return type is not a message contract.
    [OperationContract]
    void Reconcile(BankingTransaction bt1, BankingTransaction bt2);
    // Invalid, there is more than one parameter.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made a Webservice Operation whose return type is STRING [] Following is the
What operation could I uses that would simulate a relatively costly process public void
My operation system is Window XP in Chinese. I'm running flex sdk > asdoc
The simple fopen operation seems to not work. perror returns - Invalid argument. What
Possible Duplicate: Cross-thread operation not valid: Control accessed from a thread other than the
We start an operation by making sure a customer has enough items with which
What does a Push operation on a stack return?
This operation returns a 0: string value = 0.01; float convertedValue = float.Parse(value); return
Possible Duplicate: Cross-thread operation not valid: Control accessed from a thread other than the
Need to perform simple operation. If fileExt is not .jpg .jpeg .png .pdf, alert

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.