XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> + Base type definition does not ... (5)
-> + Tip says Generate C# Code actu... (2)
-> + install help (4)
-> + saxon-license (3)
-> + Mapping 1 xml file layout to a... (2)
-> - Problem - Schema Representatio... (3)
-> ->Problem - Schema Represen...
-> ->Problem - Schema Represen...
-> + selecting the correct Line Ter... (2)
-> + Stylus Studio crashing (14)
-> + EXSLT extensions in Stylusstud... (4)
-> + "Indent XML Tags" introduces u... (8)
-> + unable to use Stylus Studio of... (4)
-> + Replace in selection not worki... (4)
-> + Activation Key (3)
-> + Berkeley support removed! ? (2)
-> + Report editor slows to a virtu... (2)
-> + StylusStudio will not stop pro... (2)
-> + Indent tags resolves NCRs in a... (4)
-> + XML Report Table Problem (2)
-> + document() function throws unk... (7)
-> + Report indentation (2)
-- Previous [1321-1340] [1341-1360] [1361-1380] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Jeff SmithSubject: Problem - Schema Representation Constraint: Namespace [xxx] is referenced without declaration
Author: Jeff Smith
Date: 12 Dec 2007 10:43 AM
Stylus,

I am having a problem trying to create a Web Service Call using Stylus Studio 2007 XML Enterprise Suite build 735f.

Essentually, everytime I point to one our our webservice endpoints to build the web service call scenario, I get the following error:

Schema Representation Constraint: Namespace [xxx] is referenced without <import> declaration.

We use Visual Studio 2005 and ThinkTecture Web Service Contract First v0.7 to build XSD's first and then generate WSDL and Web Service implementations.

I have zipped up the entire project for your review. The odd thing is, the prior version of Stylus Studio worked without problem. It is only since the upgrade that we are have this issue.

I should add, that the web services run with no problems and that MS InfoPath has no problems reading and generating input screens for the WSDL returned from the web service end-points.

Any help is greatly appreciated since I prefer SS raw view of the XML submitted and returned from web services.

Thanks

Jeff


UnknownSSMissingImport.zip
Demonstration Application

Postnext
(Deleted User) Subject: Problem - Schema Representation Constraint: Namespace [xxx] is referenced without declaration
Author: (Deleted User)
Date: 12 Dec 2007 12:10 PM
Hi Jeff,
I tried your WSDL with Stylus Studio 2007 bl735f but I don't see the error you are seeing. What I see is an empty tree in the Operations list, because the WSDL is missing the value for the "location" attribute of the soap:address element. Once I added a (random) value for it, I saw the ApplyParticipation service and Stylus generated this XML request:

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:ApplyParticipationRequest xmlns:tns="http://UnumProvident.com/Enrollment/Contracts/v1">
<tns:Parameters>
<a:CustomerAgreementIdentifier/>
<a:AgreementInteractionIdentifier/>
</tns:Parameters>
<tns:GroupRateIdentifier/>
<tns:Products>
<tns:Product>
<tns:ProductIdentifier/>
<tns:ParticipationAction>RejectNone</tns:ParticipationAction>
<tns:ApplyToElectronic/>
<tns:ApplyToPaper/>
</tns:Product>
</tns:Products>
</tns:ApplyParticipationRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Can you double check you sent the same files you used when you got the error?

Thanks,
Alberto

Posttop
Jeff SmithSubject: Problem - Schema Representation Constraint: Namespace [xxx] is referenced without declaration
Author: Jeff Smith
Date: 12 Dec 2007 01:43 PM
Thanks for your help... You gave me some things to look at and we figured it out...

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.