I am stuck in the introduction of WSDL connection with EodData.com
wsdl address I'm using CXF to create client connections:
http://ws.eoddata.com/data.asmx?wsdl
QName qname = new QName ("http://ws.eoddata.com/Data", "data"); Data data = new data (new URL ("http://ws.eoddata.com/data.asmx?wsdl"), qname); DataHttpGet DataGate = Data. GetDataHttpGet (); DataGet.login ("xxx", "ppp"); and I got it
by: org.apache.cxf.interceptor.Fault: Unmarshalling error: unexpected element (Yuri: "http: // Schemas.xmlsoap.org/soap/envelope/ ", Local:" Header "). Expected element & lt; {Http://ws.eoddata.com/Data} Login Roulette & gt; How should I start the connection?
A quick test has worked for me using the following code.
Use of WSDL2 Java:
wsdl2java -autoNameResolution http://ws.eoddata.com/data.asmx?wsdl Then use the code provided by you with some changes:
QName qname = new QN ("http://ws.eoddata.com/Data", "info") ; Data data = new data (new URL ("http://ws.eoddata.com/data.asmx?wsdl"), qname); DataSype data soup = data. GetDataSoap (); LOGINRESPONSE response = data soap.login ("xxx", "ppp"); Println (response.getMessage ()); The response was:
Invalid user name or password
Comments
Post a Comment