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 ]
|