9 Replies Latest reply: Aug 30, 2009 8:35 AM by Tirumal Reddy M RSS

JBossMetro Client- Unable to access WS deployed at remote se

Tirumal Reddy M Newbie

Hi,

I got one more problem while using Metro client for a remote webservice. I have one WS, which is deployed at our local server and i am able to connect it by mentioning full location of the WSDL (http://localhost:8080/SampleService/Sample.wsdl).

But in second scenario, i am trying to connect a WS, which is developed in different technology and deployed in remote location. We got the endpoint address something like this.

http://hostname:portnumber/


I created client using wsconsume tool and created jar to connect the webservice. iam getting the following exception:


Exception in thread "main" com.sun.xml.internal.ws.streaming.XMLStreamReaderException: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,62]
Message: White spaces are required between publicId and systemId.
at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:242)
at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:70)
at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:85)
at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:75)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.hasWSDLDefinitions(RuntimeWSDLParser.java:195)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:108)
at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:226)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:189)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:159)
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:83)
at javax.xml.ws.Service.<init>(Service.java:56)
at v1.ase.aorta.cqs_co_za.AseService.<init>(AseService.java:45)
at v1.ase.aorta.cqs_co_za.client.TestAseService.main(TestAseService.java:11)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,62]
Message: White spaces are required between publicId and systemId.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:588)
at com.sun.xml.internal.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:78)
at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:51)
... 11 more


I changed some namespaces and i got different exception saying that the service location is un parsable. But if i use, AXIS2 for the same, iam able to connect the service eventhough i didnot mentioned the full url of the WSDL.

If any one got any solution for this, please let me know.




  • 1. Re: JBossMetro Client- Unable to access WS deployed at remot
    Richard Opalka Master

    Could you post your WSDL file (including all its imports if any)?

  • 2. Re: JBossMetro Client- Unable to access WS deployed at remot
    Tirumal Reddy M Newbie

    Thanks for response.
    But i can't share the entire file, because its a third party one.

    But i can share some imp parts of it.


    <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:zse="urn:mtr-co-in:zen.zse.v1"
    targetNamespace="urn:mtr-co-in:zen.zse.v1"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    .
    .
    .

    <service name="zseService">
    <port name="zsePort" binding="zse:zseBinding">
    <soap:address location="http://zenapp-dev.com:1687/"/>
    </port>
    </service>



    using this wsdl, i generated client artifats.
    please see below for service file


    
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.logging.Logger;
    import javax.xml.namespace.QName;
    import javax.xml.ws.Service;
    import javax.xml.ws.WebEndpoint;
    import javax.xml.ws.WebServiceClient;
    
    /**
     * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.4-b01- Generated
     * source version: 2.0
     *
     */
    @WebServiceClient(name = "zseService", targetNamespace = "urn:mtr-co-in:zen.zse.v1", wsdlLocation = "http://zenapp-dev.com:1687/")
    public class ZseService extends Service {
    
     private final static URL ZSESERVICE_WSDL_LOCATION;
     private final static Logger logger = Logger
     .getLogger(v1.zse.zen.mtr_co_in.ZseService.class.getName());
    
     static {
     URL url = null;
     try {
     URL baseUrl;
     baseUrl = v1.zse.zen.mtr_co_in.ZseService.class.getResource(".");
     url = new URL(baseUrl,
     "http://zenapp-dev.com:1687/");
     } catch (MalformedURLException e) {
     logger
     .warning("Failed to create URL for the wsdl Location: 'http://zenapp-dev.com:1687/', retrying as a local file");
     logger.warning(e.getMessage());
     }
     ZSESERVICE_WSDL_LOCATION = url;
     }
    
     public ZseService(URL wsdlLocation, QName serviceName) {
     super(wsdlLocation, serviceName);
     }
    
     public ZseService() {
     super(ZSESERVICE_WSDL_LOCATION, new QName("urn:mtr-co-in:zen.zse.v1",
     "zseService"));
     }
    
     /**
     *
     * @return returns ZsePortType
     */
     @WebEndpoint(name = "zsePort")
     public ZsePortType getZsePort() {
     return super.getPort(
     new QName("urn:mtr-co-in:zen.zse.v1", "zsePort"),
     ZsePortType.class);
     }
    
    }
    
    


    PLease let me know if anything else needed.

  • 3. Re: JBossMetro Client- Unable to access WS deployed at remot
    Richard Opalka Master

    Sorry, if I don't have WSDL I can't help you :(

  • 4. Re: JBossMetro Client- Unable to access WS deployed at remot
    Tirumal Reddy M Newbie

    Richard,

    I sent the WSDL through mail, as i can't share the same in forum.

    Please do the needful

  • 5. Re: JBossMetro Client- Unable to access WS deployed at remot
    Richard Opalka Master

    Sorry, I can't reproduce your problem with JBossWS metro stack.
    I used JBossWS-Metro 3.2.0.GA and JBoss AS 5.1.0.GA

  • 6. Re: JBossMetro Client- Unable to access WS deployed at remot
    Tirumal Reddy M Newbie

    Thanks Richard,

    I also tried using JBoss Metro 3.3.1 GA and JBoss As 4.2.3 GA, by providing dummy implementation. It worked properly on my local machine.

    But in case of service is deployed on remote machine and on different server (iam not aware about the server and technology). This problem is coming. Iam not getting the entire url of the WSDL. Iam just getting hostname and portnumber. The said service is running on the particular port. In that case, iam not specifying the entire url (like http://localhost:8080/SampleService/sample?wsdl), iam just specifying like "http://localhost:7056/".

    But the same thing works fine with AXIS2. I really don't know what the reason behind this.

    I assume that, if we don't provide complete URL of the WSDL, we will not be able to access the service. But in this case, why it is working with AXIS2?. Is it something like, AXIS2 will search on the given port number and find automatically the service descriptions.

    In this case, can i create a Webservice, which don't have published WSDL's at particular url?

    If anybody have idea, please let me know.

  • 7. Re: JBossMetro Client- Unable to access WS deployed at remot
    Richard Opalka Master

     

    "mtirumalreddy" wrote:
    Thanks Richard,
    I assume that, if we don't provide complete URL of the WSDL, we will not be able to access the service. But in this case, why it is working with AXIS2?. Is it something like, AXIS2 will search on the given port number and find automatically the service descriptions.

    It should work with JBossWS client as well.
    Are you able to dump exchanged messages?
    This could help you to analyze the problem.
    From the exception you posted above
    it seems to me you're most probably getting HTML response
    from remote machine instead of WSDL.
    "mtirumalreddy" wrote:
    In this case, can i create a Webservice, which don't have published WSDL's at particular url?

    Sure you can, we don't care where WSDL is published. We just need proper URL pointing to WSDL file.

  • 8. Re: JBossMetro Client- Unable to access WS deployed at remot
    Tirumal Reddy M Newbie

    Thanks Richard,

    Let me try once again with everything fresh and with will produce some logs. I will get back to you soon.

  • 9. Re: JBossMetro Client- Unable to access WS deployed at remot
    Tirumal Reddy M Newbie

    Richard,

    Good Day. I tried again using the same WSDL. But this time also iam unable to get any response. i got the following error

    
    2009-08-30 17:56:09,619 INFO [STDOUT] RoleBean.getRoleModuleList(*************************************)
    2009-08-30 17:56:09,634 DEBUG [com.sun.xml.bind.v2.ContextFactory] Property com.sun.xml.bind.XmlAccessorFactoryis not active. Using JAXB's implementation
    2009-08-30 17:56:09,650 DEBUG [com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory] Using optimized Accessor for public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address com.sun.xml.ws.developer.MemberSubmissionEndpointReference.addr
    2009-08-30 17:56:09,650 DEBUG [com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory] Using optimized Accessor for public java.lang.String com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address.uri
    2009-08-30 17:56:09,650 DEBUG [com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory] Using optimized Accessor for public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements com.sun.xml.ws.developer.MemberSubmissionEndpointReference.referenceProperties
    2009-08-30 17:56:09,650 DEBUG [com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory] Using optimized Accessor for public java.util.List com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements.elements
    2009-08-30 17:56:09,650 DEBUG [com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory] Using optimized Accessor for public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements com.sun.xml.ws.developer.MemberSubmissionEndpointReference.referenceParameters
    2009-08-30 17:56:09,650 DEBUG [com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory] Using optimized Accessor for public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$AttributedQName com.sun.xml.ws.developer.MemberSubmissionEndpointReference.portTypeName
    2009-08-30 17:56:09,650 DEBUG [com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory] Using optimized Accessor for public javax.xml.namespace.QName com.sun.xml.ws.developer.MemberSubmissionEndpointReference$AttributedQName.name
    2009-08-30 17:56:09,650 DEBUG [com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory] Using optimized Accessor for public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$ServiceNameType com.sun.xml.ws.developer.MemberSubmissionEndpointReference.serviceName
    2009-08-30 17:56:09,650 DEBUG [com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory] Using optimized Accessor for public java.lang.String com.sun.xml.ws.developer.MemberSubmissionEndpointReference$ServiceNameType.portName
    2009-08-30 17:56:09,650 DEBUG [com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory] Using optimized Accessor for public java.util.List com.sun.xml.ws.developer.MemberSubmissionEndpointReference.elements
    2009-08-30 17:56:11,322 ERROR [javax.enterprise.resource.webcontainer.jsf.lifecycle] JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /pages/ifcy/IFCYUpload.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@4b2d10]
    2009-08-30 17:56:11,322 DEBUG [org.ajax4jsf.event.AjaxPhaseListener] Process after phase RENDER_RESPONSE 6
    2009-08-30 17:56:11,322 DEBUG [javax.enterprise.resource.webcontainer.jsf.timing] [TIMING] - [3813ms] : Execution time for phase (including any PhaseListeners) -> RENDER_RESPONSE 6
    2009-08-30 17:56:11,322 ERROR [org.ajax4jsf.webapp.BaseXMLFilter] Exception in the filter chain
    javax.servlet.ServletException: /pages/common/IFCYMenu.jsp(6,1) '#{userRoleBean.roleModuleList}' Error reading 'roleModuleList' on type com.investec.forex.rfs2.web.menu.uibean.RoleBean
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
     at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
     at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
     at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
     at java.lang.Thread.run(Thread.java:619)
    Caused by: org.apache.jasper.el.JspELException: /pages/common/IFCYMenu.jsp(6,1) '#{userRoleBean.roleModuleList}' Error reading 'roleModuleList' on type com.investec.forex.rfs2.web.menu.uibean.RoleBean
     at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:107)
     at javax.faces.component.UIData.getValue(UIData.java:609)
     at org.ajax4jsf.component.UIDataAdaptor.getValue(UIDataAdaptor.java:1624)
     at org.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)
     at org.ajax4jsf.component.SequenceDataAdaptor.createDataModel(SequenceDataAdaptor.java:59)
     at org.richfaces.component.UIDataTable.createDataModel(UIDataTable.java:120)
     at org.ajax4jsf.component.UIDataAdaptor.getExtendedDataModel(UIDataAdaptor.java:621)
     at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:339)
     at org.richfaces.renderkit.AbstractTableRenderer.encodeTableStructure(AbstractTableRenderer.java:138)
     at org.richfaces.renderkit.html.DataTableRenderer.doEncodeBegin(DataTableRenderer.java:160)
     at org.richfaces.renderkit.html.DataTableRenderer.doEncodeBegin(DataTableRenderer.java:148)
     at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:100)
     at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
     at javax.faces.component.UIData.encodeBegin(UIData.java:962)
     at org.ajax4jsf.component.UIDataAdaptor.encodeBegin(UIDataAdaptor.java:1202)
     at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:275)
     at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
     at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
     at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
     at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
     at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)
     at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:178)
     at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:126)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
     at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
     at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
     at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
     at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
     at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
     at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
     at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
     at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
     at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
     at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
     at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
     ... 24 more
    Caused by: com.sun.xml.ws.streaming.XMLStreamReaderException: XML reader error: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
     at [row,col,system-id]: [1,62,"http://localhost:7200/"]
     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:267)
     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:95)
     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:110)
     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:100)
     at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.hasWSDLDefinitions(RuntimeWSDLParser.java:220)
     at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:130)
     at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:264)
     at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:227)
     at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:175)
     at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
     at javax.xml.ws.Service.<init>(Service.java:56)
     at v1.ase.aorta.cqs_co_za.AseService.<init>(AseService.java:45)
     at com.investec.forex.rfs2.web.menu.uibean.RoleBean.getRoleModuleList(RoleBean.java:72)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
     at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
     at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
     at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
     at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
     at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
     ... 67 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,system-id]: [1,62,"http://localhost:7200/"]
     at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)
     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 com.sun.xml.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:92)
     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:76)
     ... 88 more
    2009-08-30 17:56:11,462 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/rfs2-web].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
    com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
     at [row,col,system-id]: [1,62,"http://localhost:7200/"]
     at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)
     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 com.sun.xml.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:92)
     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:76)
     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:110)
     at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:100)
     at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.hasWSDLDefinitions(RuntimeWSDLParser.java:220)
     at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:130)
     at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:264)
     at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:227)
     at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:175)
     at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
     at javax.xml.ws.Service.<init>(Service.java:56)
     at v1.ase.aorta.cqs_co_za.AseService.<init>(AseService.java:45)
     at com.investec.forex.rfs2.web.menu.uibean.RoleBean.getRoleModuleList(RoleBean.java:72)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
     at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
     at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
     at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
     at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
     at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
     at javax.faces.component.UIData.getValue(UIData.java:609)
     at org.ajax4jsf.component.UIDataAdaptor.getValue(UIDataAdaptor.java:1624)
     at org.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)
     at org.ajax4jsf.component.SequenceDataAdaptor.createDataModel(SequenceDataAdaptor.java:59)
     at org.richfaces.component.UIDataTable.createDataModel(UIDataTable.java:120)
     at org.ajax4jsf.component.UIDataAdaptor.getExtendedDataModel(UIDataAdaptor.java:621)
     at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:339)
     at org.richfaces.renderkit.AbstractTableRenderer.encodeTableStructure(AbstractTableRenderer.java:138)
     at org.richfaces.renderkit.html.DataTableRenderer.doEncodeBegin(DataTableRenderer.java:160)
     at org.richfaces.renderkit.html.DataTableRenderer.doEncodeBegin(DataTableRenderer.java:148)
     at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:100)
     at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
     at javax.faces.component.UIData.encodeBegin(UIData.java:962)
     at org.ajax4jsf.component.UIDataAdaptor.encodeBegin(UIDataAdaptor.java:1202)
     at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:275)
     at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
     at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
     at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
     at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
     at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)
     at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:178)
     at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:126)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
     at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
     at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
     at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
     at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
     at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
     at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
     at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
     at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
     at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
     at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
     at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
     at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
     at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
     at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
     at java.lang.Thread.run(Thread.java:619)
    
    


    This time iam able to see the server logs. This logging is done every time i call the service. So it is clear that, iam able to connect the server and call the method. but unable to get the response.

    GET, Res: /scripts/aorta.dll, Path: /admin/aorta.html, QS:
    Finished HTTP request
    


    I searched in google for this error. I think it is something to do with parsing the response from the server. Because server is sending HTML response.

    I tried to log the SOAP request and responses, but i was unable to do it. Because, i came to know that, Recording messages is only available for services deployed on the server but not clients.

    Please validate my understanding. And let me know how can i proceed further.