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
  • 1.  WebService Consumer

    Posted Wed March 01, 2017 09:22 AM

    Hi,

    I have a WSDL provided by client.
    I have created consumer WS using the WSDL.

    In designer after executing few steps I’m invoking the connector directly. I’m passing 2 inputs - request document & auth/transport credentials.
    I have not changed the connector service. The connector service remains same as it was created during import of WSDL.

    When I send the request, I’m receiving error from soap:client as below.

    org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ‘s’ (code 115) in prolog; expected ‘<’ at [row,col {unknown-source}]: [1,1]

    Please suggest on this.

    Thanks,
    Monica


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: WebService Consumer

    Posted Wed March 01, 2017 10:59 AM

    Hi Monica,

    which wM Version are you using?
    Are there any Fixes applied to your IntegrationServer?

    As per the error message there are additional characters in the request before the initial <?xml ?>-tag.

    Can you try to capture the soap request and test the same WebService with SoapUI?

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: WebService Consumer

    Posted Thu March 02, 2017 01:29 AM

    Hi Holger,

    I’m on 9.10 version with fix level IS_9.10_Core_Fix5.

    Input for the connector is a document and not an xml string. Please refer the screenshot “inputOutput_connector.png” which shows the signature of connector service

    Request captured is in screenshot “request.png”.

    Please suggest on same.

    Thanks,
    Monica

    request.png


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: WebService Consumer

    Posted Thu March 02, 2017 03:58 AM

    Hi Holger,

    This issue got resolved.
    The response which was sent by client was in text format “Success”

    But IS was expecting XML.
    Hence the error “Unexpected character ‘s’ (code 115) in prolog; expected ‘<’”.

    I asked them to change the format of response and issue was fixed.

    Thanks a lot of valuable input.

    Regards,
    Monica


    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: WebService Consumer

    Posted Thu March 02, 2017 08:32 AM

    Hi Monica,

    glad to hear that you was able to resolve your issue.

    This one is one of those “strange error messages can have simple root causes”.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods