Forum main
page
Most
active member
Login page
Register
Log out
Search page
View our event calendar
Add general event such as an upcoming
software release or conference
View all birthdays
Public image gallery
Upload your images in your profile
Profile editing page
Subscription list page
Address book page
Member list page
View the
most active member
User groups listing
Private message page
|
Webservice call with an “object” parameter from orchestration
View related threads:
(in this forum
| in all forums)
|
Logged in as: Guest
|
|
Users viewing this topic: none
|
|
Login | |
|
Webservice call with an “object” parameter from orc... - 26 August 2008
|
|
|
ershad
Posts: 1
Score: 0 Joined: 26 August 2008 Status: offline
|
Hi, I am working on a project where I need to call a remote WS from an orchestration. I started out by adding a web reference to my orchestration but received the error “Failed to add Web Refernece”. I did some research about this issue but didn’t find a solution to the problem. I then took another route by manually creating the proxy class via the wsdl.exe tool which in short gave me the following method signature: public object Foo(ref string vReturn, object vXML) { object[] results = this.Invoke("Method", new object[] { (object)vReturn, vXML}); vReturn = results[1].ToString(); return ((object)(results[0])); } } Next I created a custom pipeline component to construct the multipart message required for the Web Service call // private component method IBaseMessage CreateMessage(Stream s, IBaseMessageFactory msgFactory, IBaseMessageContext context) { IBaseMessage msg = msgFactory.CreateMessage(); IBaseMessagePart part = msgFactory.CreateMessagePart(); part.Data = s; msg.Context = context; //vReturn IBaseMessagePart vReturn = msgFactory.CreateMessagePart(); byte[] firstPart = System.Text.Encoding.UTF8.GetBytes(string.Format("<string>{0}</string>", "")); vReturn.Data = new MemoryStream(firstPart); vReturn.Charset = "utf-8"; vReturn.ContentType = "text/xml"; msg.AddPart("vReturn", vReturn, false); //vXML msg.AddPart("vXML", part, true); return msg; } I then configured the solicit-response SOAP sendport to use the GACed proxy class. However I’m now getting the following error: “Error Description: Failed to serialize the message part "vXML" into the type "Object" using namespace "". Please ensure that the message part stream is created properly.” Any help to take me further is appreciated! Regards, //Ershad
|
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|