Hi,
We have a WCF Soap Service running over HTTPS protocol and we need to consume that webservice in IVR application , but while calling the webservice it is giving Unexpected char exception.
The webservice is giving a successful response when tested from Soap Client and Postman
Following SOAP Request sent to Webservice via Postman and got the successful response :
Headers -
Content-Type : application/soap+xml
Authorization : Basic Basic eTFKN1pjbjNCNFFqeDhITGU1NkRiUmk5MkF0
SOAP Action :
http://tempuri.org/IIdbiIntegrations/GetRMNCustDetails
Body :
<?xml version='1.0' encoding='utf-8'?>
<s:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<a:Action s:mustUnderstand="1">http://tempuri.org/IIdbiIntegrations/GetRMNCustDetails</a:Action>
<a:MessageID>urn:uuid:b19657e5-6b73-4e78-851b-d07bc9802447</a:MessageID>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
</s:Header>
<s:Body>
<ns1:GetRMNCustDetails xmlns:ns1="http://tempuri.org/">
<ns1:data>lExhuZvdgNkm0YD7FrcAIZl76ecplE6GfpzZ72zih6OMuz0ievimw/Qi9ENpDpkf7QXp+8taG1+d3d/GGrlf5/FTB6IaVFmRX5dlcWZYa6c=</ns1:data>
</ns1:GetRMNCustDetails>
</s:Body>
</s:Envelope>
Versions :
Tomcat 6.0
OD : 6.0
Jre :1.6
IVR Application Logs -
29/12/2020 16:32:38:397 INFO - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Using SCESession 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld servlet : registered
29/12/2020 16:32:38:552 DEBUG - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : *** Reply for [/HelloWorld/registered] ***
29/12/2020 16:32:38:553 DEBUG - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : 0:<?xml version="1.0" encoding="UTF-8"?>
1:<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="en-us">
2:<meta name="author" content="Avaya Aura Orchestration Designer"/>
3:<meta name="runtime-version" content="06.00.11.03"/>
4:<meta name="runtimecommon-version" content="06.00.11.03"/>
5:<meta name="copyright" content="Copyright (c) 2002-2011, Avaya"/>
6:<form id="registered">
7:<block>
8:<prompt bargein="true" bargeintype="speech" timeout="8000ms">
9:You are a registered customer
10:</prompt>
11:</block>
12:<catch event="connection.disconnect">
13:<var name="null___noinputcount" expr="try {_avayaNoinputCounter} catch (errMsg) {'0'}"/>
14:<var name="null___nomatchcount" expr="try {_avayaNomatchCounter} catch (errMsg) {'0'}"/>
15:<goto next="AvayaDefaultDisconnectHandler?___DDSESSIONID=11858F5E2E1547A10670CFA85A3B3C9E%3A%2FHelloWorld"/>
16:</catch>
17:<block>
18:<submit next="GetRMNSubflow?___DDSESSIONID=11858F5E2E1547A10670CFA85A3B3C9E%3A%2FHelloWorld"/>
19:</block>
20:</form>
21:</vxml>
22:
29/12/2020 16:32:38:565 INFO - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Using SCESession 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld servlet : GetRMNSubflow
29/12/2020 16:32:38:618 INFO - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Using SCESession 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld servlet : RMN-Begin
29/12/2020 16:32:38:672 INFO - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Using SCESession 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld servlet : RMN-EncryptInputData
29/12/2020 16:32:38:750 DEBUG - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Base Credentials = Basic eTFKN1pjbjNCNFFqeDhITGU1NkRiUmk5MkF0bTdWNE5zaDlVWGc1ZjFUWXA2MkN1TWszOFN3RXE1NFd6djNPRjo2YTMwYmI2OGMzN2Y4NWFiZTdhYTU2MjAxNTNmMGYzMGRhYWI1YzBjNTNjNTA4MjVmNzAyMWQ5N2Y0MjVkMWE0
29/12/2020 16:32:38:850 INFO - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Using SCESession 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld servlet : RMN-CheckRMN
29/12/2020 16:32:39:111 INFO - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Calling method [{http://tempuri.org/}GetRMNCustDetails] on web service [DataService] at [https://localhost/IDBIDataServiceV5_1/DataService.svc/DataService]
29/12/2020 16:32:40:923 DEBUG - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Collecting [application/soap+xml] from:contentType
29/12/2020 16:32:40:923 DEBUG - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Adding HTTP header [Content-Type: application/soap+xml]
29/12/2020 16:32:40:923 DEBUG - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Collecting [Basic eTFKN1pjbjNCNFFqeDhITGU1NkRiUmk5MkF0bTdWNE5zaDlVWGc1ZjFUWXA2MkN1TWszOFN3RXE1NFd6djNPRjo2YTMwYmI2OGMzN2Y4NWFiZTdhYTU2MjAxNTNmMGYzMGRhYWI1YzBjNTNjNTA4MjVmNzAyMWQ5N2Y0MjVkMWE0] from:credentials
29/12/2020 16:32:40:923 DEBUG - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Adding HTTP header [Authorization: Basic eTFKN1pjbjNCNFFqeDhITGU1NkRiUmk5MkF0bTdWNE5zaDlVWGc1ZjFUWXA2MkN1TWszOFN3RXE1NFd6djNPRjo2YTMwYmI2OGMzN2Y4NWFiZTdhYTU2MjAxNTNmMGYzMGRhYWI1YzBjNTNjNTA4MjVmNzAyMWQ5N2Y0MjVkMWE0]
29/12/2020 16:32:41:018 DEBUG - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Web Service Request -> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:GetRMNCustDetails xmlns:ns1="http://tempuri.org/"><ns1:data>lExhuZvdgNkm0YD7FrcAIZl76ecplE6GfpzZ72zih6OMuz0ievimw/Qi9ENpDpkf7QXp+8taG1+d3d/GGrlf5/FTB6IaVFmRX5dlcWZYa6c=</ns1:data></ns1:GetRMNCustDetails></soapenv:Body></soapenv:Envelope>
29/12/2020 16:32:41:540 DEBUG - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Web Service Reply <- com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
at [row,col {unknown-source}]: [1,50]
29/12/2020 16:32:41:540 ERROR - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Got AxisFault during web service call: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
at [row,col {unknown-source}]: [1,50]
29/12/2020 16:32:41:613 INFO - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Capturing exception [org.apache.axis2.AxisFault]. Message [com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
at [row,col {unknown-source}]: [1,50]]
29/12/2020 16:32:41:623 ERROR - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : session id:sess8398388 | Error processing request
EXCEPTION>
java.lang.Exception: org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
at [row,col {unknown-source}]: [1,50]
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:130)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:282)
at com.avaya.sce.runtime.SCEServlet.doGet(SCEServlet.java:181)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.avaya.sce.runtime.SCEServlet.forward(SCEServlet.java:1303)
at com.avaya.sce.runtime.BasicServlet.handleRequest(BasicServlet.java:116)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:96)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:282)
at com.avaya.sce.runtime.SCEServlet.doGet(SCEServlet.java:181)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.avaya.sce.runtime.SCEServlet.forward(SCEServlet.java:1303)
at com.avaya.sce.runtime.BasicServlet.handleRequest(BasicServlet.java:116)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:96)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:282)
at com.avaya.sce.runtime.SCEServlet.doGet(SCEServlet.java:181)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.avaya.sce.runtime.SCEServlet.forward(SCEServlet.java:1303)
at com.avaya.sce.runtime.Subflow.handleRequest(Subflow.java:35)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:96)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:282)
at com.avaya.sce.runtime.SCEServlet.doGet(SCEServlet.java:181)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
at [row,col {unknown-source}]: [1,50]
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:118)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at com.avaya.sce.runtime.connectivity.ws2.DDAxis2Stub.execute(DDAxis2Stub.java:130)
at com.avaya.sce.runtime.connectivity.ws2.CallService.execute(CallService.java:388)
at com.avaya.sce.runtime.Data.evaluateActions(Data.java:191)
at flow.subflow.RMN.CheckRMN.executeDataActions(CheckRMN.java:80)
at com.avaya.sce.runtime.Data.handleRequest(Data.java:104)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:96)
... 55 more
Caused by: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
at [row,col {unknown-source}]: [1,50]
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:260)
at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:161)
at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:110)
at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:682)
at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:210)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:140)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:103)
... 66 more
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
at [row,col {unknown-source}]: [1,50]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:623)
at com.ctc.wstx.sr.BasicStreamReader.startDTD(BasicStreamReader.java:2482)
at com.ctc.wstx.sr.BasicStreamReader.nextFromPrologBang(BasicStreamReader.java:2398)
at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2058)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
at javax.xml.stream.util.StreamReaderDelegate.next(StreamReaderDelegate.java:60)
at org.apache.axiom.om.impl.builder.SafeXMLStreamReader.next(SafeXMLStreamReader.java:183)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:597)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:172)
... 72 more
29/12/2020 16:32:41:626 DEBUG - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : *** Reply for [/HelloWorld/RMN-CheckRMN] ***
29/12/2020 16:32:41:626 DEBUG - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : 0:<?xml version="1.0" encoding="UTF-8"?>
1:<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="en-us">
2:<meta name="author" content="Avaya Aura Orchestration Designer"/>
3:<meta name="runtime-version" content="06.00.11.03"/>
4:<meta name="runtimecommon-version" content="06.00.11.03"/>
5:<meta name="copyright" content="Copyright (c) 2002-2011, Avaya"/>
6:<form>
7:<block>
8:<throw
9: event="error.runtime.org.apache.axis2.AxisFault" message="Error processing request, org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character code 34 in DOCTYPE declaration expected a space between public and system identifiers at row,col unknownsource: 1,50"/>
10:</block>
11:</form>
12:</vxml>
13:
29/12/2020 16:32:54:603 INFO - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Removing session from AvayaSessionTermination Servlet
29/12/2020 16:32:54:606 INFO - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Termination URL reply : <?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="en-us">
</vxml>
29/12/2020 16:32:54:609 INFO - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : HTTP Session lost removing SCESession 11858F5E2E1547A10670CFA85A3B3C9E
29/12/2020 16:32:54:609 INFO - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : SCESession Removed
29/12/2020 16:32:54:609 DEBUG - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : Removing 1 session stack frames.
29/12/2020 16:32:54:610 INFO - 11858F5E2E1547A10670CFA85A3B3C9E:/HelloWorld : ** Popped Stack Frame [/HelloWorld]
Regards ,
Rajneesh