Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
guratalgura
Contributor II
Contributor II

Error while invoking webservice via TESBConsumer (Response was of unexpected text/html ContentType)

Hello,

thanks in advance,

i am trying to invoque a webservice via wsdl 

when using soapui no probleme the call to the web service is ok

when trying to invoque the webservice in talend i get the following error: 

0683p000009M6at.pngjob

[statistics] connected
[WARN ]: org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean - No method was found for the WSDL operation {http://receiver.message.ws.msgEAI.portnet.portel.es/}get.
[WARN ]: org.apache.cxf.ws.addressing.ContextUtils - WS-Addressing - failed to retrieve Message Addressing Properties from context
Exception in component tESBConsumer_1 (PORTNET_BS_Consumer)
org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <head><body> This object may be found <a HREF="https://test.portnet.ma/portnet/PortnetMessageReceiverService">here</a> </body>
at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:96)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:833)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1695)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1572)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1373)
at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:56)
at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:225)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:673)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:537)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:446)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:361)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:339)
at xml_bs.portnet_bs_consumer_0_1.PORTNET_BS_Consumer$GenericConsumer.invoke(PORTNET_BS_Consumer.java:723)
at xml_bs.portnet_bs_consumer_0_1.PORTNET_BS_Consumer.tFixedFlowInput_1Process(PORTNET_BS_Consumer.java:2092)
at xml_bs.portnet_bs_consumer_0_1.PORTNET_BS_Consumer.runJobInTOS(PORTNET_BS_Consumer.java:3202)
at xml_bs.portnet_bs_consumer_0_1.PORTNET_BS_Consumer.main(PORTNET_BS_Consumer.java:3051)
[WARN ]: org.apache.cxf.phase.PhaseInterceptorChain - Interceptor for {http://receiver.message.ws.msgEAI.portnet.portel.es/}PortnetMessageReceiverService#{http://receiver.... has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <head><body> This object may be found <a HREF="https://test.portnet.ma/portnet/PortnetMessageReceiverService">here</a> </body>
at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:96)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:833)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1695)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1572)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1373)
at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:56)
at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:225)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:673)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:537)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:446)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:361)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:339)
at xml_bs.portnet_bs_consumer_0_1.PORTNET_BS_Consumer$GenericConsumer.invoke(PORTNET_BS_Consumer.java:723)
at xml_bs.portnet_bs_consumer_0_1.PORTNET_BS_Consumer.tFixedFlowInput_1Process(PORTNET_BS_Consumer.java:2092)
at xml_bs.portnet_bs_consumer_0_1.PORTNET_BS_Consumer.runJobInTOS(PORTNET_BS_Consumer.java:3202)
at xml_bs.portnet_bs_consumer_0_1.PORTNET_BS_Consumer.main(PORTNET_BS_Consumer.java:3051)
[statistics] disconnected

 

thanks,

 

Labels (2)
1 Solution

Accepted Solutions
guratalgura
Contributor II
Contributor II
Author

Hi,

The probleme was in the namesapce within the Txmlmap which was wrong, now i am getting the response

 

thanks

View solution in original post

3 Replies
Anonymous
Not applicable

Hello,

Are you able to receive the WSDL even from browser? Could you please right-click the tESBConsumer component again, select Row > Fault from the contextual menu and click the other tLogRow component?

Best regards

Sabrina

 

guratalgura
Contributor II
Contributor II
Author

hello,

thanks for your response

 

yes i can get the wsdl from the browser

this is the url https://test.portnet.ma/portnet/PortnetMessageReceiverService?wsdl

 

when i try soapui i can create a project using the url above no probleme, but when i past the same url  within the TESBcostumer i get the error: Error getting service description: Unexpected error while loading external schema file: XML document structures must start and end 

 

when i placed the wsdl and schemas locally (see wsdl attached) : the error above was no more

 

after that i got the error (Response was of unexpected text/html ContentType)

after searching i figured that there was a redirection in the webservice from http to https, so i activated

follow redirects in the TESBcostumer

 

the error (Response was of unexpected text/html ContentType) disappeared

 

now i get this error : {http://schemas.xmlsoap.org/soap/envelope/}Client|Cannot find dispatch method for {http://receiver.message.portnet/}put

 

what really bothers me is why i can't work with wsdl url in TESBcostumer, although it's working fine in soapui, maybe because i moved the wsdl and schemas locally i keep getting the error

{http://schemas.xmlsoap.org/soap/envelope/}Client|Cannot find dispatch method for {http://receiver.message.portnet/}put

 

thanks,

guratalgura
Contributor II
Contributor II
Author

Hi,

The probleme was in the namesapce within the Txmlmap which was wrong, now i am getting the response

 

thanks