webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

ser-root element in SOAP response

webMethods Community Member

webMethods Community MemberFri December 12, 2008 11:32 AM

webMethods Community Member

webMethods Community MemberWed January 05, 2011 09:41 AM

webMethods Community Member

webMethods Community MemberWed September 14, 2011 08:18 AM

  • 1.  ser-root element in SOAP response

    Posted Thu November 13, 2008 02:43 PM

    Some time ago i posted a problem about IS adding strange xml-elements to a soap response (see: [URL]wmusers.com).
    I finally upgraded to version 7.1.2, but the problem is not resolved.

    I have made a short example that illustrates the problem. I have attached a zip containing the wsdl, xsd, package and the faulty response to this post. Following is the description of what i did:

    • Created a WSDL and XSD outside of Developer (document/literal/wrapped).
    • Imported the WSDL using Developer (New => Web Service Descriptor => WSDL URL).
    • Complete the FLOW service.
    • Called the web service using SOAPUI (see Request.xml and Response.xml).

    The problem is that the response contains some ser-root elements which do not belong there.
    Finally I took the same wsdl and created an implementation using AXIS2 and everything
    works as expected.

    I would like to know, whether someone has experienced similar problems with
    Top-Down-Development of WebServices using the wm Developer or can confirm the problem.
    Maybe there is already a work-around for the problem, or made a mistake somewhere.

    Thank you in advance,

    tom
    problem.zip (16.4 KB)


    #soa
    #webMethods
    #API-Management


  • 2.  RE: ser-root element in SOAP response

    Posted Thu November 13, 2008 09:24 PM

    I think “ser-root” is just the default namespace name WM generate for the root element of the response body. The corresponding namespace is the targetNameSpacce you specified in WSDL.
    The interface fields are what defined under this root node. Those are what you really care about, right?
    I guess your client code can alway assume the root will have ser-root as the namespace. But if there is way to customize it will be nice.
    HTH,
    Tong
    I’m also


    #webMethods
    #API-Management
    #soa


  • 3.  RE: ser-root element in SOAP response

    Posted Fri November 14, 2008 09:55 AM

    thanks for your reply. You’re right that i only care about the elements under the ser-root:Messages_LoadMessage_Output element. And if i would code my client myself (including deserialisation), i would just ignore it.

    The real problem is that the prefix ser-root isn’t defined anywhere so the soap message produced isn’t even well-formed! On top, the Messages_LoadMessage_Output type is not part of the wsdl. The result is that no client generated from the wsdl will accept the soap response.

    Since i’m not sure whether i made a mistake somewhere, i would like to know if anybody has experienced similar problems using developer with a wsdl containing complex types.


    #soa
    #webMethods
    #API-Management


  • 4.  RE: ser-root element in SOAP response

    Posted Fri December 12, 2008 09:54 AM

    It turned out, that the problem is actually a bug. The bug is fixed with Fix IS_7-1-2_WebSvcsXML_Fix2.


    #webMethods
    #API-Management
    #soa


  • 5.  RE: ser-root element in SOAP response

    Posted Fri December 12, 2008 11:32 AM

    Thanks for following up, Tom!


    #soa
    #API-Management
    #webMethods


  • 6.  RE: ser-root element in SOAP response

    Posted Mon January 03, 2011 05:15 PM

    Hello tom1299, I am encountering the same problem and I have IS_7-1-2_WebSvcsXML_Fix8 with WM7.1.2 Any suggestions please?


    #API-Management
    #soa
    #webMethods


  • 7.  RE: ser-root element in SOAP response

    Posted Tue January 04, 2011 07:28 PM

    uh, it’s been more than three years since the problem came up. I have to admit that we abandoned IS a little later because of other problems we had. Back then we submitted the bug to SAG and they fixed it with IS_7-1-2_WebSvcsXML_Fix2. The example that is part of this thread worked with this fix. The fix along with the bug id was documented in the release notes of that patch. I will try to find those release notes and the bug id so that you could contact IS support.


    #webMethods
    #soa
    #API-Management


  • 8.  RE: ser-root element in SOAP response

    Posted Wed January 05, 2011 09:41 AM

    Thanks tom1299. Wainting for your reply.


    #webMethods
    #soa
    #API-Management


  • 9.  RE: ser-root element in SOAP response

    Posted Mon September 12, 2011 10:02 AM

    Hi All

    I need to know what fix will solve the issue in webMethods 8.0

    Plz suggest


    #webMethods
    #API-Management
    #soa


  • 10.  RE: ser-root element in SOAP response

    Posted Tue September 13, 2011 01:58 AM

    ser-root is a prefix to a namespace what issue are you having with it?


    #webMethods
    #API-Management
    #soa


  • 11.  RE: ser-root element in SOAP response

    Posted Tue September 13, 2011 07:17 AM

    Hi Griffima

    thanks for the reply

    whenever im passing a Soap request in the Soap UI with certain prefix of the namespace, that prefix is changed to ser-root in the Soap response(ser-root is mentioned no where in the Soap Request).

    Reading the posts below i got to know that is the default prefix generated by webMethods and that SAG provided a fix as it was a bug.

    I need to know whether we have any solution to change this in webMethods 8.0 or whether it still is a bug and that we need to use a fix to solve the issue.


    #API-Management
    #soa
    #webMethods


  • 12.  RE: ser-root element in SOAP response

    Posted Tue September 13, 2011 01:38 PM

    I’d call it a quirk rather than a bug. Prefix is irrelevant, it’s just a shorthand for the actual namespace. The fact that the IS generated WSDL uses tns as the prefix shorthand versus the runtime IS using ser-root is just a quirk rather than a bug. A calling client should not expect to find a hardwired prefix, that would actually be a bug or a flawed implementation of a web services stack on the calling client side. As long as the shorthand points to the correct namespace, then the interpretation is correct.

    If SoftwareAG releases a “fixed” for this it would be for convenience sake to help out legacy web services stacks that don’t handle namespaces correctly.


    #soa
    #webMethods
    #API-Management


  • 13.  RE: ser-root element in SOAP response

    Posted Wed September 14, 2011 08:18 AM

    Thanks a lot for the clarifiaction Mark.

    -Mayank


    #webMethods
    #soa
    #API-Management