Using Webservices BizTAlk

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Using Webservices BizTAlk

Viewing 3 reply threads
  • Author
    Posts
    • #21585

      Hello  Everybody,

      i’m pretty new in this BizTalk thing. I’m a student which has no expierience in .NET developing ( but a lil java) .

      I have the task  to build an application which has to call a webservice.

      My question  is:  how do i get the Value of a node from Message into the Webservice.requestmessage .

      My Webservice wants a CustomerID and the service brings back a String.

      I have the CustumorID saved in an XMLdocument (Mymessage) node. I guess i have to use some expression like:

      Webservices.Request = MyMsg.probertyschema.CustamerID;  // thats how u would do it in regular programming

      And second step is how do i get the response back into my Biztalk Message.

      Sorry for my poor english.

      Thank you

      Amar

       

       

       

       

    • #21592

      Hi there, I’d start with looking at one of the samples in the BizTalk server sdk calld “Consuming Web Service”. It’s usually found under:

      C:\Program Files\Microsoft BizTalk Server 2006\SDK\Samples\Orchestrations\ConsumeWebService

      Here’s the page that explains a bit more about it:

      http://msdn.microsoft.com/en-us/library/aa560372.aspx

      • #21593

        Thank u for your fast answer

         

        Hi i have read this already, but i’m doing pretty hard reading technical stuff in english.

        Anyway , i found the solution already , it wasn’t that tough, shame on me. U just have to use the assignment shape and fill it with the expression MsgWebservicerequest.variable=MyMsg.Node.

        But know i have a second problem. The webservice wants a Datatype called Sytem.Data.SQLtypes.sqlint32 and my node is a regular int .

        Does anybody know how i get the Int converted into the Sytem.Data.SQLtypes.sqlint32 Format.

         

        Thanks

    • #21599

      before call webservice use MessageAssignment ( to set the value means to say the web service need some parameter set the parameter value with you XSD element value ) the call the webservice …if you add the reference of webservice to your biztalk application it will automatically create the PortType use that port type it will be SOAP type and  direction will be Send and Received

      if you need help let me know i will write the each steps

      regards

      Akash KB ([email protected])

       

    • #21605

      Hi,

      You can retrive the node values in two ways..

      1)using property schema

      2)using Xpath Query in Expression Editor

      once u added the Webservice reference it will give u two messages-Request and Response….so send Request through by configuring Send Port and Get Response using Receive Shape…

       

      Thanks

      Sri

       

       

      • #21611

        Thank you all for your quick replies . Like i said a few posts above i already found out how to use the webservices.
        I only have one Problem left ,my webservice is just a stub. It wants a CustumerID as a parameter and returns a string .The Problem is that the expected CustomerID is an System.Data.SQLtypes.sqlint32 Datatype,  Now if i want to assign the node to the to the WS.reqeust message  it gives me an error that BT can’t convert  System.Data.SQLtypes.sqlint32 to INT.

        Does anybody have a clue?

        Thanks Amar

        • #21620

          Element Datatype must be same with webservice papameter…BizTalk Server won’t be convert the datatype…by defalut webservice parameters promoted…no need to do the properties pomotion … Create XSD element with same datatype with Webservice Parameter, then do the pomotion …before call use the MessageAssignment Shape to Align the elemets(XSD) and Parameters(Webservice)

           

          Akash KB ([email protected])

Viewing 3 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.