facebook

Publishing schemas

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #263173 Reply

    srichitra
    Member

    I 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?

    #263176 Reply

    Brian Fernandes
    Moderator

    srichitra,

    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.

    #263216 Reply

    srichitra
    Member

    Support 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!

    #263342 Reply

    Riyad Kalla
    Member

    srichitra,
    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.xsd

    to access it.

    #263495 Reply

    srichitra
    Member

    I am using an URL similar to
    http://localhost:8080/myapp/schemas/myservice.xsd

    I am getting “Invalid SOAP request ” on accessing the above url.

    Thanks !

    #263590 Reply

    Brian Fernandes
    Moderator

    Srichitra,

    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.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Publishing schemas

You must be logged in to post in the forum log in