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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:27:01+00:00 2026-05-14T06:27:01+00:00

I have exposed a Sonic ESB process as a webservice and wrote a .NET

  • 0

I have exposed a Sonic ESB process as a webservice and wrote a .NET application to upload data to it by calling its methods.

To this end, I have a library of complex object on the .NET side that I added in xml format to the web service definition on the Sonic ESB side. This is a necessary step in exposing the Sonic ESB process, because the methods to be called should be able to recognize the objects being passed from the .NET application.

However, when I try to add the service reference to the .NET application, the same library is treated as two different ones on each side of the service, because they are assigned to different namespaces. Making sure that ‘Reuse types in referenced assemblies’ is checked when creating the service reference makes no difference: The different types corresponding to one another are kept apart.

The following code thus yields an error:

    public string PushManifest(FargoGate.DtoLib.OutboundFargoMessage message)
    {
        FargoGateOnRampWSRequest wsRequest = new FargoGateOnRampWSRequest();

        OutboundFargoMessage outMessage = new OutboundFargoMessage();

        //TODO ERROR: Cannot convert source type 'FargoGate.DtoLib.OutboundMessage' to target type 'PollFargoJob.FargoGateOnrampWS.OutboundFargoMessage'
        wsRequest.OutboundFargoMessage = message;

        throw new NotImplementedException();
    }

Any suggestions 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-14T06:27:02+00:00Added an answer on May 14, 2026 at 6:27 am

    It would seem to me that I do not need svcutil.exe at all, as is suggested, but rather continue generating the schema for the data model using xsd.exe. I did just that to ensure that the data model was exactly the same on both sides of the service. However, for some reason, I could not create the webservice properly, as Sonic Workbench keeps on crashing whenever I try with the updated schema. Perhaps the schema is too complex for Workbench to handle?

    Well, I now solved it by using a dirty trick. Instead of using WCF I am using a standard .NET 2.0 way of registering the webservice. In the Sonic ESB webservice, I set the input parameter type to string, rather than the data type from the library. In the .NET code calling the webservice operation, I serialize the object to xml and pass the resulting string to the webservice.

    So instead of passing a serialized object, I am passing a string containing the xml of a serialized object. And that seems to work!

    It’s a bad solution, I know, but I am desperate.

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

Sidebar

Related Questions

In my services all exposed methods have: try { // the method core is
I have a WCF service and methods are exposed as below: public interface IService
I have a C++ DLL that I wrote that has a single exposed function,
I have created a console application in which I have exposed interface having [OperationContract(IsOneWay
I have a C# .NET class library which I have exposed in COM by
so I have this exposed from and I want to change the default value
I have the following Silverlight control defined: <object id=objImageViewer data=data:application/x-silverlight-2, type=application/x-silverlight-2 width=100% height=500px> <param
Out of the box SSRS reports cannot have data exposed in the page header.
When I have a public exposed class, I usually make its member variables private,
I have a .Net asm with several interfaces and classes exposed to COM using

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.