WebService Consumer

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

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

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

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

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