SOAP Body

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bryan Dickerson

    SOAP Body

    Ok, simple question: from a VB.Net web service (as I've said before, I'm a
    newbie to SOAP), how would I get the SOAP body into a string? My boss and I
    concur that it, at least from our perspective, should be as simple as
    defining an object and viewing a parameter on that object. My boss has
    worked with it and I'm still tryin'...

    TIA!

    --
    TFWBWY...A


  • John Bailo

    #2
    Re: SOAP Body


    Could you run that by us once more?

    Bryan Dickerson wrote:[color=blue]
    > Ok, simple question: from a VB.Net web service (as I've said before, I'm a
    > newbie to SOAP), how would I get the SOAP body into a string? My boss and I
    > concur that it, at least from our perspective, should be as simple as
    > defining an object and viewing a parameter on that object. My boss has
    > worked with it and I'm still tryin'...
    >
    > TIA!
    >[/color]

    Comment

    • Nick Malik [Microsoft]

      #3
      Re: SOAP Body



      "Bryan Dickerson" <txprphan@netsc ape.net> wrote in message
      news:%230su3XpL GHA.3100@tk2msf tngp13.phx.gbl. ..[color=blue]
      > Ok, simple question: from a VB.Net web service (as I've said before, I'm a
      > newbie to SOAP), how would I get the SOAP body into a string? My boss and
      > I concur that it, at least from our perspective, should be as simple as
      > defining an object and viewing a parameter on that object. My boss has
      > worked with it and I'm still tryin'...
      >[/color]

      It already is. When you tell VB.Net or C# that you are attaching to a web
      service, the Visual Studio environment writes code for you, then proceeds to
      hide it. You can see if you wish. The code is written by VS.Net after it
      reads the WSDL for the web service which describes the structure of the data
      in the SOAP body. If you inspect that code, you can see what it is doing
      and, just for fun, you can modify it for your own needs.

      --
      --- Nick Malik [Microsoft]
      MCSD, CFPS, Certified Scrummaster


      Disclaimer: Opinions expressed in this forum are my own, and not
      representative of my employer.
      I do not answer questions on behalf of my employer. I'm just a
      programmer helping programmers.
      --


      Comment

      • m.posseth

        #4
        Re: SOAP Body

        click the show all files option in the project explorer , now see the before
        hidden code files under your web reference

        regards

        Michel Posseth [MCP]




        "Nick Malik [Microsoft]" <nickmalik@hotm ail.nospam.com> schreef in bericht
        news:n4qdnWpGmd i7CnPenZ2dnUVZ_ smdnZ2d@comcast .com...[color=blue]
        >
        >
        > "Bryan Dickerson" <txprphan@netsc ape.net> wrote in message
        > news:%230su3XpL GHA.3100@tk2msf tngp13.phx.gbl. ..[color=green]
        >> Ok, simple question: from a VB.Net web service (as I've said before, I'm
        >> a newbie to SOAP), how would I get the SOAP body into a string? My boss
        >> and I concur that it, at least from our perspective, should be as simple
        >> as defining an object and viewing a parameter on that object. My boss
        >> has worked with it and I'm still tryin'...
        >>[/color]
        >
        > It already is. When you tell VB.Net or C# that you are attaching to a web
        > service, the Visual Studio environment writes code for you, then proceeds
        > to hide it. You can see if you wish. The code is written by VS.Net after
        > it reads the WSDL for the web service which describes the structure of the
        > data in the SOAP body. If you inspect that code, you can see what it is
        > doing and, just for fun, you can modify it for your own needs.
        >
        > --
        > --- Nick Malik [Microsoft]
        > MCSD, CFPS, Certified Scrummaster
        > http://blogs.msdn.com/nickmalik
        >
        > Disclaimer: Opinions expressed in this forum are my own, and not
        > representative of my employer.
        > I do not answer questions on behalf of my employer. I'm just a
        > programmer helping programmers.
        > --
        >
        >[/color]


        Comment

        • Bryan Dickerson

          #5
          Re: SOAP Body

          Maybe I didn't phrase the question correctly. If my web service is called
          via SOAP and an XML document is sent in the SOAP message body, what object
          would I instantiate and what property would I need to get that XML string so
          that I could do something with it?

          "m.posseth" <posseth@planet .nl> wrote in message
          news:eqfDhMAMGH A.420@tk2msftng p13.phx.gbl...[color=blue]
          > click the show all files option in the project explorer , now see the
          > before hidden code files under your web reference
          >
          > regards
          >
          > Michel Posseth [MCP]
          >
          >
          >
          >
          > "Nick Malik [Microsoft]" <nickmalik@hotm ail.nospam.com> schreef in bericht
          > news:n4qdnWpGmd i7CnPenZ2dnUVZ_ smdnZ2d@comcast .com...[color=green]
          >>
          >>
          >> "Bryan Dickerson" <txprphan@netsc ape.net> wrote in message
          >> news:%230su3XpL GHA.3100@tk2msf tngp13.phx.gbl. ..[color=darkred]
          >>> Ok, simple question: from a VB.Net web service (as I've said before, I'm
          >>> a newbie to SOAP), how would I get the SOAP body into a string? My boss
          >>> and I concur that it, at least from our perspective, should be as simple
          >>> as defining an object and viewing a parameter on that object. My boss
          >>> has worked with it and I'm still tryin'...
          >>>[/color]
          >>
          >> It already is. When you tell VB.Net or C# that you are attaching to a
          >> web service, the Visual Studio environment writes code for you, then
          >> proceeds to hide it. You can see if you wish. The code is written by
          >> VS.Net after it reads the WSDL for the web service which describes the
          >> structure of the data in the SOAP body. If you inspect that code, you
          >> can see what it is doing and, just for fun, you can modify it for your
          >> own needs.
          >>
          >> --
          >> --- Nick Malik [Microsoft]
          >> MCSD, CFPS, Certified Scrummaster
          >> http://blogs.msdn.com/nickmalik
          >>
          >> Disclaimer: Opinions expressed in this forum are my own, and not
          >> representative of my employer.
          >> I do not answer questions on behalf of my employer. I'm just a
          >> programmer helping programmers.
          >> --
          >>
          >>[/color]
          >
          >[/color]


          Comment

          • John Bailo

            #6
            Re: SOAP Body


            First of all forget about SOAP -- SOAP is an encapsulation method that
            makes all datatypes available. It is a messaging protocol basically.
            The fact that it uses XML has nothing to do with what you're asking,
            which is "how do I retrieve the results of a web method whose return
            type is XmlDocument".

            Here is the method I use:

            XmlDocument dom = new XmlDocument();

            //this is a web method that returns a list of clients as an XmlDocument
            XmlNode lcx = lc.ClientList() ;


            //this turns the XmlDocument from my webservice into
            //something I can use locally
            dom.AppendChild (dom.ImportNode (
            lcx
            ,true));




            Bryan Dickerson wrote:[color=blue]
            > Maybe I didn't phrase the question correctly. If my web service is called
            > via SOAP and an XML document is sent in the SOAP message body, what object
            > would I instantiate and what property would I need to get that XML string so
            > that I could do something with it?[/color]

            Comment

            • Bryan Dickerson

              #7
              Re: SOAP Body

              Ok, here's the full scope of the problem: I am trying to work with a 3rd
              party product called GIS that is essentially a java-based EDI product and
              the documentation and 'technical assistants' (term used loosely) say that
              'it will use SOAP to call my (.Net) web service and it will pass an XML
              Document to it in the SOAP Body and that XML document is what my web service
              is supposed to work with.' Does that make any sense? I'm not sure that it
              does to me, but it seems the best way that I can understand it.


              "John Bailo" <jabailo@texeme .com> wrote in message
              news:43F0C0E2.6 040302@texeme.c om...[color=blue]
              >
              > First of all forget about SOAP -- SOAP is an encapsulation method that
              > makes all datatypes available. It is a messaging protocol basically. The
              > fact that it uses XML has nothing to do with what you're asking, which is
              > "how do I retrieve the results of a web method whose return type is
              > XmlDocument".
              >
              > Here is the method I use:
              >
              > XmlDocument dom = new XmlDocument();
              >
              > //this is a web method that returns a list of clients as an XmlDocument
              > XmlNode lcx = lc.ClientList() ;
              >
              >
              > //this turns the XmlDocument from my webservice into
              > //something I can use locally
              > dom.AppendChild (dom.ImportNode (
              > lcx
              > ,true));
              >
              >
              >
              >
              > Bryan Dickerson wrote:[color=green]
              >> Maybe I didn't phrase the question correctly. If my web service is
              >> called via SOAP and an XML document is sent in the SOAP message body,
              >> what object would I instantiate and what property would I need to get
              >> that XML string so that I could do something with it?[/color][/color]


              Comment

              • John Bailo

                #8
                Re: SOAP Body


                1. All web services are called using SOAP -- which uses XML. I really
                wouldn't focus on that. It's background.

                2. java and .NET encapsulate and consume services in the same way. A
                c# client can consume a java web service, and vice versa.

                3. I think that they are confusing "web service" with "web consumer" or
                "client". I am presuming that the GIS provides web services, and that
                you will call their web methods with a web client that you write, and
                that one of those web methods will return a datatype of XmlDocument.

                4. If so, you can use the method below.

                To me, it sounds like your real job is to verify the scenario I outlined
                in (3). I mean, is this GIS being offered via the web? Or is it set
                up by someone in house?




                Bryan Dickerson wrote:[color=blue]
                > Ok, here's the full scope of the problem: I am trying to work with a 3rd
                > party product called GIS that is essentially a java-based EDI product and
                > the documentation and 'technical assistants' (term used loosely) say that
                > 'it will use SOAP to call my (.Net) web service and it will pass an XML
                > Document to it in the SOAP Body and that XML document is what my web service
                > is supposed to work with.' Does that make any sense? I'm not sure that it
                > does to me, but it seems the best way that I can understand it.
                >
                >
                > "John Bailo" <jabailo@texeme .com> wrote in message
                > news:43F0C0E2.6 040302@texeme.c om...
                >[color=green]
                >>First of all forget about SOAP -- SOAP is an encapsulation method that
                >>makes all datatypes available. It is a messaging protocol basically. The
                >>fact that it uses XML has nothing to do with what you're asking, which is
                >>"how do I retrieve the results of a web method whose return type is
                >>XmlDocument ".
                >>
                >>Here is the method I use:
                >>
                >>XmlDocument dom = new XmlDocument();
                >>
                >>//this is a web method that returns a list of clients as an XmlDocument
                >>XmlNode lcx = lc.ClientList() ;
                >>
                >>
                >>//this turns the XmlDocument from my webservice into
                >>//something I can use locally
                >>dom.AppendChi ld(dom.ImportNo de(
                >>lcx
                >>,true));
                >>
                >>
                >>
                >>
                >>Bryan Dickerson wrote:
                >>[color=darkred]
                >>>Maybe I didn't phrase the question correctly. If my web service is
                >>>called via SOAP and an XML document is sent in the SOAP message body,
                >>>what object would I instantiate and what property would I need to get
                >>>that XML string so that I could do something with it?[/color][/color]
                >
                >
                >[/color]

                Comment

                • Bryan Dickerson

                  #9
                  Re: SOAP Body

                  I'm a VB guy, but I think I can decipher most of this. What kind of object
                  is "lc"?

                  "John Bailo" <jabailo@texeme .com> wrote in message
                  news:43F0C0E2.6 040302@texeme.c om...[color=blue]
                  >
                  > First of all forget about SOAP -- SOAP is an encapsulation method that
                  > makes all datatypes available. It is a messaging protocol basically. The
                  > fact that it uses XML has nothing to do with what you're asking, which is
                  > "how do I retrieve the results of a web method whose return type is
                  > XmlDocument".
                  >
                  > Here is the method I use:
                  >
                  > XmlDocument dom = new XmlDocument();
                  >
                  > //this is a web method that returns a list of clients as an XmlDocument
                  > XmlNode lcx = lc.ClientList() ;
                  >
                  >
                  > //this turns the XmlDocument from my webservice into
                  > //something I can use locally
                  > dom.AppendChild (dom.ImportNode (
                  > lcx
                  > ,true));
                  >
                  >
                  >
                  >
                  > Bryan Dickerson wrote:[color=green]
                  >> Maybe I didn't phrase the question correctly. If my web service is
                  >> called via SOAP and an XML document is sent in the SOAP message body,
                  >> what object would I instantiate and what property would I need to get
                  >> that XML string so that I could do something with it?[/color][/color]


                  Comment

                  • John Bailo

                    #10
                    Re: SOAP Body


                    Sorry, that's my web service object (just the standard created when you
                    create a web service proxy). It's my own variable.

                    ClientList() is a method on my web service which returns a list of
                    clients as an XmlDocument.

                    I am just assuming that your GIS web service is doing a similar thing.


                    Bryan Dickerson wrote:[color=blue]
                    > I'm a VB guy, but I think I can decipher most of this. What kind of object
                    > is "lc"?
                    >
                    > "John Bailo" <jabailo@texeme .com> wrote in message
                    > news:43F0C0E2.6 040302@texeme.c om...
                    >[color=green]
                    >>First of all forget about SOAP -- SOAP is an encapsulation method that
                    >>makes all datatypes available. It is a messaging protocol basically. The
                    >>fact that it uses XML has nothing to do with what you're asking, which is
                    >>"how do I retrieve the results of a web method whose return type is
                    >>XmlDocument ".
                    >>
                    >>Here is the method I use:
                    >>
                    >>XmlDocument dom = new XmlDocument();
                    >>
                    >>//this is a web method that returns a list of clients as an XmlDocument
                    >>XmlNode lcx = lc.ClientList() ;
                    >>
                    >>
                    >>//this turns the XmlDocument from my webservice into
                    >>//something I can use locally
                    >>dom.AppendChi ld(dom.ImportNo de(
                    >>lcx
                    >>,true));
                    >>
                    >>
                    >>
                    >>
                    >>Bryan Dickerson wrote:
                    >>[color=darkred]
                    >>>Maybe I didn't phrase the question correctly. If my web service is
                    >>>called via SOAP and an XML document is sent in the SOAP message body,
                    >>>what object would I instantiate and what property would I need to get
                    >>>that XML string so that I could do something with it?[/color][/color]
                    >
                    >
                    >[/color]

                    Comment

                    • Bryan Dickerson

                      #11
                      Re: SOAP Body

                      3. My scenario is the reverse of what you describe. GIS is Gentran
                      Integration Suite by Sterling Commerce. It is a java-based server from
                      which I am trying to call my .Net web service, i.e., GIS is the consumer.
                      Actually, I am able to call my web service from scripts in GIS, but (I'm the
                      programmer on both ends, which pits me against myself--is there a higher
                      meaning to this?!) from within my .Net web service, I am not able to figure
                      out where the XML document, that is supposedly within the SOAP Body, per the
                      Technical Assistants from Sterling Commerce, is. If I could figure that
                      out, I would be home free. I am able to get some response from my web
                      service program, just not the one that I want.

                      BTW, thanx for your patience!


                      "John Bailo" <jabailo@texeme .com> wrote in message
                      news:43F0CD68.3 0104@texeme.com ...[color=blue]
                      >
                      > 1. All web services are called using SOAP -- which uses XML. I really
                      > wouldn't focus on that. It's background.
                      >
                      > 2. java and .NET encapsulate and consume services in the same way. A c#
                      > client can consume a java web service, and vice versa.
                      >
                      > 3. I think that they are confusing "web service" with "web consumer" or
                      > "client". I am presuming that the GIS provides web services, and that
                      > you will call their web methods with a web client that you write, and that
                      > one of those web methods will return a datatype of XmlDocument.
                      >
                      > 4. If so, you can use the method below.
                      >
                      > To me, it sounds like your real job is to verify the scenario I outlined
                      > in (3). I mean, is this GIS being offered via the web? Or is it set up
                      > by someone in house?
                      >
                      >
                      >
                      >
                      > Bryan Dickerson wrote:[color=green]
                      >> Ok, here's the full scope of the problem: I am trying to work with a 3rd
                      >> party product called GIS that is essentially a java-based EDI product and
                      >> the documentation and 'technical assistants' (term used loosely) say that
                      >> 'it will use SOAP to call my (.Net) web service and it will pass an XML
                      >> Document to it in the SOAP Body and that XML document is what my web
                      >> service is supposed to work with.' Does that make any sense? I'm not
                      >> sure that it does to me, but it seems the best way that I can understand
                      >> it.
                      >>
                      >>
                      >> "John Bailo" <jabailo@texeme .com> wrote in message
                      >> news:43F0C0E2.6 040302@texeme.c om...
                      >>[color=darkred]
                      >>>First of all forget about SOAP -- SOAP is an encapsulation method that
                      >>>makes all datatypes available. It is a messaging protocol basically. The
                      >>>fact that it uses XML has nothing to do with what you're asking, which is
                      >>>"how do I retrieve the results of a web method whose return type is
                      >>>XmlDocument" .
                      >>>
                      >>>Here is the method I use:
                      >>>
                      >>>XmlDocumen t dom = new XmlDocument();
                      >>>
                      >>>//this is a web method that returns a list of clients as an XmlDocument
                      >>>XmlNode lcx = lc.ClientList() ;
                      >>>
                      >>>
                      >>>//this turns the XmlDocument from my webservice into
                      >>>//something I can use locally
                      >>>dom.AppendCh ild(dom.ImportN ode(
                      >>>lcx
                      >>>,true));
                      >>>
                      >>>
                      >>>
                      >>>
                      >>>Bryan Dickerson wrote:
                      >>>
                      >>>>Maybe I didn't phrase the question correctly. If my web service is
                      >>>>called via SOAP and an XML document is sent in the SOAP message body,
                      >>>>what object would I instantiate and what property would I need to get
                      >>>>that XML string so that I could do something with it?[/color]
                      >>
                      >>[/color][/color]

                      Comment

                      • John Bailo

                        #12
                        Re: SOAP Body


                        So, the GIS consumes your web service which sends it an XmlDocument?

                        That is, your web method is something like:


                        [WebMethod]
                        public XmlDocument myMethod(int i)
                        {


                        XmlDocument xd;

                        [...]

                        return xd;

                        }

                        And you are not able to retrieve xd in the GIS script?



                        Bryan Dickerson wrote:[color=blue]
                        > 3. My scenario is the reverse of what you describe. GIS is Gentran
                        > Integration Suite by Sterling Commerce. It is a java-based server from
                        > which I am trying to call my .Net web service, i.e., GIS is the consumer.
                        > Actually, I am able to call my web service from scripts in GIS, but (I'm the
                        > programmer on both ends, which pits me against myself--is there a higher
                        > meaning to this?!) from within my .Net web service, I am not able to figure
                        > out where the XML document, that is supposedly within the SOAP Body, per the
                        > Technical Assistants from Sterling Commerce, is. If I could figure that
                        > out, I would be home free. I am able to get some response from my web
                        > service program, just not the one that I want.
                        >
                        > BTW, thanx for your patience!
                        >
                        >
                        > "John Bailo" <jabailo@texeme .com> wrote in message
                        > news:43F0CD68.3 0104@texeme.com ...
                        >[color=green]
                        >>1. All web services are called using SOAP -- which uses XML. I really
                        >>wouldn't focus on that. It's background.
                        >>
                        >>2. java and .NET encapsulate and consume services in the same way. A c#
                        >>client can consume a java web service, and vice versa.
                        >>
                        >>3. I think that they are confusing "web service" with "web consumer" or
                        >>"client". I am presuming that the GIS provides web services, and that
                        >>you will call their web methods with a web client that you write, and that
                        >>one of those web methods will return a datatype of XmlDocument.
                        >>
                        >>4. If so, you can use the method below.
                        >>
                        >>To me, it sounds like your real job is to verify the scenario I outlined
                        >>in (3). I mean, is this GIS being offered via the web? Or is it set up
                        >>by someone in house?
                        >>
                        >>
                        >>
                        >>
                        >>Bryan Dickerson wrote:
                        >>[color=darkred]
                        >>>Ok, here's the full scope of the problem: I am trying to work with a 3rd
                        >>>party product called GIS that is essentially a java-based EDI product and
                        >>>the documentation and 'technical assistants' (term used loosely) say that
                        >>>'it will use SOAP to call my (.Net) web service and it will pass an XML
                        >>>Document to it in the SOAP Body and that XML document is what my web
                        >>>service is supposed to work with.' Does that make any sense? I'm not
                        >>>sure that it does to me, but it seems the best way that I can understand
                        >>>it.
                        >>>
                        >>>
                        >>>"John Bailo" <jabailo@texeme .com> wrote in message
                        >>>news:43F0C0E 2.6040302@texem e.com...
                        >>>
                        >>>
                        >>>>First of all forget about SOAP -- SOAP is an encapsulation method that
                        >>>>makes all datatypes available. It is a messaging protocol basically. The
                        >>>>fact that it uses XML has nothing to do with what you're asking, which is
                        >>>>"how do I retrieve the results of a web method whose return type is
                        >>>>XmlDocument ".
                        >>>>
                        >>>>Here is the method I use:
                        >>>>
                        >>>>XmlDocume nt dom = new XmlDocument();
                        >>>>
                        >>>>//this is a web method that returns a list of clients as an XmlDocument
                        >>>>XmlNode lcx = lc.ClientList() ;
                        >>>>
                        >>>>
                        >>>>//this turns the XmlDocument from my webservice into
                        >>>>//something I can use locally
                        >>>>dom.AppendC hild(dom.Import Node(
                        >>>>lcx
                        >>>>,true));
                        >>>>
                        >>>>
                        >>>>
                        >>>>
                        >>>>Bryan Dickerson wrote:
                        >>>>
                        >>>>
                        >>>>>Maybe I didn't phrase the question correctly. If my web service is
                        >>>>>called via SOAP and an XML document is sent in the SOAP message body,
                        >>>>>what object would I instantiate and what property would I need to get
                        >>>>>that XML string so that I could do something with it?
                        >>>
                        >>>[/color][/color]
                        >[/color]

                        Comment

                        • Bryan Dickerson

                          #13
                          Re: SOAP Body

                          Close, I'm not able to see the XMLDocument that is passed. Where should I
                          be looking? The Sterling Commerce folks say that I should be looking in the
                          SOAP Body, but I don't understand how that translates to an object that I
                          should instantiate.

                          "John Bailo" <jabailo@texeme .com> wrote in message
                          news:43F0E145.3 090300@texeme.c om...[color=blue]
                          >
                          > So, the GIS consumes your web service which sends it an XmlDocument?
                          >
                          > That is, your web method is something like:
                          >
                          >
                          > [WebMethod]
                          > public XmlDocument myMethod(int i)
                          > {
                          >
                          >
                          > XmlDocument xd;
                          >
                          > [...]
                          >
                          > return xd;
                          >
                          > }
                          >
                          > And you are not able to retrieve xd in the GIS script?
                          >
                          >
                          >
                          > Bryan Dickerson wrote:[color=green]
                          >> 3. My scenario is the reverse of what you describe. GIS is Gentran
                          >> Integration Suite by Sterling Commerce. It is a java-based server from
                          >> which I am trying to call my .Net web service, i.e., GIS is the consumer.
                          >> Actually, I am able to call my web service from scripts in GIS, but (I'm
                          >> the programmer on both ends, which pits me against myself--is there a
                          >> higher meaning to this?!) from within my .Net web service, I am not able
                          >> to figure out where the XML document, that is supposedly within the SOAP
                          >> Body, per the Technical Assistants from Sterling Commerce, is. If I
                          >> could figure that out, I would be home free. I am able to get some
                          >> response from my web service program, just not the one that I want.
                          >>
                          >> BTW, thanx for your patience!
                          >>
                          >>
                          >> "John Bailo" <jabailo@texeme .com> wrote in message
                          >> news:43F0CD68.3 0104@texeme.com ...
                          >>[color=darkred]
                          >>>1. All web services are called using SOAP -- which uses XML. I really
                          >>>wouldn't focus on that. It's background.
                          >>>
                          >>>2. java and .NET encapsulate and consume services in the same way. A c#
                          >>>client can consume a java web service, and vice versa.
                          >>>
                          >>>3. I think that they are confusing "web service" with "web consumer" or
                          >>>"client". I am presuming that the GIS provides web services, and that
                          >>>you will call their web methods with a web client that you write, and
                          >>>that one of those web methods will return a datatype of XmlDocument.
                          >>>
                          >>>4. If so, you can use the method below.
                          >>>
                          >>>To me, it sounds like your real job is to verify the scenario I outlined
                          >>>in (3). I mean, is this GIS being offered via the web? Or is it set up
                          >>>by someone in house?
                          >>>
                          >>>
                          >>>
                          >>>
                          >>>Bryan Dickerson wrote:
                          >>>
                          >>>>Ok, here's the full scope of the problem: I am trying to work with a 3rd
                          >>>>party product called GIS that is essentially a java-based EDI product
                          >>>>and the documentation and 'technical assistants' (term used loosely) say
                          >>>>that 'it will use SOAP to call my (.Net) web service and it will pass an
                          >>>>XML Document to it in the SOAP Body and that XML document is what my web
                          >>>>service is supposed to work with.' Does that make any sense? I'm not
                          >>>>sure that it does to me, but it seems the best way that I can understand
                          >>>>it.
                          >>>>
                          >>>>
                          >>>>"John Bailo" <jabailo@texeme .com> wrote in message
                          >>>>news:43F0C0 E2.6040302@texe me.com...
                          >>>>
                          >>>>
                          >>>>>First of all forget about SOAP -- SOAP is an encapsulation method that
                          >>>>>makes all datatypes available. It is a messaging protocol basically.
                          >>>>>The fact that it uses XML has nothing to do with what you're asking,
                          >>>>>which is "how do I retrieve the results of a web method whose return
                          >>>>>type is XmlDocument".
                          >>>>>
                          >>>>>Here is the method I use:
                          >>>>>
                          >>>>>XmlDocumen t dom = new XmlDocument();
                          >>>>>
                          >>>>>//this is a web method that returns a list of clients as an XmlDocument
                          >>>>>XmlNode lcx = lc.ClientList() ;
                          >>>>>
                          >>>>>
                          >>>>>//this turns the XmlDocument from my webservice into
                          >>>>>//something I can use locally
                          >>>>>dom.Append Child(dom.Impor tNode(
                          >>>>>lcx
                          >>>>>,true));
                          >>>>>
                          >>>>>
                          >>>>>
                          >>>>>
                          >>>>>Bryan Dickerson wrote:
                          >>>>>
                          >>>>>
                          >>>>>>Maybe I didn't phrase the question correctly. If my web service is
                          >>>>>>called via SOAP and an XML document is sent in the SOAP message body,
                          >>>>>>what object would I instantiate and what property would I need to get
                          >>>>>>that XML string so that I could do something with it?
                          >>>>
                          >>>>[/color]
                          >>[/color][/color]


                          Comment

                          • John Bailo

                            #14
                            Re: SOAP Body


                            What does the script code look like on the GIS that you use to call the
                            ..NET web service?

                            Basically, I would expect that you create an object that represents the
                            web service, and your web method should return a variable of type
                            XmlDocument to the GIS script.

                            FYI, you know, that you can put your web service into debug mode, and
                            set breakpoints, so that when the GIS calls it, you can make sure its
                            being called.

                            Bryan Dickerson wrote:[color=blue]
                            > Close, I'm not able to see the XMLDocument that is passed. Where should I
                            > be looking? The Sterling Commerce folks say that I should be looking in the
                            > SOAP Body, but I don't understand how that translates to an object that I
                            > should instantiate.
                            >
                            > "John Bailo" <jabailo@texeme .com> wrote in message
                            > news:43F0E145.3 090300@texeme.c om...
                            >[color=green]
                            >>So, the GIS consumes your web service which sends it an XmlDocument?
                            >>
                            >>That is, your web method is something like:
                            >>
                            >>
                            >>[WebMethod]
                            >>public XmlDocument myMethod(int i)
                            >>{
                            >>
                            >>
                            >>XmlDocument xd;
                            >>
                            >>[...]
                            >>
                            >>return xd;
                            >>
                            >>}
                            >>
                            >>And you are not able to retrieve xd in the GIS script?
                            >>
                            >>
                            >>
                            >>Bryan Dickerson wrote:
                            >>[color=darkred]
                            >>>3. My scenario is the reverse of what you describe. GIS is Gentran
                            >>>Integratio n Suite by Sterling Commerce. It is a java-based server from
                            >>>which I am trying to call my .Net web service, i.e., GIS is the consumer.
                            >>>Actually, I am able to call my web service from scripts in GIS, but (I'm
                            >>>the programmer on both ends, which pits me against myself--is there a
                            >>>higher meaning to this?!) from within my .Net web service, I am not able
                            >>>to figure out where the XML document, that is supposedly within the SOAP
                            >>>Body, per the Technical Assistants from Sterling Commerce, is. If I
                            >>>could figure that out, I would be home free. I am able to get some
                            >>>response from my web service program, just not the one that I want.
                            >>>
                            >>>BTW, thanx for your patience!
                            >>>
                            >>>
                            >>>"John Bailo" <jabailo@texeme .com> wrote in message
                            >>>news:43F0CD6 8.30104@texeme. com...
                            >>>
                            >>>
                            >>>>1. All web services are called using SOAP -- which uses XML. I really
                            >>>>wouldn't focus on that. It's background.
                            >>>>
                            >>>>2. java and .NET encapsulate and consume services in the same way. A c#
                            >>>>client can consume a java web service, and vice versa.
                            >>>>
                            >>>>3. I think that they are confusing "web service" with "web consumer" or
                            >>>>"client". I am presuming that the GIS provides web services, and that
                            >>>>you will call their web methods with a web client that you write, and
                            >>>>that one of those web methods will return a datatype of XmlDocument.
                            >>>>
                            >>>>4. If so, you can use the method below.
                            >>>>
                            >>>>To me, it sounds like your real job is to verify the scenario I outlined
                            >>>>in (3). I mean, is this GIS being offered via the web? Or is it set up
                            >>>>by someone in house?
                            >>>>
                            >>>>
                            >>>>
                            >>>>
                            >>>>Bryan Dickerson wrote:
                            >>>>
                            >>>>
                            >>>>>Ok, here's the full scope of the problem: I am trying to work with a 3rd
                            >>>>>party product called GIS that is essentially a java-based EDI product
                            >>>>>and the documentation and 'technical assistants' (term used loosely) say
                            >>>>>that 'it will use SOAP to call my (.Net) web service and it will pass an
                            >>>>>XML Document to it in the SOAP Body and that XML document is what my web
                            >>>>>service is supposed to work with.' Does that make any sense? I'm not
                            >>>>>sure that it does to me, but it seems the best way that I can understand
                            >>>>>it.
                            >>>>>
                            >>>>>
                            >>>>>"John Bailo" <jabailo@texeme .com> wrote in message
                            >>>>>news:43F0C 0E2.6040302@tex eme.com...
                            >>>>>
                            >>>>>
                            >>>>>
                            >>>>>>First of all forget about SOAP -- SOAP is an encapsulation method that
                            >>>>>>makes all datatypes available. It is a messaging protocol basically.
                            >>>>>>The fact that it uses XML has nothing to do with what you're asking,
                            >>>>>>which is "how do I retrieve the results of a web method whose return
                            >>>>>>type is XmlDocument".
                            >>>>>>
                            >>>>>>Here is the method I use:
                            >>>>>>
                            >>>>>>XmlDocume nt dom = new XmlDocument();
                            >>>>>>
                            >>>>>>//this is a web method that returns a list of clients as an XmlDocument
                            >>>>>>XmlNode lcx = lc.ClientList() ;
                            >>>>>>
                            >>>>>>
                            >>>>>>//this turns the XmlDocument from my webservice into
                            >>>>>>//something I can use locally
                            >>>>>>dom.Appen dChild(dom.Impo rtNode(
                            >>>>>>lcx
                            >>>>>>,true)) ;
                            >>>>>>
                            >>>>>>
                            >>>>>>
                            >>>>>>
                            >>>>>>Bryan Dickerson wrote:
                            >>>>>>
                            >>>>>>
                            >>>>>>
                            >>>>>>>Maybe I didn't phrase the question correctly. If my web service is
                            >>>>>>>called via SOAP and an XML document is sent in the SOAP message body,
                            >>>>>>>what object would I instantiate and what property would I need to get
                            >>>>>>>that XML string so that I could do something with it?
                            >>>>>
                            >>>>>[/color][/color]
                            >
                            >[/color]

                            Comment

                            • Bryan Dickerson

                              #15
                              Re: SOAP Body

                              Clarification: I'm not able to see the XML Document that is passed to my web
                              service from GIS.

                              "Bryan Dickerson" <txprphan@netsc ape.net> wrote in message
                              news:%23trEjgNM GHA.3196@TK2MSF TNGP09.phx.gbl. ..[color=blue]
                              > Close, I'm not able to see the XMLDocument that is passed. Where should I
                              > be looking? The Sterling Commerce folks say that I should be looking in
                              > the SOAP Body, but I don't understand how that translates to an object
                              > that I should instantiate.
                              >
                              > "John Bailo" <jabailo@texeme .com> wrote in message
                              > news:43F0E145.3 090300@texeme.c om...[color=green]
                              >>
                              >> So, the GIS consumes your web service which sends it an XmlDocument?
                              >>
                              >> That is, your web method is something like:
                              >>
                              >>
                              >> [WebMethod]
                              >> public XmlDocument myMethod(int i)
                              >> {
                              >>
                              >>
                              >> XmlDocument xd;
                              >>
                              >> [...]
                              >>
                              >> return xd;
                              >>
                              >> }
                              >>
                              >> And you are not able to retrieve xd in the GIS script?
                              >>
                              >>
                              >>
                              >> Bryan Dickerson wrote:[color=darkred]
                              >>> 3. My scenario is the reverse of what you describe. GIS is Gentran
                              >>> Integration Suite by Sterling Commerce. It is a java-based server from
                              >>> which I am trying to call my .Net web service, i.e., GIS is the
                              >>> consumer. Actually, I am able to call my web service from scripts in
                              >>> GIS, but (I'm the programmer on both ends, which pits me against
                              >>> myself--is there a higher meaning to this?!) from within my .Net web
                              >>> service, I am not able to figure out where the XML document, that is
                              >>> supposedly within the SOAP Body, per the Technical Assistants from
                              >>> Sterling Commerce, is. If I could figure that out, I would be home
                              >>> free. I am able to get some response from my web service program, just
                              >>> not the one that I want.
                              >>>
                              >>> BTW, thanx for your patience!
                              >>>
                              >>>
                              >>> "John Bailo" <jabailo@texeme .com> wrote in message
                              >>> news:43F0CD68.3 0104@texeme.com ...
                              >>>
                              >>>>1. All web services are called using SOAP -- which uses XML. I really
                              >>>>wouldn't focus on that. It's background.
                              >>>>
                              >>>>2. java and .NET encapsulate and consume services in the same way. A
                              >>>>c# client can consume a java web service, and vice versa.
                              >>>>
                              >>>>3. I think that they are confusing "web service" with "web consumer" or
                              >>>>"client". I am presuming that the GIS provides web services, and that
                              >>>>you will call their web methods with a web client that you write, and
                              >>>>that one of those web methods will return a datatype of XmlDocument.
                              >>>>
                              >>>>4. If so, you can use the method below.
                              >>>>
                              >>>>To me, it sounds like your real job is to verify the scenario I outlined
                              >>>>in (3). I mean, is this GIS being offered via the web? Or is it set
                              >>>>up by someone in house?
                              >>>>
                              >>>>
                              >>>>
                              >>>>
                              >>>>Bryan Dickerson wrote:
                              >>>>
                              >>>>>Ok, here's the full scope of the problem: I am trying to work with a
                              >>>>>3rd party product called GIS that is essentially a java-based EDI
                              >>>>>product and the documentation and 'technical assistants' (term used
                              >>>>>loosely) say that 'it will use SOAP to call my (.Net) web service and
                              >>>>>it will pass an XML Document to it in the SOAP Body and that XML
                              >>>>>document is what my web service is supposed to work with.' Does that
                              >>>>>make any sense? I'm not sure that it does to me, but it seems the best
                              >>>>>way that I can understand it.
                              >>>>>
                              >>>>>
                              >>>>>"John Bailo" <jabailo@texeme .com> wrote in message
                              >>>>>news:43F0C 0E2.6040302@tex eme.com...
                              >>>>>
                              >>>>>
                              >>>>>>First of all forget about SOAP -- SOAP is an encapsulation method that
                              >>>>>>makes all datatypes available. It is a messaging protocol basically.
                              >>>>>>The fact that it uses XML has nothing to do with what you're asking,
                              >>>>>>which is "how do I retrieve the results of a web method whose return
                              >>>>>>type is XmlDocument".
                              >>>>>>
                              >>>>>>Here is the method I use:
                              >>>>>>
                              >>>>>>XmlDocume nt dom = new XmlDocument();
                              >>>>>>
                              >>>>>>//this is a web method that returns a list of clients as an
                              >>>>>>XmlDocume nt
                              >>>>>>XmlNode lcx = lc.ClientList() ;
                              >>>>>>
                              >>>>>>
                              >>>>>>//this turns the XmlDocument from my webservice into
                              >>>>>>//something I can use locally
                              >>>>>>dom.Appen dChild(dom.Impo rtNode(
                              >>>>>>lcx
                              >>>>>>,true)) ;
                              >>>>>>
                              >>>>>>
                              >>>>>>
                              >>>>>>
                              >>>>>>Bryan Dickerson wrote:
                              >>>>>>
                              >>>>>>
                              >>>>>>>Maybe I didn't phrase the question correctly. If my web service is
                              >>>>>>>called via SOAP and an XML document is sent in the SOAP message body,
                              >>>>>>>what object would I instantiate and what property would I need to get
                              >>>>>>>that XML string so that I could do something with it?
                              >>>>>
                              >>>>>
                              >>>[/color][/color]
                              >
                              >[/color]


                              Comment

                              Working...