I apologize if this has been answered before.  I tried searching, but haven't
found exactly what I'm looking for.

I'm trying to implement a client to a SOAP service that doesn't need to load
the WSDL file.  I've generated stub client classes with wsdl2java (using cxf
2.0.5).

This is basically what I'm doing...

QName serviceName = new QName("http://www.blah.org";, "MyService");
MyService service = new MyService(null, serviceName);

QName portName = new QName("http://www.blah.org";, "MyPort");
service.addPort(portName, "http://schemas.xmlsoap.org/soap/";, portURL);
PortType myPort = service.getPort(portName, PortType.class);

When I try calling a method on myPort, I get an exception: 
javax.xml.ws.soap.SOAPFaultException: Found element metadata but could not
find matching RPC/Literal part

When I debug and look at the fields of service, I see that after running
addPort, it adds a record to the service.portInfos map, but not
service.ports.  Any help would be greatly appreciated!

Thanks. 

-- 
View this message in context: 
http://www.nabble.com/Client-without-a-WSDL--tp17141977p17141977.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to