BizTalk Server General - BizTalk SOAP: Web Service returns an object

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > April 2006 > BizTalk SOAP: Web Service returns an object





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 BizTalk SOAP: Web Service returns an object
AnaB

2006-04-27, 7:26 am

Hello,
I have a simple question that somehow hasn't been simple for me to
figure out.
I have a web service that returns an object (used to be an array, but
as we all know that's a no-can do for BizTalk).
All I'm trying to do in my orchestration with this object is assign its
properties to orchestration variables.
Well, WSResponseMessage.WSMethod.objectproperty doesn't show up.
That is when I type in WSResponseMessage.WSMethod, none of the object
properties come up.
So I thought, maybe I'm misunderstanding how this is supposed to work.
I turn to "BizTalk Server 2004 Unleashed" and it guides me through a
message conversion process that includes a new "object" schema and a
map to convert the SOAP response message to this "object" schema type
message.

My question is:
Am I just doing something wrong or is this the only way to use the
object return by a web service inside an orchestration?

Code project had the following example that looked like it was supposed
to work how I expected. However this didn't work in my orchestration:
http://www.codeproject.com/useritems/WSCustomParams.asp

EmployeeOut.EmployeeCity =
WSResponse.RetrieveEmployeeResult.EmployeeCity;
EmployeeOut.EmployeeName =
WSResponse.RetrieveEmployeeResult.EmployeeName;
EmployeeOut.EmployeeDept =
WSResponse.RetrieveEmployeeResult.EmployeeDept;
EmployeeOut.EmployeeEmail
=WSResponse.RetrieveEmployeeResult.EmployeeEmail;

The WSResponse.RetrieveEmployeeResult.EmployeeCity is what didn't seem
to work for me.

Any help is appreciated.

Thanks
Ana

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com