Announcement Announcement Module
Collapse
No announcement yet.
"sch" prefix out of nowhere Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • "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
    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.

    Comment


    • #3
      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.

      Comment


      • #4
        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.

        Comment


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

          Comment

          Working...
          X