I'm stuck!! Constructing XML message for a webService call
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > I'm stuck!! Constructing XML message for a webService call




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    I'm stuck!! Constructing XML message for a webService call  
Andreas


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-08-06 10:53 PM

Hi,

Im trying to create a message for a webservice call according to the
methodology described here

(http://objectsharp.com/Blogs/matt/a...11/09/1009.aspx)

Approach is to create an XmlDocument, load it up with some static
xml from a static string, and then assign the message ("msgSend")
this value.  The Message Type of the mesage is a Web Message type
and pointing to the Request soap from the WebService/WSDL reference
already added to the orchestration.

The sample files are using a transformation, but since this is just a simple
string parameter i was hoping to use this approach.

Please help

msgSend = xmlDoc;

it doesnt work, because "cannot implicitly convert type
'System.Xml.XmlDocument' to 'message PollForDocumentRequest_request'" from
the Expression Editor.

What does this mean exactly? what is this message type of, and how come it
works for everyone else :-)

thanks in advance
Andreas





[ Post a follow-up to this message ]



    Re: I'm stuck!! Constructing XML message for a webService call  
Andre Prins


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-08-06 10:53 PM

Andreas wrote:

> msgSend = xmlDoc;

In one of my orchestrations it works like this:

msgOut.RequestBody = xmlOut;

Do you see anything if you type a dot after msgSend?

--
Andre Prins
Twain Development





[ Post a follow-up to this message ]



    Re: I'm stuck!! Constructing XML message for a webService call  
Greg Forsythe


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-08-06 10:53 PM

The answer is it depends on the type of message that is being passed.

[WebMethod]
public string GetName(int ID)

The message types are simple types, there is no Schema to define the message
so in the orchestration
WebServiceRequestMessage.ID = 3;
strVar = WebServiceResponseMessage.GetNameResult;

OR
[WebMethod]
public object GetInfo(object IDStructure)

The message types here are complex types and a Schema will be defined. The
schema is added when the Web Reference is added to the project.
xmlDoc.Load("<!--required xml-->");
WebServiceRequestMessage = xmlDoc;
xmlDoc = WebServiceResponseMessage;


Greg

"Andreas" <andreasw2000@hotmail.com> wrote in message
news:2C6033A7-51B4-41BB-91B4-BF86DE0A0063@microsoft.com...
> Hi,
>
> Im trying to create a message for a webservice call according to the
> methodology described here
>
> (http://objectsharp.com/Blogs/matt/a...11/09/1009.aspx)
>
> Approach is to create an XmlDocument, load it up with some static
> xml from a static string, and then assign the message ("msgSend")
> this value.  The Message Type of the mesage is a Web Message type
> and pointing to the Request soap from the WebService/WSDL reference
> already added to the orchestration.
>
> The sample files are using a transformation, but since this is just a
> simple
> string parameter i was hoping to use this approach.
>
> Please help
>
> msgSend = xmlDoc;
>
> it doesnt work, because "cannot implicitly convert type
> 'System.Xml.XmlDocument' to 'message PollForDocumentRequest_request'" from
> the Expression Editor.
>
> What does this mean exactly? what is this message type of, and how come it
> works for everyone else :-)
>
> thanks in advance
> Andreas







[ Post a follow-up to this message ]



    Re: I'm stuck!! Constructing XML message for a webService call  
Andreas


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-14-06 10:52 PM

Yeah, there was :-D

I solved it by just adding a xml doc variable to the orchestration,
and loading that xmlDoc with a static XML parameter string, assigning
it to a subproperty of the message itself and it was taken care of.


"Andre Prins" wrote:

> Andreas wrote:
> 
>
> In one of my orchestrations it works like this:
>
> msgOut.RequestBody = xmlOut;
>
> Do you see anything if you type a dot after msgSend?
>
> --
> Andre Prins
> Twain Development
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:23 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register