- This topic has 5 replies, 3 voices, and was last updated 17 years, 11 months ago by Brian Fernandes.
-
AuthorPosts
-
srichitraMemberI could successfully create a web service. I would like to make the schema(.xsd) documents refered by WSDL in a location that can be accessed by the clients? How do I approach this?
Brian FernandesModeratorsrichitra,
I believe the right way to do this would be to actually upload the xsd documents used to a publicly accessible web server and reference these online versions in your WSDL file instead of referencing the local copies.
The initial drawback of this approach is the WSDL / XML editor will need to reference an online resource for validation, but this can be fixed by adding the XSD files referenced to our XML catalog (Go to Window > Preferences > MyEclipse > Files & Editors > XML > XML Catalog and click the Add button).
Hope this helps.
srichitraMemberSupport Team,
Thanks for the Prompt reply. I really appreciate that.
I tried to publish the .xsd schema files in the same web service application. I created a directory called schemas under the web root parallel to WEB-INF directory and saved some .xsd files under “schemas” folder. Then tried to access the .xsd schema files on the browser. I got resource not found error. Do I have to configure anything in the server to serve .xsd files?Thanks!
Riyad KallaMembersrichitra,
You actually did the right thing, what URL were you using to access the schema? Let’s assume your context root was “myapp” and your XSD was named “myservice.xsd”, then that means you would use a URL like so:
http://localhost:8080/myapp/schemas/myservice.xsdto access it.
srichitraMemberI am using an URL similar to
http://localhost:8080/myapp/schemas/myservice.xsdI am getting “Invalid SOAP request ” on accessing the above url.
Thanks !
Brian FernandesModeratorSrichitra,
Can you tell us exactly how you are accessing the above URL or where and how you have referenced it in your WSDL file?
If you can access the above URL via a browser, then it should be fine to reference it in the WSDL file; I don’t see what action could cause an “Invalid SOAP request”.
If you can paste the WSDL and XSD files here or mail them to support@genuitec.com ATTN Brian, we should be able to help more.
-
AuthorPosts