I am getting the following Error while calling the web service from client.
INFO: Inbound Message
----------------------------
ID: 1
Address: http://localhost:8080/prismWebServic...erviceImplPort
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml; charset=UTF-8
Headers: {Accept=[*/*], cache-control=[no-cache], connection=[keep-alive], Content-Length=[229], content-type=[text/xml; charset=UTF-8], host=[localhost:8080], pragma=[no-cache], SOAPAction=[""], user-agent=[Apache CXF 2.5.4]}
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:accountProfile xmlns:ns2="http://webservices.mirev.zafinlabs.com/"><arg0>accountProfile</arg0></ns2:accountProfile></soap:Body></soap:Envelope>
--------------------------------------
10:13:00,361 ERROR [STDERR] 21 Nov, 2012 10:13:00 AM org.apache.cxf.services.MiRevWebServiceImplService .MiRevWebServiceImplPort.MiRevWebService
INFO: Outbound Message
---------------------------
ID: 1
Encoding: UTF-8
Content-Type: text/xml
Headers: {}
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:accountProfileResponse xmlns:ns2="http://webservices.mirev.zafinlabs.com/"><return>DONE.</return></ns2:accountProfileResponse></soap:Body></soap:Envelope>
--------------------------------------
I USE THE FOLLOWING CODE AS CLIENT
===========================
package com.zafinlabs.mirev.webservices;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.soap.SOAPBinding;
/**
* This class was generated by Apache CXF 2.5.4
* 2012-11-20T17:30:28.125+05:30
* Generated source version: 2.5.4
*
*/
public class MiRevWebServiceClient {
public static void main(String[] args) throws Exception {
QName serviceName = new QName("http://webservices.mirev.zafinlabs.com/", "MiRevWebServiceImplService");
QName portName = new QName("http://webservices.mirev.zafinlabs.com/", "MiRevWebServiceImplPort");
Service service = Service.create(serviceName);
service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING,
"http://localhost:8080/prismWebService/services/MiRevWebServiceImplPort");
com.zafinlabs.mirev.webservices.MiRevWebService client = service.getPort(portName, com.zafinlabs.mirev.webservices.MiRevWebService.cl ass);
client.accountProfile("accountProfile");
// Insert code to invoke methods on the client here
}
}


Reply With Quote
