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
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext 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...

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
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.