Question about .NET 2.0 web service proxy generation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gartnerjmoody@yahoo.com

    Question about .NET 2.0 web service proxy generation

    I have a web service that has a method that takes a created .NET class
    like this:

    method(my.Share d.BO.InfoClass info, bool isItem)

    The actual web service gets this class from an assembly, Shared.BO.dll

    I have a Windows Workflow that needs to call this, and the Workflow
    itself is being passed an object of this type (my.Shared.BO.I nfoClass)
    as a property in the workflow. The same Shared.BO.dll that the web
    service uses for the my.Shared.BO.In foClass, is also a reference in
    the Workflow.

    So far so good. When, from the workflow, I do "Add Web Reference",
    the proxy class that is generated creates its "own" version of that
    class, so the method from the proxy looks like:

    method(myworkfl owLib.WSProxy.I nfoClass info, bool isItem)

    When compiling when the code uses the my.Shared.BO.In foClass passed in
    to the workflow in the WS proxy call like this:

    Here is the property that the workflow has:
    public my.namespace.cl ass Info
    {
    get/set......
    }

    And here is how I setup/call the proxy:

    public myworkflow.WSPr oxy infoProxy = new ......

    infoProxy.Store Info(Info, false);

    I am getting an error in the compiler:
    Argument 1: cannot convert from my.Shared.BO.In foClass to
    myworkflow.WSPr oxy.InfoClass

    How do I get the generated proxy to use the my.Shared.BO.In foClass
    from the referenced dll instead of it's own namespace version???


    I DO realize that they shouldn't have this my.Shared.BO.In foClass as
    part of the web service method (it should take an XmlNode or string
    and deserialize into the class inside the web service itself), but I
    have no control over the web service code that needs to be called.

    Is there any way to have a Generated proxy handle this?
    I've commented out the reference.cs internal InfoClass, added a using
    Shared.BO, but then I get a big thing about "There was an error
    reflecting "info"..... ..

    The internal call in the proxy is:
    public RetStatus
    method([System.Xml.Seri alization.XmlEl ementAttribute( Namespace="http ://
    oursite.com/schemas/myschema")] InfoClass info, bool isItem) <-- this
    is the "info" that it gives the errors about reflecting

    Help??
  • Mr. Arnold

    #2
    Re: Question about .NET 2.0 web service proxy generation


    <gartnerjmoody@ yahoo.comwrote in message
    news:db594ffb-60d7-4500-8d8a-fbfdeb408a0e@m7 3g2000hsh.googl egroups.com...

    <snipped>

    You need to post to MS.Public.dotne t.framework.web services.

    Your problem has been discussed there and how to correct it.

    Comment

    • Moody

      #3
      Re: Question about .NET 2.0 web service proxy generation

      On May 2, 1:45 am, "Mr. Arnold" <MR. Arn...@Arnold.c omwrote:
      <gartnerjmo...@ yahoo.comwrote in message
      >
      news:db594ffb-60d7-4500-8d8a-fbfdeb408a0e@m7 3g2000hsh.googl egroups.com...
      >
      <snipped>
      >
      You need to post to MS.Public.dotne t.framework.web services.
      >
      Your problem has been discussed there and how to correct it.
      Thanks a ton for the pointer to that group!! Much appreciated.

      Comment

      Working...