Home Page › Forums › BizTalk 2004 – BizTalk 2010 › W3 ORG 2001 XMLSchema is Not Declared
- This topic has 1 reply, 1 voice, and was last updated 9 years, 2 months ago by
community-content.
-
AuthorPosts
-
-
January 22, 2008 at 1:21 PM #18812
Hello:
I am not sure if this post belongs in BizTalk forum but perhaps some of you have come across this ptoblem before when trying to add web references to your BizTalk project.
I have an existing web service project ( let’s call it ‘WSProject’ ) which houses approx. 5 web services and which are all web referenced in my BizTalk Schemas project ( let’s call it ‘BTSchemasProj’ ) and they are working fine. However, recently I added a new web service to WSProject and built it with success. The problem is that when I add that service as a web reference in my BTSchemasProj I get the following error:
Error 10 The ‘http://www.w3.org/2001/XMLSchema:schema’ element is not declared. Reference.xsd
I have not been able to figure out why this is happening although i do see one difference in the service’s wsdl file that I do not see in the others:
The wsdl starts out with the very same wsdl:definitions as the others
<wsdl:definitions xmlns:soap=”http://schemas.xmlsoap.org/wsdl/soap/” xmlns:tm=”http://microsoft.com/wsdl/mime/textMatching/” xmlns:soapenc=”http://schemas.xmlsoap.org/soap/encoding/” xmlns:mime=”http://schemas.xmlsoap.org/wsdl/mime/” xmlns:tns=”http://schemas.mysite.com/2008/01/22/Service” xmlns:s=”http://www.w3.org/2001/XMLSchema” xmlns:soap12=”http://schemas.xmlsoap.org/wsdl/soap12/” xmlns:http=”http://schemas.xmlsoap.org/wsdl/http/” targetNamespace=”http://schemas.mysite.com/2008/01/22/Service” xmlns:wsdl=”http://schemas.xmlsoap.org/wsdl/”>
…but when I look at the schems under wsdl:types I see an imports statement that I do not see in the other wsdl files:
<wsdl:types>
<s:schema elementFormDefault=”qualified” targetNamespace=”http://schemas.mysite.com/2008/01/22/Service”>
<s:import namespace=”http://www.w3.org/2001/XMLSchema” />
<s:element name=”RetreiveEFTFileInfo”>I have tried commenting out the import tag in bold with no success.
Does anyone have any suggestions? I am assuming the issue is on the web service side.
Thanks
-
January 28, 2008 at 11:04 AM #18844
Well, luckily I figured this out on my own. I noticed that the web service method I was having a problem with was returning an object with a collection of LLBLGen data access entities in it. When I took this out of my web service response object ( because I did not need it there ) and rebuilt, I had no problem referencing the web service from BizTalk.
Mental note #1: never pass LLBLGen objects around outside of a business layer.
Mental note #2: never expect BizTalk to consume objects that are questionable in terms of being fully serializable.
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.