Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Error add Service Reference hosted in IIS7
- This topic has 3 replies, 1 voice, and was last updated 9 years, 3 months ago by
community-content.
-
AuthorPosts
-
-
January 7, 2010 at 7:30 AM #24015
Hello
I would like to add a Service Reference from my “http://…..svc?wsdl” Service.
I published the service from BizTalk 2009 in a IIS 7. Then i added the service in Visual Studio 2008 .Net 3.5.
The problem is that I get arrays instead of Generic.List<T>. I tried to set “add service reference->advanced->collection type = System.Collections.Generic.List but it doesn’t work.
I tried also with the svcutil.exe and wsdl.exe… /ct:System.Collections.Generic.List`1
Does anyone have any idea where the problem is?
Thanks
-
January 7, 2010 at 6:31 PM #24026
The problem may be the serializer that is used. I believe you need to use the DataContractSerializer to support List<T> structures, however this serializer only supports specific xml schema patterns. If this serializer fails the XmlSerializer is used.
What I have done in the past is to create the contract in .Net using the DataContractSerializer attributes, then generated an xsd from this class and added this schema to Biztalk.
-
January 8, 2010 at 2:17 AM #24028
Thanks it’s a good point.
Could you help me how I can switch to DataContractSerializer?
What should I change? I have a WCF Service which I consume in BTS and then BTS publish the Service in IIS 7.In my WCF CODE
Old
[ServiceContract(Namespace = “http://myservice.ch/contract/IServices/v1”)]
public interface IMaxService
{
[OperationContract]
[FaultContract(typeof(IServices.ServiceModel.ServiceRequestFaultExceptionSystemFailure))]
MaxRequest MaxFunction(MaxRequest request);
——————————————————————————————————
New
[ServiceContract(Namespace = “http://myservice.ch/contract/IServices/v1”)]
public interface IMaxService
{
[OperationContract]
[DataContractFormat]
[FaultContract(typeof(IServices.ServiceModel.ServiceRequestFaultExceptionSystemFailure))]
MaxRequest MaxFunction(MaxRequest request);Is there everthing else to change in BizTalk?
-
January 8, 2010 at 2:22 AM #24029
Normal
021
false
false
falseDE
X-NONE
X-NONEMicrosoftInternetExplorer4
<!–
/* Font Definitions */
@font-face
{font-family:”Cambria Math”;
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:1;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073750139 0 0 159 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:””;
margin-top:0cm;
margin-right:0cm;
margin-bottom:10.0pt;
margin-left:0cm;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:”Calibri”,”sans-serif”;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:”Times New Roman”;
mso-bidi-theme-font:minor-bidi;
mso-ansi-language:DE-CH;
mso-fareast-language:EN-US;}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:”Times New Roman”;
mso-bidi-theme-font:minor-bidi;
mso-fareast-language:EN-US;}
.MsoPapDefault
{mso-style-type:export-only;
margin-bottom:10.0pt;
line-height:115%;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
–>/* Style Definitions */
table.MsoNormalTable
{mso-style-name:”Normale Tabelle”;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:””;
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin-top:0cm;
mso-para-margin-right:0cm;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0cm;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:”Calibri”,”sans-serif”;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:”Times New Roman”;
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}Old
[ServiceContract(Namespace =
“http://myservice.ch/contract/IServices/v1”)]
public interface IMaxService{
[OperationContract]
[FaultContract(typeof(IServices.ServiceModel.ServiceRequestFaultExceptionSystemFailure))]
MaxRequest MaxFunction(MaxRequest request);——————————————————————————————————
New
[ServiceContract(Namespace =
“http://myservice.ch/contract/IServices/v1”)]
public interface IMaxService{
[OperationContract]
<b>[DataContractFormat]</b>
[FaultContract(typeof(IServices.ServiceModel.ServiceRequestFaultExceptionSystemFailure))]
MaxRequest MaxFunction(MaxRequest request);
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.