Results 1 to 5 of 5

Thread: "sch" prefix out of nowhere

  1. #1
    Join Date
    Jan 2010
    Posts
    5

    Default "sch" prefix out of nowhere

    In order to learn Spring WS, I've created a simple web service which adds to integer numbers and returns the result to the client. My service works fine. I've tested it with SoapUI. Nevertheless, when SoapUI retrievs the wsdl to present the request XML, there appears a strange prefix "sch:" instead of the one I put in the schema.
    This prefix is nowhere in the wsdl.
    The prefixes in the response are OK.
    Where does the prefix come from? Why is my prefix not used?
    I use Spring WS 1.5.7

  2. #2
    Join Date
    Jan 2008
    Location
    San Diego
    Posts
    780

    Default

    It's just a namespace bound to your schema. The namespace prefix is irrelevant. It could be 'sch', 'ns' or 'ns1' it doesn't really matter.

  3. #3
    Join Date
    Jan 2010
    Posts
    5

    Default

    Thanks for your reply, Chudak.

    As I looked closer at the wsdl, I found you're right.
    The prefix I used in my schema does not get passed to wsdl.
    "tns" prefix (target namespace) is used instead in the wsdl.
    That's why clients can use whatever prefix they like, provided it is bound to the target namespace. And SoapUI seems to like "sch".
    If you find something wrong in my reasoning, please let me know.

  4. #4
    Join Date
    Jan 2008
    Location
    San Diego
    Posts
    780

    Default

    Quote Originally Posted by brtj View Post
    Thanks for your reply, Chudak.

    As I looked closer at the wsdl, I found you're right.
    The prefix I used in my schema does not get passed to wsdl.
    "tns" prefix (target namespace) is used instead in the wsdl.
    That's why clients can use whatever prefix they like, provided it is bound to the target namespace. And SoapUI seems to like "sch".
    If you find something wrong in my reasoning, please let me know.
    Your reasoning is correct. Some tools use 'sch'--some use 'tns' or 'ns1'. It really doesn't matter what the prefix is as long as it is bound to the correct namespace URI.

  5. #5
    Join Date
    Jan 2010
    Posts
    5

    Default

    Thanks again. Now, it's all clear to me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •