You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsif-user@ws.apache.org by Luca Baldi <Lu...@idoxplc.com> on 2005/09/16 16:23:46 UTC
more grief with WSIF and complex types
Here's my code
Service serviceWsdl = WSIFUtils.selectService(def,
"http://ws.cdyne.com", "Zip2Geo");
WSIFService service = factory.getService(wsdl, "http://ws.cdyne.com",
"Zip2Geo", "http://ws.cdyne.com", "Zip2GeoSoap");
service.mapType(new QName("http://ws.cdyne.com", "LatLongReturn"),
Class.forName("com.cdyne.ws.LatLongReturn"));
WSIFPort port = service.getPort();
WSIFOperation op = port.createOperation(opName);
WSIFMessage input = op.createInputMessage();
input.setObjectPart("zipcode", "M201EF");
input.setObjectPart("LicenseKey", "");
WSIFMessage output = op.createOutputMessage();
WSIFMessage fault = op.createFaultMessage();
op.executeRequestResponseOperation(input, output, fault);
All I get is
org.apache.wsif.WSIFException: no schema elements found
at
org.apache.wsif.providers.ProviderUtils.unWrapPart(ProviderUtils.java:39
3)
at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.unwra
pSOAPParts(WSIFOperation_ApacheAxis.java:812)
at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.prepa
re(WSIFOperation_ApacheAxis.java:1941)
at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invok
eRequestResponseOperation(WSIFOperation_ApacheAxis.java:1412)
at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.execu
teRequestResponseOperation(WSIFOperation_ApacheAxis.java:1019)
at com.webservice.Main.main(Main.java:155)
anybody any idea why this is happening ??
thanks
luca