|
Home > Archive > BizTalk Server Orchestration > March 2006 > I'm stuck!! Constructing XML message for a webService call
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
I'm stuck!! Constructing XML message for a webService call
|
|
| Andreas 2006-03-08, 5: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
| |
| Andre Prins 2006-03-08, 5: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
| |
| Greg Forsythe 2006-03-08, 5: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
| |
| Andreas 2006-03-14, 5: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
>
|
|
|
|
|