This isn't a CXF question but a Java one. Println doesn't work in the manner you're expecting with HttpInputStreams, it's usually meant for Strings and if you feed it an object it will just tell you the class that it is (unless you implement toString() within that class). Googling <<convert httpinputstream to string>> should provide you several options to do what you want.

Glen

On 06/18/2011 04:02 AM, berlindutza wrote:
Hello,

I have introduced the code " System.out.println(wsdlURL.getContent());" in a
project that doesn't work any more and I have obtained the following result:


!!!!!!!!!!!!!----------- Before ------------!!!!!!!!!!!!!!!!!!!!!!!!!!
Exception in thread "main" java.io.FileNotFoundException:
http://localhost:8080/Prosys_newSituationS/services/ReadVariableNodeService1Port?wsdl
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
        at java.net.URLConnection.getContent(Unknown Source)
        at java.net.URL.getContent(Unknown Source)
        at
readavalue.SeiGetval_ReadVariableNodeService1Port_Client.main(SeiGetval_ReadVariableNodeService1Port_Client.java:51)


And after that I have created a new project with a web service that performs
the same thing (and works at the moment) and I have obtained the following
result:


!!!!!!!!!!!!!----------- Before ------------!!!!!!!!!!!!!!!!!!!!!!!!!!
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@19b49e6
!!!!!!!!!!!!!----------- After ------------!!!!!!!!!!!!!!!!!!!!!!!!!!
log4j:WARN No appenders could be found for logger
(org.apache.cxf.bus.spring.BusApplicationContext).
log4j:WARN Please initialize the log4j system properly.
Jun 18, 2011 10:46:52 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service {http://readAValue/}ReadVariableNodeService1Service
from WSDL:
http://localhost:8080/Prosys_forum_Servicii/services/ReadVariableNodeService1Port?wsdl
Invoking getValue...
getValue.result=6.0


Thank you and I am looking forward for your answer!


--
View this message in context: 
http://cxf.547215.n5.nabble.com/Odd-error-with-CXF-Please-help-tp4490161p4500841.html
Sent from the cxf-user mailing list archive at Nabble.com.


--
Glen Mazza
Application Integration Division
Talend (http://www.talend.com/ai)
blog: http://www.jroller.com/gmazza


Reply via email to