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)
-> + XPath documentation confusion (2)
-> + Extra block/CR generated (6)
-> + Apache FOP (2)
-> + Inserting Java Script (2)
-> + Convert EDIFACT to X12 or vice... (6)
-> + XSD: Restricting an attribute ... (2)
-> + Creating dynamically named ele... (2)
-> + Report reverts back to XHTML-C... (2)
-> + Certificate error (7)
-> + Opening DITA files and associa... (4)
-> + Cannot see links from source d... (10)
-> + SS 2007 vs. SS 2008 calling a ... (3)
-> + Unable to compile java file (8)
-> + Unable to use xsi:type attribu... (2)
-> + Unable to save xslt file after... (5)
-> + .NET XslTransform Compiled out... (3)
-> + Reporting Comparison (2)
-> + problems setting up the fonts ... (3)
-> + XML conversion (5)
-> + XQUERY: Application Crash (3)
-> + Base type definition does not ... (5)
-- 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.